#include "LegsEvent.h"

LegsEvent


class description - source file - inheritance tree (.pdf)

class LegsEvent : public TObject

Inheritance Chart:
TObject
<-
LegsEvent
<-
LegsRun

    protected:
bool ConvertInput() void DataOK(UShort_t data) UChar_t GetTagIdFromTagEgy() const public:
LegsEvent() LegsEvent(const char* run, Int_t numFiles = 0, const char* suffix = "NULL", Int_t timeStampFlag = 0, Int_t simRunNumber = 4341) LegsEvent(const LegsEvent&) virtual ~LegsEvent() void AddToListOfSelectors(TObject* data) void AddToListOfStandardMakers(TObject* data) void AddToListOfUserMakers(TObject* data) bool AreTwoNeutralsInXT() const void CdOutFile() static TClass* Class() bool GeantSimulation() const UShort_t GetAdc1(UShort_t i) const UShort_t GetAdc2(UShort_t i) const Int_t GetClump(UShort_t i) const UChar_t GetCol(UShort_t i) const Int_t GetCount() const Int_t GetCurrent() const UShort_t GetDefaultPart() const UChar_t GetDet(UShort_t i) const UShort_t GetDetIndex(UShort_t i) const UChar_t GetFace(UShort_t i) const Int_t GetFeraReg() const Int_t GetFinish() const Int_t GetFluxMonitor() Float_t GetFluxPolTagBin(UChar_t pol, UChar_t tagbin) const Float_t GetFluxPolTagGroup(UChar_t pol, UChar_t tagGroup) const Float_t GetLgt(UShort_t i) const Int_t GetLivSlr(Int_t i) const bool GetLoopOverMultipleTagHits() Int_t GetMcCount() const Float_t GetMcEgy(Int_t i) const UShort_t GetMcID(Int_t i) const Float_t GetMcPhotEgy() const UChar_t GetMcPol() const Float_t GetMcPx(Int_t i) const Float_t GetMcPy(Int_t i) const Float_t GetMcPz(Int_t i) const Int_t GetMcTrue() const Float_t GetMcX() const Float_t GetMcY() const Float_t GetMcZ() const bool GetNotToProcess(UChar_t det) string GetPrefix() const Int_t GetRawSlr(Int_t i) const Int_t GetRegIO() const UChar_t GetRegPol() const UChar_t GetRow(UShort_t i) const UInt_t GetRunNumber(UInt_t data = 0) const Int_t GetSimulatedRunNumber() bool GetSkipMultipleTagHitsEvents() Int_t GetSlrCount() const Int_t GetStart() const Int_t GetStCount() const UChar_t GetStID(Int_t i) const UShort_t GetStTdc(Int_t i) const Int_t GetTagCount() const Float_t GetTagEgy(UInt_t i = 1000) const UChar_t GetTagID(UInt_t i = 1000) const UChar_t GetTagIDdirect(Int_t i) UShort_t GetTagTdc(UInt_t i = 1000) const TargetMaterial_t GetTargetMaterial() UShort_t GetTdc1(UShort_t i) const UShort_t GetTdc2(UShort_t i) const UInt_t GetTime() const Float_t GetTof(UShort_t i) const void IncrementRawDetectorHitsCounters() void InitSubsetTree(string newPrefix = subset_) static LegsEvent* Instance() virtual TClass* IsA() const bool IsCG3() const bool IsCv() const bool IsDet(UShort_t detId, Short_t num = 1) const bool IsDetOFF() bool IsDetOff() bool IsDetON() bool IsDetOn() bool IsNb(Short_t num = 1) const bool IsNv(Short_t num = 1) const bool IsPb(Short_t num = 1) const bool IsPbp() const bool IsPf() const bool IsPn(Short_t num = 1) const bool IsPv(Short_t num = 1) const bool IsTargetEmpty() bool IsXc(Short_t num = 1) const bool IsXt(Short_t num = 1) const bool IsXtFace(Short_t face, const Float_t& thresh = 0.0) const bool IsXv(Short_t num = 1, const Float_t& thresh = 0.0) const bool IsXvFace(Short_t face, const Float_t& thresh = 0.0) const Int_t MyRank() void NotToProcess(UChar_t det) Int_t Ntasks() LegsEvent& operator=(const LegsEvent&) void SetDefaultPart(UShort_t id) void SetFluxMonitor(Int_t ID) void Show(UInt_t event = 0) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void SubsetTreeFill(string& newPrefix)

Data Members

    private:
