ROOT logo
Podd » SRC » THaQWEAKHelicityReader

class THaQWEAKHelicityReader

Function Members (Methods)

public:
THaQWEAKHelicityReader()
THaQWEAKHelicityReader(const THaQWEAKHelicityReader&)
virtual~THaQWEAKHelicityReader()
static TClass*Class()
UInt_tGetHelicityTir() const
UInt_tGetPatternTir() const
UInt_tGetRingDepth() const
UInt_tGetTimeStampTir() const
UInt_tGetTSettleTir() const
virtual TClass*IsA() const
THaQWEAKHelicityReader&operator=(const THaQWEAKHelicityReader&)
voidPrint()
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
protected:
voidBegin()
virtual voidClear(Option_t* opt = "")
voidEnd()
voidFillHisto()
virtual Int_tReadData(const THaEvData& evdata)
Int_tReadDatabase(const char* dbfilename, const char* prefix, const TDatime& date, int debug_flag = 0)
Int_tSetROCinfo(THaQWEAKHelicityReader::EROC which, Int_t roc, Int_t header, Int_t index)
private:
static Int_tFindWord(const THaEvData& evdata, const THaQWEAKHelicityReader::ROCinfo& info)

Data Members

public:
enum EROC { kHel
kTime
kRing
kROC3
};
enum { kHelRingDepth
};
protected:
static const Int_tNHISTR
Bool_tfHaveROCsRequired ROCs are defined
Int_tfHelicityRing[500]
Int_tfHelicityTir
TH1F*fHistoR[12]Histograms
Int_tfIRing
Bool_tfNegGateInvert polarity of gate, TO DO implement this functionality
Int_tfOldTimeStampTir
Int_tfPatternRing[500]
Int_tfPatternTir
Int_tfQWEAKDebugDebug level
THaQWEAKHelicityReader::ROCinfofROCinfo[3]for now only work with one roc (roc 11),
Int_tfT10Ring[500]
Int_tfT3Ring[500]
Int_tfT5Ring[500]
Int_tfTSettleTir
Int_tfTimeStampRing[500]
Int_tfTimeStampTir
Int_tfU3Ring[500]

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

THaQWEAKHelicityReader()
 Default constructor
~THaQWEAKHelicityReader()
 for( Int_t i = 0; i < NHISTR; ++i ) {
   delete fHistoR[i];
 }
void Print()
void Clear(Option_t* opt = "")
Int_t FindWord(const THaEvData& evdata, const THaQWEAKHelicityReader::ROCinfo& info)
 find the index of the word we are looking for given a header
 or simply return the index already stored in ROC info (in that case
 the header stored in ROC info needs to be 0
Int_t ReadDatabase(const char* dbfilename, const char* prefix, const TDatime& date, int debug_flag = 0)
 Read parameters from database:  ROC info (detector map), QWEAK delay value
 TODO: for now I will bypass this call and just hardcode the data I need
  static const char* const here = "THaQWEAKHelicityReader::ReadDatabase";
void Begin()
 static const char* const here = "THaQWEAKHelicityReader::Begin";
 cout<<here<<endl;
void End()
 static const char* const here = "THaQWEAKHelicityReader::End";
 cout<<here<<endl;
Int_t ReadData(const THaEvData& evdata)
 Obtain the present data from the event for QWEAK helicity mode.
void FillHisto()
 static const char* here = "THaQWEAKHelicityReader::FillHisto";
 cout<<here<<endl;
Int_t SetROCinfo(THaQWEAKHelicityReader::EROC which, Int_t roc, Int_t header, Int_t index)
THaQWEAKHelicityReader()
UInt_t GetPatternTir() const
 when an event trigger the acquisition the reported helicity, T_settle and Pattern sync
signals are recorded by the an Input Register.
{return fPatternTir;}
UInt_t GetHelicityTir() const
{return fHelicityTir;}
UInt_t GetTSettleTir() const
{return fTSettleTir;}
UInt_t GetTimeStampTir() const
 in parrallel, these signals are recorded in the ring buffer of the helicity gated scaler
 the maximum depth of this ring is for now 500.
{return fTimeStampTir;}
UInt_t GetRingDepth() const
 I should have the depth of the ring defined in the data base
 let call it kHelRingDepth for now
{return fIRing;}