forked from alisw/AliRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAliTOFPad.h
62 lines (53 loc) · 2.78 KB
/
AliTOFPad.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef ALITOFPAD_H
#define ALITOFPAD_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
////////////////////////////////////////////////////////////////
// TOF Class used in reconstruction
// AliTOFPad class
// (see implementation file for details)
//
//-- Authors: Bologna-ITEP-Salerno Group
////////////////////////////////////////////////////////////////
#include "TObject.h"
//_______________________________________________________
class AliTOFPad : public TObject{
public:
AliTOFPad();
AliTOFPad(Int_t sector, Int_t plate, Int_t strip, Int_t pixel);
~AliTOFPad(){};
void SetGeom (Int_t sector, Int_t plate, Int_t strip, Int_t pixel);
void SetTofChargeHit(Float_t realTime, Float_t charge, Float_t geantTime, Int_t hitnum);
void SetTrack(Int_t track) {fTrack=track;}
void SetTrackMatched(Int_t track) {fTrackMatched=track;}
void AddState(Int_t state) {fState+=state;}
void SetRealTime (Float_t realTime) {fRealTime=realTime;}
void SetGeantTime(Float_t geantTime){fGeantTime=geantTime;}
void SetCharge (Float_t charge) {fCharge=charge;}
void SetAverageTime(Float_t averageTime) {fAverageTime=averageTime;}
void SetHit (Int_t hit) {fHit=hit;}
Int_t GetSector() const {return fSector;}
Int_t GetPlate() const {return fPlate;}
Int_t GetStrip() const {return fStrip;}
Int_t GetPixel() const {return fPixel;}
Int_t GetTrack() const {return fTrack;}
Int_t GetTrackMatched() const {return fTrackMatched;}
Int_t GetState() const {return fState;}
Float_t GetRealTime() const {return fRealTime;}
Float_t GetGeantTime() const {return fGeantTime;}
Float_t GetCharge() const {return fCharge;}
Float_t GetAverageTime() const {return fAverageTime;}
Int_t GetHit() const {return fHit;}
private:
Int_t fSector, fPlate, fStrip, fPixel; // sector, plate, strip and pad number
Int_t fTrack; // track number of first track fired the pixel
Int_t fTrackMatched; // track number i of TrackArray[i-1] matched with the pixel
Int_t fState; // =1, if the pixel is fired by the track
Float_t fRealTime; // real time [ns] given by the pad
Float_t fGeantTime; // GEANT3.21 time [ns] i.e. true time
Float_t fCharge; // charge related to the pad
Float_t fAverageTime; // average time of the pad cluster due to the Edge Effect [ns]
Int_t fHit; // hit number khit of HitArray[khit-1] which fired the pixel
ClassDef(AliTOFPad,1) // TOF Class used in reconstruction
};
#endif /* ALITOFPAD_H */