Hall C ROOT/C++ Analyzer (hcana)
THcHelicity Class Reference

Determine the beam helicity for the current event.

Definition at line 18 of file THcHelicity.h.

Public Member Functions

virtual Int_t Begin (THaRunBase *r=0)
 
virtual void Clear (Option_t *opt="")
 
virtual Int_t Decode (const THaEvData &evdata)
 
virtual Int_t End (THaRunBase *r=0)
 
virtual EStatus Init (const TDatime &date)
 
virtual void MakePrefix ()
 
void PrintEvent (Int_t evtnum)
 
virtual void SetDebug (Int_t level)
 
virtual void SetHelicityScaler (THcHelicityScaler *f)
 
 THcHelicity (const char *name, const char *description, THaApparatus *a=NULL)
 
 THcHelicity ()
 
virtual ~THcHelicity ()
 
- Public Member Functions inherited from THcHelicityReader
 THcHelicityReader ()
 
virtual ~THcHelicityReader ()
 

Protected Member Functions

virtual Int_t DefineVariables (EMode mode=kDefine)
 
void FillHisto ()
 
Int_t GetSeed30 (Int_t currentseed)
 
void LoadHelicity (Int_t reportedhelicity, Int_t cyclecount, Int_t missedcycles)
 
Int_t RanBit30 (Int_t ranseed)
 
virtual Int_t ReadDatabase (const TDatime &date)
 
void SetErrorCode (Int_t error)
 
void Setup (const char *name, const char *description)
 
- Protected Member Functions inherited from THcHelicityReader
void Begin ()
 
void End ()
 
virtual Int_t ReadData (const THaEvData &evdata)
 
Int_t ReadDatabase (const char *dbfilename, const char *prefix, const TDatime &date, int debug_flag=0)
 
Int_t SetROCinfo (EROC which, Int_t roc, Int_t slot, Int_t index)
 

Protected Attributes

Int_t evnum
 
Int_t fActualHelicity
 
Double_t fCycle
 
Bool_t fDisabled
 
Double_t fErrorCode
 
Int_t fEvNumCheck
 
Int_t fEvtype
 
Int_t fFirstCycle
 
Bool_t fFirstEvProcessed
 
Long64_t fFirstEvTime
 
Bool_t fFixFirstCycle
 
Bool_t fFoundMPS
 
Bool_t fFoundQuartet
 
Double_t fFreq
 
THcHelicityScalerfglHelicityScaler
 
Bool_t fHaveQRT
 
Int_t fHelDelay
 
Int_tfHelicityHistory
 
Int_t fHelperHistory
 
Int_t fHelperQuartetHistory
 
TH1FfHisto [NHIST]
 
Bool_t fIsNewCycle
 
std::string fKwPrefix
 
Int_t fLastActualHelicity
 
Long64_t fLastEvTime
 
Int_t fLastHelpCycle
 
Int_t fLastLastScaleHel
 
Long64_t fLastMPSTime
 
Int_t fLastReportedHelicity
 
Int_t fLastScaleHel
 
Int_t fMAXBIT
 
Int_t fMPS
 
Int_t fNBits
 
Int_t fNCycle
 
Int_t fNLastQuartet
 
Int_t fnQrt
 
Int_t fNQRTProblems
 
Int_t fNQuartet
 
std::vector< Int_tfPatternSequence
 
Double_t fPeriodCheck
 
Double_t fPeriodCheckOffset
 
Int_t fPredictedHelicity
 
Int_t fQrt
 
Int_t fQuadPattern [8]
 
Int_t fQuartet [4]
 
Int_t fQuartetStartHelicity
 
Int_t fQuartetStartPredictedHelicity
 
Int_t fQWEAKNPattern
 
Double_t fRecommendedFreq
 
Int_t fReportedHelicity
 
Int_t fRingSeed_actual
 
Int_t fRingSeed_reported
 
Int_t fRingSeed_reported_initial
 
Int_t fScaleQuartet
 
Int_t fScalerSeed
 
Int_t fThisScaleHel
 
Double_t fTIPeriod
 
Bool_t HWPIN
 
Int_t lastispos
 
- Protected Attributes inherited from THcHelicityReader
Int_t fADCThreshold
 
Bool_t fHaveROCs
 
Bool_t fIsHelm
 
Bool_t fIsHelp
 
Bool_t fIsMPS
 
Bool_t fIsQrt
 
Bool_t fNegGate
 
Int_t fQWEAKDebug
 
ROCinfo fROCinfo [kCount]
 
ULong64_t fTITime
 
UInt_t fTITime_last
 
UInt_t fTITime_rollovers
 

Static Protected Attributes

static const Int_t NHIST = 2
 
- Static Protected Attributes inherited from THcHelicityReader
static const Int_t NHISTR = 12
 

Additional Inherited Members

