Hall C ROOT/C++ Analyzer (hcana)
Go to the documentation of this file.
1 #ifndef ROOT_THcTrigRawHit
2 #define ROOT_THcTrigRawHit
5 #include "THcRawHit.h"
6 #include "THcRawAdcHit.h"
7 #include "THcRawTdcHit.h"
10 class THcTrigRawHit : public THcRawHit {
11  public:
12  THcTrigRawHit(Int_t plane=0, Int_t counter=0);
13  THcTrigRawHit& operator=(const THcTrigRawHit& right);
14  virtual ~THcTrigRawHit();
16  virtual void Clear(Option_t* opt="");
18  void SetData(Int_t signal, Int_t data);
19  void SetSample(Int_t signal, Int_t data);
21  Int_t signal, Int_t data, Int_t time, Int_t pedestal, Int_t peak
22  );
23  void SetReference(Int_t signal, Int_t reference);
25  Int_t GetData(Int_t signal);
26  Int_t GetRawData(Int_t signal);
27  Int_t GetReference(Int_t signal);
31  Bool_t HasReference(Int_t signal);
36  void SetF250Params(Int_t NSA, Int_t NSB, Int_t NPED);
38  protected:
39  static const Int_t fNAdcSignals = 1;
40  static const Int_t fNTdcSignals = 1;
45  private:
47 };
50 #endif // ROOT_THcTrigRawHit
const char Option_t
THcRawTdcHit & GetRawTdcHit()
Gets reference to THcRawTdcHit.
void SetReference(Int_t signal, Int_t reference)
Sets reference time.
int Int_t
bool Bool_t
Class representing a single raw TDC hit.
Definition: THcRawTdcHit.h:7
tuple signal
void SetF250Params(Int_t NSA, Int_t NSB, Int_t NPED)
See THcRawAdcHit::SetF250Params.
ClassDef(THcTrigRawHit, 0)
Int_t GetNSignals()
Returns number of signal handled by this class, i.e., 2.
void SetSample(Int_t signal, Int_t data)
Sets next waveform sample value.
virtual void Clear(Option_t *opt="")
Clears variables before next event.
THcRawTdcHit fTdcHits[fNTdcSignals]
Definition: THcTrigRawHit.h:43
Int_t GetData(Int_t signal)
Gets data for first hit of signal.
void SetDataTimePedestalPeak(Int_t signal, Int_t data, Int_t time, Int_t pedestal, Int_t peak)
Sets multiple bits of data from flash 250 ADC modules.
tuple data
THcRawAdcHit fAdcHits[fNAdcSignals]
Definition: THcTrigRawHit.h:42
Class representing a single raw hit for the THcTrigDet.
Definition: THcTrigRawHit.h:10
Bool_t HasReference(Int_t signal)
Checks if reference time is available.
Base class detector specific raw hit that go into hit lists.
Definition: THcRawHit.h:11
THcTrigRawHit(Int_t plane=0, Int_t counter=0)
A constructor.
THcRawAdcHit & GetRawAdcHit()
Gets reference to THcRawAdcHit.
ESignalType GetSignalType(Int_t signal)
Returns the signal type.
THcTrigRawHit & operator=(const THcTrigRawHit &right)
Assignment operator.
void SetData(Int_t signal, Int_t data)
Sets next data value.
Int_t GetRawData(Int_t signal)
Gets raw data for first hit of signal.
static const Int_t fNAdcSignals
Definition: THcTrigRawHit.h:39
static const Int_t fNTdcSignals
Definition: THcTrigRawHit.h:40
Class representing a single raw ADC hit.
Definition: THcRawAdcHit.h:7
Int_t GetReference(Int_t signal)
Returns reference time.
virtual ~THcTrigRawHit()
A destructor.