static LegsEvent* fInstance protected:
Int_t fCount UChar_t fDet[1030] UChar_t fFace[1030] UChar_t fRow[1030] UChar_t fCol[1030] UShort_t fAdc1[1030] UShort_t fTdc1[1030] UShort_t fAdc2[1030] UShort_t fTdc2[1030] Float_t fLgt[1030] Float_t fTof[1030] UChar_t fClump[1030] Int_t fTagCount UChar_t fTagID[64] Float_t fTagEgy[64] UShort_t fTagTdc[64] Int_t fStCount UChar_t fStID[30] UShort_t fStTdc[30] Int_t tagck_count UChar_t tagck_id[64] planning to use 121604 UShort_t tagck_tdc[64] UChar_t fRegPol UInt_t fRegIO UInt_t fTime UInt_t fFeraReg Int_t fSlrCount UInt_t fRawSlr[24] UInt_t fLivSlr[24] Int_t fMcCount UChar_t fMcID[10] Float_t fMcPX[10] Float_t fMcPY[10] Float_t fMcPZ[10] Float_t fMcEgy[10] Int_t fMcTrue Float_t fMcX Float_t fMcY Float_t fMcZ UChar_t fMcPol Float_t fMcPhotEgy bool fSkipMultipleTagHitsEvents if this flag is set then program will skip multiple tag hit events, default value is set in LegsEvent::LegsEvent() (use function LegsRun::SetSkipMultipleTagHitsEvents() to change value) bool fLoopOverMultipleTagHits if this flag is set then program will automatically loop over multiple tag hits in an event, default value is set in LegsEvent::LegsEvent() (use function LegsRun::SetLoopOverMultipleTagHits() to change value) bool fIsGeantSimulation TList* fListOfSelectors TList* fListOfStandardMakers TList* fListOfUserMakers TIter* fSelectorIter TIter* fStandardMakerIter TIter* fUserMakerIter TFile* fOutFile string fPrefix Int_t fNumberOfFilesInRun Int_t fCurrent Int_t fStart index of entry from which to start processing tree Int_t fEntries total number of entries in a tree Int_t fFinish index of entry up to which to process the tree bool fTmpBool Int_t fFluxMonitor bool fDetON TTree* fSubsetTree TFile* fSubsetTreeFile bool fTargetEmpty vector<vector<Float_t> > fFluxPolTagBin vector<vector<Float_t> > fFluxPolTagGroup vector<vector<Float_t> > fFluxErrPolTagGroup UShort_t fDefaultPart default particle ID set by user bool fNotToProcess[12] Int_t fMyRank rank of this process Int_t fNtasks number of nodes string fHostName public:
TChain* fTree ! pointer to the analyzed TChain Int_t rxv_count Int_t rxt_count Int_t rxc_count Int_t rpv_count Int_t rpn_count Int_t rpb_count Int_t rcv_count Int_t rpf_count Int_t rcg3_count Int_t rnb_count Int_t rnv_count Int_t ccg3_count Int_t cxv_count Int_t cxt_count Int_t cxc_count Int_t cpv_count Int_t cpn_count Int_t cpb_count Int_t cpf_count Int_t ccv_count Int_t cnb_count Int_t cnv_count Int_t fSimulatedDataRunNumber UInt_t fSimulationTime vector<vector<LegsHit*> > fClumpVec vector of clumps for an event vector<LegsHit> fHitVec vector of CALORIMETER hits for an event vector<LegsHit> fVetoVec vector of VETO hits for an event vector<LegsHit> fOtherVec vector of "other" hits for an event vector<LegsPart> fPartVec vector of simple clusters-particles for an event vector<LegsPid> fPidVec vector of physical 4-momentum particles for an event vector<LegsTagHit> fTagHitVec vector of tagger hits for an event LegsTagHit* fTagHit tagger hit Stat_t fEntrySize LegsDB* fDB calibration files handling LegsGeo* fGeo geometry vector<Float_t> fTagBinBoundary TargetMaterial_t fTargetMaterial

Class Description


LegsEvent(const char* run, Int_t numFiles,const char* suffix, Int_t timeStampFlag,Int_t simRunNumber)
 constructor of the class.

UInt_t GetTime() const

bool IsXv(Short_t num, const Float_t& thresh) const
 returns true if at least [data] detectors with ID=[detId] are hit

bool IsDet(UShort_t detId, Short_t num) const
 returns true if at least [data] detectors with ID=[detId] are hit

bool IsXvFace(Short_t face, const Float_t& thresh) const
 returns true if at least one detector of XV with face is hit

bool IsXtFace(Short_t face, const Float_t& thresh) const
 returns true if at least one detector of XV of face  is hit

bool AreTwoNeutralsInXT() const

void DataOK(UShort_t i)
 check that data dimensionality, range are OK - exit if something wrong

void IncrementRawDetectorHitsCounters()
 must be done always for data and simulation

bool ConvertInput()

void AddToListOfStandardMakers(TObject* data)

void AddToListOfUserMakers(TObject* data)

void AddToListOfSelectors(TObject* data)