- Protected Types inherited from THcHelicityReader
enum  EROC {
  kHel = 0, kHelm, kMPS, kQrt,
  kTime, kCount
}
 

#include <THcHelicity.h>

Inheritance diagram for THcHelicity:

Constructor & Destructor Documentation

THcHelicity::THcHelicity ( const char *  name,
const char *  description,
THaApparatus *  a = NULL 
)

Definition at line 31 of file THcHelicity.cxx.

THcHelicity::THcHelicity ( )

Definition at line 44 of file THcHelicity.cxx.

THcHelicity::~THcHelicity ( )
virtual

Definition at line 54 of file THcHelicity.cxx.

Member Function Documentation

Int_t THcHelicity::Begin ( THaRunBase *  r = 0)
virtual

Definition at line 225 of file THcHelicity.cxx.

void THcHelicity::Clear ( Option_t opt = "")
virtual

Reimplemented from THcHelicityReader.

Definition at line 261 of file THcHelicity.cxx.

Int_t THcHelicity::Decode ( const THaEvData evdata)
virtual

Definition at line 282 of file THcHelicity.cxx.

Int_t THcHelicity::DefineVariables ( EMode  mode = kDefine)
protectedvirtual

Definition at line 185 of file THcHelicity.cxx.

Int_t THcHelicity::End ( THaRunBase *  r = 0)
virtual

Definition at line 587 of file THcHelicity.cxx.

void THcHelicity::FillHisto ( )
protected
Int_t THcHelicity::GetSeed30 ( Int_t  currentseed)
protected

Definition at line 759 of file THcHelicity.cxx.

THaAnalysisObject::EStatus THcHelicity::Init ( const TDatime date)
virtual

Definition at line 64 of file THcHelicity.cxx.

void THcHelicity::LoadHelicity ( Int_t  reportedhelicity,
Int_t  cyclecount,
Int_t  missedcycles 
)
protected

Definition at line 624 of file THcHelicity.cxx.

void THcHelicity::MakePrefix ( )
virtual

Definition at line 180 of file THcHelicity.cxx.

void THcHelicity::PrintEvent ( Int_t  evtnum)

Definition at line 214 of file THcHelicity.cxx.

Int_t THcHelicity::RanBit30 ( Int_t  ranseed)
protected

Definition at line 731 of file THcHelicity.cxx.

Int_t THcHelicity::ReadDatabase ( const TDatime date)
protectedvirtual

Definition at line 115 of file THcHelicity.cxx.

void THcHelicity::SetDebug ( Int_t  level)
virtual

Definition at line 614 of file THcHelicity.cxx.

void THcHelicity::SetErrorCode ( Int_t  error)
protected

Definition at line 243 of file THcHelicity.cxx.

void THcHelicity::SetHelicityScaler ( THcHelicityScaler f)
virtual

Definition at line 275 of file THcHelicity.cxx.

void THcHelicity::Setup ( const char *  name,
const char *  description 
)
protected

Definition at line 107 of file THcHelicity.cxx.

Member Data Documentation

Int_t THcHelicity::evnum
protected

Definition at line 123 of file THcHelicity.h.

Int_t THcHelicity::fActualHelicity
protected

Definition at line 69 of file THcHelicity.h.

Double_t THcHelicity::fCycle
protected

Definition at line 59 of file THcHelicity.h.

Bool_t THcHelicity::fDisabled
protected

Definition at line 106 of file THcHelicity.h.

Double_t THcHelicity::fErrorCode
protected

Definition at line 101 of file THcHelicity.h.

Int_t THcHelicity::fEvNumCheck
protected

Definition at line 105 of file THcHelicity.h.

Int_t THcHelicity::fEvtype
protected

Definition at line 103 of file THcHelicity.h.

Int_t THcHelicity::fFirstCycle
protected

Definition at line 50 of file THcHelicity.h.

Bool_t THcHelicity::fFirstEvProcessed
protected

Definition at line 61 of file THcHelicity.h.

Long64_t THcHelicity::fFirstEvTime
protected

Definition at line 63 of file THcHelicity.h.

Bool_t THcHelicity::fFixFirstCycle
protected

Definition at line 51 of file THcHelicity.h.

Bool_t THcHelicity::fFoundMPS
protected

Definition at line 72 of file THcHelicity.h.

Bool_t THcHelicity::fFoundQuartet
protected

Definition at line 73 of file THcHelicity.h.

Double_t THcHelicity::fFreq
protected

Definition at line 52 of file THcHelicity.h.

THcHelicityScaler* THcHelicity::fglHelicityScaler
protected

Definition at line 114 of file THcHelicity.h.

Bool_t THcHelicity::fHaveQRT
protected

Definition at line 81 of file THcHelicity.h.

Int_t THcHelicity::fHelDelay
protected

