GRUTinizer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TFastScintHit.h
Go to the documentation of this file.
1 #ifndef _TFASTSCINTDETECTORHIT_H_
2 #define _TFASTSCINTDETECTORHIT_H_
3 
4 #include "TDetectorHit.h"
5 
6 class TFastScintHit : public TDetectorHit {
7 public:
9 
10  void Clear(Option_t* opt = "");
11  void Copy(TObject& obj) const;
12 
13  void SetCharge(int chg) { fCharge = chg; }
14  void SetChannel(int chan) { fChannel = chan; }
15  void SetTime(int time) { fTime = time; }
16  void SetTimestamp(long ts) { fTimestamp = ts; }
17 
18  virtual int Charge() const { return fCharge; }
19  int GetChannel() const { return fChannel; }
20  int GetTime() const { return fTime; }
21  long GetTimestamp() const { return fTimestamp; }
22 
23 private:
24  long fTimestamp;
25  int fChannel;
26  int fTime;
27  int fCharge;
28 
30 };
31 
32 #endif /* _TFASTSCINTDETECTORHIT_H_ */