ROOT logo
Podd » SRC » THaQWEAKHelicity

class THaQWEAKHelicity: public THaHelicityDet, public THaQWEAKHelicityReader

Function Members (Methods)

public:
THaQWEAKHelicity()
THaQWEAKHelicity(const char* name, const char* description, THaApparatus* a = NULL)
virtual~THaQWEAKHelicity()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual Int_tBegin(THaRunBase* r = 0)
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidClear(Option_t* opt = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual Int_tDecode(const THaEvData& evdata)
static Int_tTHaAnalysisObject::DefineVarsFromList(const void* list, THaAnalysisObject::EType type, THaAnalysisObject::EMode mode, const char* var_prefix, const TObject* obj, const char* prefix, const char* here)
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual Int_tEnd(THaRunBase* r = 0)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
Int_tTHaDetectorBase::FillDetMap(const vector<Int_t>& values, UInt_t flags = 0, const char* here = "FillDetMap")
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
static voidTHaAnalysisObject::GeoToSph(Double_t th_geo, Double_t ph_geo, Double_t& th_sph, Double_t& ph_sph)
THaApparatus*THaDetector::GetApparatus() const
const char*THaAnalysisObject::GetClassName() const
const char*THaAnalysisObject::GetConfig() const
virtual const char*THaHelicityDet::GetDBFileName() const
Int_tTHaAnalysisObject::GetDebug() const
THaDetMap*THaDetectorBase::GetDetMap() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual THaHelicityDet::EHelicityTHaHelicityDet::GetHelicity() const
UInt_tTHaQWEAKHelicityReader::GetHelicityTir() const
virtual const char*TObject::GetIconName() const
TDatimeTHaAnalysisObject::GetInitDate() const
virtual const char*TNamed::GetName() const
Int_tTHaDetectorBase::GetNelem() const
static TString&THaAnalysisObject::GetObjArrayString(const TObjArray* params, Int_t pos)
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const TVector3&THaDetectorBase::GetOrigin() const
UInt_tTHaQWEAKHelicityReader::GetPatternTir() const
const char*THaAnalysisObject::GetPrefix() const
UInt_tTHaQWEAKHelicityReader::GetRingDepth() const
const Double_t*THaDetectorBase::GetSize() const
UInt_tTHaQWEAKHelicityReader::GetTimeStampTir() const
virtual const char*TNamed::GetTitle() const
UInt_tTHaQWEAKHelicityReader::GetTSettleTir() const
virtual UInt_tTObject::GetUniqueID() const
const TVector3&THaDetectorBase::GetXax() const
Double_tTHaDetectorBase::GetXSize() const
const TVector3&THaDetectorBase::GetYax() const
Double_tTHaDetectorBase::GetYSize() const
const TVector3&THaDetectorBase::GetZax() const
Double_tTHaDetectorBase::GetZSize() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual Bool_tHelicityValid() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
THaAnalysisObject::EStatusTHaAnalysisObject::Init()
virtual THaAnalysisObject::EStatusTHaAnalysisObject::Init(const TDatime& run_time)
virtual Int_tTHaAnalysisObject::InitOutput(THaOutput*)
virtual voidTObject::Inspect() constMENU
static Bool_tTHaAnalysisObject::IntersectPlaneWithRay(const TVector3& xax, const TVector3& yax, const TVector3& org, const TVector3& ray_start, const TVector3& ray_vect, Double_t& length, TVector3& intersect)
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTHaDetectorBase::IsInActiveArea(Double_t x, Double_t y) const
Bool_tTHaAnalysisObject::IsInit() const
Bool_tTHaAnalysisObject::IsOK() const
Bool_tTHaAnalysisObject::IsOKOut()
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
static boolTHaAnalysisObject::IsTag(const char* buf)
Bool_tTObject::IsZombie() const
static Int_tTHaAnalysisObject::LoadDB(FILE* file, const TDatime& date, const DBRequest* request, const char* prefix, Int_t search = 0, const char* here = "THaAnalysisObject::LoadDB")
static Int_tTHaAnalysisObject::LoadDBvalue(FILE* file, const TDatime& date, const char* tag, Double_t& value)
static Int_tTHaAnalysisObject::LoadDBvalue(FILE* file, const TDatime& date, const char* tag, Int_t& value)
static Int_tTHaAnalysisObject::LoadDBvalue(FILE* file, const TDatime& date, const char* tag, string& text)
static Int_tTHaAnalysisObject::LoadDBvalue(FILE* file, const TDatime& date, const char* tag, TString& text)
virtual voidTNamed::ls(Option_t* option = "") const
virtual voidTHaHelicityDet::MakePrefix()
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static FILE*THaAnalysisObject::OpenFile(const char* name, const TDatime& date, const char* here = "OpenFile()", const char* filemode = "r", const int debug_flag = 1)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TNamed&TNamed::operator=(const TNamed& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTHaAnalysisObject::Print(Option_t* opt = "") const
voidTHaDetectorBase::PrintDetMap(Option_t* opt = "") const
voidPrintEvent(Int_t evtnum)
static voidTHaAnalysisObject::PrintObjects(Option_t* opt = "")
virtual Int_tTObject::Read(const char* name)
static Int_tTHaAnalysisObject::ReadDBline(FILE* fp, char* buf, size_t bufsiz, string& line)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
static Int_tTHaAnalysisObject::SeekDBconfig(FILE* file, const char* tag, const char* label = "config", Bool_t end_on_tag = false)
static Int_tTHaAnalysisObject::SeekDBdate(FILE* file, const TDatime& date, Bool_t end_on_tag = false)
virtual voidTHaDetector::SetApparatus(THaApparatus*)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidTHaAnalysisObject::SetConfig(const char* label)
virtual voidSetDebug(Int_t level)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTHaAnalysisObject::SetName(const char* name)
virtual voidTHaAnalysisObject::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual Int_tTNamed::Sizeof() const
static voidTHaAnalysisObject::SphToGeo(Double_t th_sph, Double_t ph_sph, Double_t& th_geo, Double_t& ph_geo)
THaAnalysisObject::EStatusTHaAnalysisObject::Status() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
static vector<std::string>THaAnalysisObject::vsplit(const string& s)
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
voidCheckTIRvsRing(Int_t eventnumber)
virtual const char*THaAnalysisObject::ClassNameHere(const char*) const
virtual voidTHaDetectorBase::DefineAxes(Double_t rotation_angle)
virtual Int_tDefineVariables(THaAnalysisObject::EMode mode = kDefine)
Int_tTHaAnalysisObject::DefineVarsFromList(const VarDef* list, THaAnalysisObject::EMode mode = kDefine, const char* var_prefix = "") const
Int_tTHaAnalysisObject::DefineVarsFromList(const RVarDef* list, THaAnalysisObject::EMode mode = kDefine, const char* var_prefix = "") const
Int_tTHaAnalysisObject::DefineVarsFromList(const void* list, THaAnalysisObject::EType type, THaAnalysisObject::EMode mode, const char* var_prefix = "") const
virtual voidTHaAnalysisObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidFillHisto()
THaAnalysisObject*THaAnalysisObject::FindModule(const char* name, const char* classname, bool do_error = true)
static vector<std::string>THaAnalysisObject::GetDBFileList(const char* name, const TDatime& date, const char* here = "GetDBFileList()")
virtual const char*THaAnalysisObject::Here(const char*) const
Int_tTHaAnalysisObject::LoadDB(FILE* f, const TDatime& date, const DBRequest* req, Int_t search = 0)
voidLoadHelicity(Int_t eventnumber)
voidTObject::MakeZombie()
virtual FILE*THaAnalysisObject::OpenFile(const TDatime& date)
virtual FILE*THaAnalysisObject::OpenRunDBFile(const TDatime& date)
Int_tRanBit30(Int_t& ranseed)
static char*THaAnalysisObject::ReadComment(FILE* fp, char* buf, const int len)
virtual Int_tTHaQWEAKHelicityReader::ReadData(const THaEvData& evdata)
virtual Int_tReadDatabase(const TDatime& date)
virtual Int_tTHaDetectorBase::ReadGeometry(FILE* file, const TDatime& date, Bool_t required = kFALSE)
virtual Int_tTHaAnalysisObject::ReadRunDatabase(const TDatime& date)
virtual Int_tTHaAnalysisObject::RemoveVariables()
voidSetErrorCode(Int_t error)
THaHelicityDet::EHelicitySetHelicity(Int_t polarity, Int_t phase)
Int_tTHaQWEAKHelicityReader::SetROCinfo(THaQWEAKHelicityReader::EROC which, Int_t roc, Int_t header, Int_t index)

Data Members

public:
enum THaHelicityDet::EHelicity { kMinus
kUnknown
kPlus
};
enum THaAnalysisObject::EStatus { kOK
kNotinit
kInitError
kFileError
};
enum THaAnalysisObject::EType { kVarDef
kRVarDef
};
enum THaAnalysisObject::EMode { kDefine
kDelete
};
enum THaAnalysisObject::EProperties { kNeedsRunDB
kConfigOverride
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
enum THaQWEAKHelicityReader::EROC { kHel
kTime
kRing
kROC3
};
enum THaQWEAKHelicityReader::[unnamed] { kHelRingDepth
};
public:
static const Double_tTHaAnalysisObject::kBig= 1.e38; // default junk value
protected:
Bool_tHWPIN
static const Int_tNHIST
static const Int_tTHaQWEAKHelicityReader::NHISTR
TStringTHaAnalysisObject::fConfigConfiguration to use from database
Int_tTHaAnalysisObject::fDebugDebug level
THaDetMap*THaDetectorBase::fDetMapHardware channel map for this detector
Double_tfErrorCode
Int_tfEvtypeCurrent CODA event type
Bool_tTHaQWEAKHelicityReader::fHaveROCsRequired ROCs are defined
THaHelicityDet::EHelicityTHaHelicityDet::fHelicityBeam helicity. fHelicity = fSign * decoded_helicity
Int_tfHelicityLastTIR
Int_tTHaQWEAKHelicityReader::fHelicityRing[500]
Int_tTHaQWEAKHelicityReader::fHelicityTir
TH1F*fHisto[2]
TH1F*THaQWEAKHelicityReader::fHistoR[12]Histograms
Int_tTHaQWEAKHelicityReader::fIRing
TDatimeTHaAnalysisObject::fInitDateDate passed to Init
Bool_tTHaAnalysisObject::fIsInitFlag indicating that ReadDatabase done
Bool_tTHaAnalysisObject::fIsSetupFlag indicating that DefineVariables done.
Int_tfMAXBIT
TStringTNamed::fNameobject identifier
Bool_tTHaQWEAKHelicityReader::fNegGateInvert polarity of gate, TO DO implement this functionality
Int_tTHaDetectorBase::fNelemNumber of detector elements (paddles, mirrors)
Bool_tTHaAnalysisObject::fOKOutFlag indicating object-output prepared
Int_tfOffsetTIRvsRing
Int_tTHaQWEAKHelicityReader::fOldTimeStampTir
TVector3THaDetectorBase::fOriginCenter position of detector (m)
Int_tfPatternLastTIR
Int_tTHaQWEAKHelicityReader::fPatternRing[500]
vector<Int_t>fPatternSequencesequence of 0 and 1 in the pattern
Int_tTHaQWEAKHelicityReader::fPatternTir
char*THaAnalysisObject::fPrefixName prefix for global variables
UInt_tTHaAnalysisObject::fPropertiesProperties of this object (see EProperties)
Int_tTHaQWEAKHelicityReader::fQWEAKDebugDebug level
Int_tfQWEAKDelay
Int_tfQWEAKNPatternmaximum of event in the pattern
Int_tfQrt
THaQWEAKHelicityReader::ROCinfoTHaQWEAKHelicityReader::fROCinfo[3]for now only work with one roc (roc 11),
Int_tfRingPhase_reported
Int_tfRingSeed_actual
Int_tfRingSeed_reported
Int_tfRingT10minus
Int_tfRingT10plus
Int_tfRingT3minus
Int_tfRingT3plus
Int_tfRingT5minus
Int_tfRingT5plus
Int_tfRingTimeminus
Int_tfRingTimeplus
Int_tfRingU3minus
Int_tfRingU3plus
Int_tfRing_NSeednumber of event collected for seed
Int_tfRing_actual_polarity
Int_tfRing_reported_polarity
Int_tTHaHelicityDet::fSignOverall sign of beam helicity. Default 1.
Double_tTHaDetectorBase::fSize[3]Detector size in x,y,z (m) - x,y are half-widths
THaAnalysisObject::EStatusTHaAnalysisObject::fStatusInitialization status flag
Int_tTHaQWEAKHelicityReader::fT10Ring[500]
Int_tTHaQWEAKHelicityReader::fT3Ring[500]
Int_tTHaQWEAKHelicityReader::fT5Ring[500]
Int_tfTSettle
Int_tTHaQWEAKHelicityReader::fTSettleTir
Int_tTHaQWEAKHelicityReader::fTimeStampRing[500]
Int_tTHaQWEAKHelicityReader::fTimeStampTir
TStringTNamed::fTitleobject title
Int_tTHaQWEAKHelicityReader::fU3Ring[500]
Bool_tfValidHel
TVector3THaDetectorBase::fXaxX axis of the detector plane
TVector3THaDetectorBase::fYaxY axis of the detector plane
TVector3THaDetectorBase::fZaxNormal to the detector plane

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

THaQWEAKHelicity(const char* name, const char* description, THaApparatus* a = NULL)
THaQWEAKHelicity()
 Default constructor for ROOT I/O
~THaQWEAKHelicity()
Int_t DefineVariables(THaAnalysisObject::EMode mode = kDefine)
 Initialize global variables
void PrintEvent(Int_t evtnum)
Int_t ReadDatabase(const TDatime& date)
 Read general HelicityDet database values (e.g. fSign)
Int_t Begin(THaRunBase* r = 0)
void FillHisto()
void SetErrorCode(Int_t error)
 used as a control for the helciity computation
 2^0: if the reported number of events in a  pattern is larger than fQWEAKNPattern
 2^1: if the offset between the ring reported value and TIR value is not fOffsetTIRvsRing
 2^2: if the reported time in the ring is 0
 2^3: if the predicted reported helicity doesn't match the reported helicity in the ring
 2^4: if the helicity cannot be computed using the SetHelicity routine
 2^5: if seed is being gathered
void Clear(Option_t* opt = "")
 Clear event-by-event data
Int_t Decode(const THaEvData& evdata)
void CheckTIRvsRing(Int_t eventnumber)
 here one checks that the offset between the TIR helicity reports
 and the Ring report is as expected (fQWEAKOffset)
 This is a simplified comparison: ie not every  TIR readings is
 compared to the Ring readings for example, and offset=3
 for simplicity the comparison only if the  ring buffer contains at least
 fQWEAKOffset readings
Int_t End(THaRunBase* r = 0)
 End of run processing. Write histograms.
void SetDebug(Int_t level)
 Set debug level of this detector as well as the THaQWEAKHelicityReader
 helper class.
void LoadHelicity(Int_t eventnumber)
THaHelicityDet::EHelicity SetHelicity(Int_t polarity, Int_t phase)
 here predicted_reported_helicity can have a value of 0 or 1
 fPatternSequence[fRingPhase_reported] canhave a value of 1 or -1
Int_t RanBit30(Int_t& ranseed)
Bool_t HelicityValid() const
{ return fValidHel; }