Hall C ROOT/C++ Analyzer (hcana)
Loading...
Searching...
No Matches
THcRawHit.h
Go to the documentation of this file.
1#ifndef ROOT_THcRawHit
2#define ROOT_THcRawHit
3
5// //
6// THcRawHit //
7// //
9#include "TObject.h"
10
11class THcRawHit : public TObject {
12
13public:
14 explicit THcRawHit( Int_t plane = 0, Int_t counter = 0 ) :
15 fPlane(plane), fCounter(counter) {};
16 THcRawHit( const THcRawHit& rhs ) = default;
17 THcRawHit& operator=( const THcRawHit& rhs ) = default;
18 virtual ~THcRawHit() = default;
19
21
22 // This line causes problem
23 // virtual void Clear( Option_t* opt="" )=0;
24
25 // virtual Bool_t operator==( const THcRawHit& ) = 0;
26 // virtual Bool_t operator!=( const THcRawHit& ) = 0;
27
28 virtual void SetData(Int_t signal, Int_t data) {};
29 virtual void SetSample(Int_t signal, Int_t data) {};
30 virtual void SetSampThreshold(Int_t signal, Double_t thres) {};
31 virtual void SetSampIntTimePedestalPeak(Int_t signal) {};
32 virtual void SetDataTimePedestalPeak(Int_t signal, Int_t data,
33 Int_t time, Int_t pedestal, Int_t peak) {};
34 virtual Int_t GetData(Int_t signal) {return 0;}; /* Ref time subtracted */
35 virtual Int_t GetRawData(Int_t signal) {return 0;} /* Ref time not subtracted */
36 virtual ESignalType GetSignalType(Int_t signal) {return kUndefined;}
37 virtual Int_t GetNSignals() { return 1;}
38
39 virtual void SetReference(Int_t signal, Int_t reference) {};
40 virtual void SetReferenceDiff(Int_t signal, Int_t reference) {};
41 virtual Bool_t HasReference(Int_t signal) {return kFALSE;};
42 virtual Int_t GetReference(Int_t signal) {return 0;};
43
44 virtual void SetF250Params(Int_t NSA, Int_t NSB, Int_t NPED) {};
45
46 // Derived objects must be sortable and supply Compare method
47 // virtual Bool_t IsSortable () const {return kFALSE; }
48 // virtual Int_t Compare(const TObject* obj) const {return 0;}
49 virtual Bool_t IsSortable () const {return kTRUE; }
50 virtual Int_t Compare(const TObject* obj) const;
51
54
55 private:
56
57 ClassDef(THcRawHit,0) // Raw Hit Base Class
58};
59
60#endif
int Int_t
bool Bool_t
const Bool_t kFALSE
double Double_t
const Bool_t kTRUE
#define ClassDef(name, id)
Base class detector specific raw hit that go into hit lists.
Definition THcRawHit.h:11
virtual void SetF250Params(Int_t NSA, Int_t NSB, Int_t NPED)
Definition THcRawHit.h:44
Int_t fPlane
Definition THcRawHit.h:52
virtual void SetData(Int_t signal, Int_t data)
Definition THcRawHit.h:28
virtual void SetDataTimePedestalPeak(Int_t signal, Int_t data, Int_t time, Int_t pedestal, Int_t peak)
Definition THcRawHit.h:32
virtual void SetSampIntTimePedestalPeak(Int_t signal)
Definition THcRawHit.h:31
virtual Int_t Compare(const TObject *obj) const
Definition THcRawHit.cxx:13
THcRawHit(const THcRawHit &rhs)=default
virtual Int_t GetRawData(Int_t signal)
Definition THcRawHit.h:35
virtual Int_t GetReference(Int_t signal)
Definition THcRawHit.h:42
virtual void SetReferenceDiff(Int_t signal, Int_t reference)
Definition THcRawHit.h:40
virtual Bool_t IsSortable() const
Definition THcRawHit.h:49
virtual void SetReference(Int_t signal, Int_t reference)
Definition THcRawHit.h:39
virtual Int_t GetNSignals()
Definition THcRawHit.h:37
Int_t fCounter
Definition THcRawHit.h:53
virtual Int_t GetData(Int_t signal)
Definition THcRawHit.h:34
virtual void SetSampThreshold(Int_t signal, Double_t thres)
Definition THcRawHit.h:30
virtual Bool_t HasReference(Int_t signal)
Definition THcRawHit.h:41
THcRawHit(Int_t plane=0, Int_t counter=0)
Definition THcRawHit.h:14
virtual ESignalType GetSignalType(Int_t signal)
Definition THcRawHit.h:36
THcRawHit & operator=(const THcRawHit &rhs)=default
virtual ~THcRawHit()=default
virtual void SetSample(Int_t signal, Int_t data)
Definition THcRawHit.h:29