UChar_t GetTagIdFromTagEgy() const
 based on current tagger calibration and photon beam energy used for simulation
 calculate tagger bin
 the assumption is egy[tagbin] is monotonically decreasing function

UShort_t GetDetIndex(UShort_t i) const

UInt_t GetRunNumber(UInt_t data) const
 determine run number from current time - lookup in table created earlier DB/runDB.dat

void Show(UInt_t event)
 Print raw contents of event.
 If event is not specified, print current event

void SubsetTreeFill(string& newPrefix)

void InitSubsetTree(string newPrefix)

void NotToProcess(UChar_t det)
Class LegsHit data members contains a hit into a detector of SASY.
Member functions allow user to access all possible info about a hit.
 All hits of an event are organized into vectors automatically and user may access them:
 calorimeter hits ( XT, XC, PB, PN) go into it->fHitVec
 veto hits ( XV, PV) go into it->fVetoVec
 some other detectors ( PF) go into it->fOtherVec



Inline Functions


                    void ~LegsEvent()
              LegsEvent* Instance()
               LegsEvent LegsEvent(const char* run, Int_t numFiles = 0, const char* suffix = "NULL", Int_t timeStampFlag = 0, Int_t simRunNumber = 4341)
                    bool GetNotToProcess(UChar_t det)
                    void CdOutFile()
                   Int_t GetCount() const
                 UChar_t GetDet(UShort_t i) const
                 UChar_t GetFace(UShort_t i) const
                 UChar_t GetRow(UShort_t i) const
                 UChar_t GetCol(UShort_t i) const
                UShort_t GetAdc1(UShort_t i) const
                UShort_t GetTdc1(UShort_t i) const
                UShort_t GetAdc2(UShort_t i) const
                UShort_t GetTdc2(UShort_t i) const
                 Float_t GetLgt(UShort_t i) const
                 Float_t GetTof(UShort_t i) const
                   Int_t GetClump(UShort_t i) const
                   Int_t GetTagCount() const
                 UChar_t GetTagIDdirect(Int_t i)
                 UChar_t GetTagID(UInt_t i = 1000) const
                 Float_t GetTagEgy(UInt_t i = 1000) const
                UShort_t GetTagTdc(UInt_t i = 1000) const
                   Int_t GetStCount() const
                 UChar_t GetStID(Int_t i) const
                UShort_t GetStTdc(Int_t i) const
                 UChar_t GetRegPol() const
                   Int_t GetRegIO() const
                   Int_t GetFeraReg() const
                   Int_t GetSlrCount() const
                   Int_t GetRawSlr(Int_t i) const
                   Int_t GetLivSlr(Int_t i) const
                   Int_t GetMcCount() const
                UShort_t GetMcID(Int_t i) const
                 Float_t GetMcPx(Int_t i) const
                 Float_t GetMcPy(Int_t i) const
                 Float_t GetMcPz(Int_t i) const
                 Float_t GetMcEgy(Int_t i) const
                   Int_t GetMcTrue() const
                 Float_t GetMcX() const
                 Float_t GetMcY() const
                 Float_t GetMcZ() const
                 UChar_t GetMcPol() const
                 Float_t GetMcPhotEgy() const
                  string GetPrefix() const
                UShort_t GetDefaultPart() const
                    void SetDefaultPart(UShort_t id)
                   Int_t GetStart() const
                   Int_t GetFinish() const
                   Int_t GetCurrent() const
                    bool IsXt(Short_t num = 1) const
                    bool IsXc(Short_t num = 1) const
                    bool IsPv(Short_t num = 1) const
                    bool IsPn(Short_t num = 1) const
                    bool IsPb(Short_t num = 1) const
                    bool IsPf() const
                    bool IsCv() const
                    bool IsCG3() const
                    bool IsNb(Short_t num = 1) const
                    bool IsNv(Short_t num = 1) const
                    bool IsPbp() const
                    bool GeantSimulation() const
                 Float_t GetFluxPolTagBin(UChar_t pol, UChar_t tagbin) const
                 Float_t GetFluxPolTagGroup(UChar_t pol, UChar_t tagGroup) const
                    bool IsDetON()
                    bool IsDetOFF()
                    bool IsDetOff()
                    bool IsDetOn()
                    bool GetLoopOverMultipleTagHits()
                    bool GetSkipMultipleTagHitsEvents()
                   Int_t GetSimulatedRunNumber()
        TargetMaterial_t GetTargetMaterial()
                    bool IsTargetEmpty()
                   Int_t GetFluxMonitor()
                    void SetFluxMonitor(Int_t ID)
                   Int_t MyRank()
                   Int_t Ntasks()
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
               LegsEvent LegsEvent(const LegsEvent&)
              LegsEvent& operator=(const LegsEvent&)


Last update: Wed May 18 13:32:11 2005


ROOT page - Home page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.