Definition at line 89 of file THcHelicity.h.

Int_t* THcHelicity::fHelicityHistory
protected

Definition at line 115 of file THcHelicity.h.

Int_t THcHelicity::fHelperHistory
protected

Definition at line 119 of file THcHelicity.h.

Int_t THcHelicity::fHelperQuartetHistory
protected

Definition at line 120 of file THcHelicity.h.

TH1F* THcHelicity::fHisto[NHIST]
protected

Definition at line 109 of file THcHelicity.h.

Bool_t THcHelicity::fIsNewCycle
protected

Definition at line 74 of file THcHelicity.h.

std::string THcHelicity::fKwPrefix
protected

Definition at line 41 of file THcHelicity.h.

Int_t THcHelicity::fLastActualHelicity
protected

Definition at line 104 of file THcHelicity.h.

Long64_t THcHelicity::fLastEvTime
protected

Definition at line 64 of file THcHelicity.h.

Int_t THcHelicity::fLastHelpCycle
protected

Definition at line 116 of file THcHelicity.h.

Int_t THcHelicity::fLastLastScaleHel
protected

Definition at line 126 of file THcHelicity.h.

Long64_t THcHelicity::fLastMPSTime
protected

Definition at line 65 of file THcHelicity.h.

Int_t THcHelicity::fLastReportedHelicity
protected

Definition at line 62 of file THcHelicity.h.

Int_t THcHelicity::fLastScaleHel
protected

Definition at line 125 of file THcHelicity.h.

Int_t THcHelicity::fMAXBIT
protected

Definition at line 91 of file THcHelicity.h.

Int_t THcHelicity::fMPS
protected

Definition at line 67 of file THcHelicity.h.

Int_t THcHelicity::fNBits
protected

Definition at line 79 of file THcHelicity.h.

Int_t THcHelicity::fNCycle
protected

Definition at line 75 of file THcHelicity.h.

Int_t THcHelicity::fNLastQuartet
protected

Definition at line 77 of file THcHelicity.h.

Int_t THcHelicity::fnQrt
protected

Definition at line 80 of file THcHelicity.h.

Int_t THcHelicity::fNQRTProblems
protected

Definition at line 82 of file THcHelicity.h.

Int_t THcHelicity::fNQuartet
protected

Definition at line 76 of file THcHelicity.h.

std::vector<Int_t> THcHelicity::fPatternSequence
protected

Definition at line 93 of file THcHelicity.h.

Double_t THcHelicity::fPeriodCheck
protected

Definition at line 57 of file THcHelicity.h.

Double_t THcHelicity::fPeriodCheckOffset
protected

Definition at line 58 of file THcHelicity.h.

Int_t THcHelicity::fPredictedHelicity
protected

Definition at line 68 of file THcHelicity.h.

Int_t THcHelicity::fQrt
protected

Definition at line 98 of file THcHelicity.h.

Int_t THcHelicity::fQuadPattern[8]
protected

Definition at line 118 of file THcHelicity.h.

Int_t THcHelicity::fQuartet[4]
protected

Definition at line 78 of file THcHelicity.h.

Int_t THcHelicity::fQuartetStartHelicity
protected

Definition at line 70 of file THcHelicity.h.

Int_t THcHelicity::fQuartetStartPredictedHelicity
protected

Definition at line 71 of file THcHelicity.h.

Int_t THcHelicity::fQWEAKNPattern
protected

Definition at line 94 of file THcHelicity.h.

Double_t THcHelicity::fRecommendedFreq
protected

Definition at line 53 of file THcHelicity.h.

Int_t THcHelicity::fReportedHelicity
protected

Definition at line 66 of file THcHelicity.h.

Int_t THcHelicity::fRingSeed_actual
protected

Definition at line 85 of file THcHelicity.h.

Int_t THcHelicity::fRingSeed_reported
protected

Definition at line 84 of file THcHelicity.h.

Int_t THcHelicity::fRingSeed_reported_initial
protected

Definition at line 49 of file THcHelicity.h.

Int_t THcHelicity::fScaleQuartet
protected

Definition at line 117 of file THcHelicity.h.

Int_t THcHelicity::fScalerSeed
protected

Definition at line 121 of file THcHelicity.h.

Int_t THcHelicity::fThisScaleHel
protected

Definition at line 124 of file THcHelicity.h.

Double_t THcHelicity::fTIPeriod
protected

Definition at line 55 of file THcHelicity.h.

Bool_t THcHelicity::HWPIN
protected

Definition at line 95 of file THcHelicity.h.

Int_t THcHelicity::lastispos
protected

Definition at line 122 of file THcHelicity.h.

const Int_t THcHelicity::NHIST = 2
staticprotected

Definition at line 108 of file THcHelicity.h.

Collaboration diagram for THcHelicity:

The documentation for this class was generated from the following files: