HighLAND
Public Member Functions | Protected Attributes | List of all members
RedoTreeConverter Class Reference
Inheritance diagram for RedoTreeConverter:
InputConverter FlatTreeConverter

Public Member Functions

virtual bool Initialize ()
 
virtual void Reset ()
 Reset the trees in the TChain and the number of entries. Also the header (POT, etc)
 
virtual void DefineBranches ()
 Define the branches to be read from the input tree.
 
Int_t GetSpill (Long64_t &entry, AnaSpillC *&spill)
 
Int_t GetEvent (Long64_t &entry, AnaEventC *&event)
 
void IncrementPOTBySpill ()
 
virtual bool AddFileToTChain (const std::string &inputString)
 Add the file specified to fChain, and any friend chains that were set up.
 
Long64_t GetEntries ()
 Return the total number of entries in the chain.
 
virtual AnaSpillBMakeSpill ()
 
virtual AnaBunchBMakeBunch ()
 
virtual AnaBeamBMakeBeam ()
 
virtual AnaDataQualityBMakeDataQuality ()
 
virtual AnaEventInfoBMakeEventInfo ()
 
virtual AnaVertexBMakeVertex ()
 
virtual AnaTrueParticleBMakeTrueParticle ()
 
virtual AnaTrueVertexBMakeTrueVertex ()
 
virtual AnaTrackBMakeTrack ()
 
virtual AnaTPCParticleBMakeTpcTrack ()
 
virtual AnaTrackerTrackBMakeTrackerTrack ()
 
virtual AnaFGDParticleBMakeFgdTrack ()
 
virtual AnaP0DParticleBMakeP0dTrack ()
 
virtual AnaECALParticleBMakeEcalTrack ()
 
virtual AnaSMRDParticleBMakeSmrdTrack ()
 
virtual AnaFgdTimeBinBMakeFgdTimeBin ()
 
void FillEventInfo (AnaEventB *event)
 
void FillEventSpillInfo (AnaEventB *event)
 
virtual void FillInfo (AnaSpillB *spill)
 
virtual void FillBunchInfo (std::vector< AnaTrueParticleB *> &trueParticles, AnaBunchB *bunch)
 
virtual void FillFgdTimeBinInfo (AnaEventB *event)
 
virtual void FillTrackInfo (AnaEventB *event, int itrk, AnaTrackB *track)
 
virtual void FillTrueParticleInfo (AnaEventB *event, int itrk, AnaTrueParticleB *track)
 
virtual void FillTpcInfo (AnaEventB *event, int itrk, int tpc, AnaTPCParticleB *track)
 
virtual void FillFgdTimeBinInfo (std::vector< AnaFgdTimeBinB *> &AnaFgdTimeBins)
 
virtual void FillTrackInfo (std::vector< AnaTrueParticleB *> &trueParticles, int itrk, AnaTrackB *track)
 
virtual void FillTrueParticleInfo (std::vector< AnaTrueVertexB *> &trueVertices, int itrk, AnaTrueParticleB *track)
 
virtual void FillTpcInfo (std::vector< AnaTrueParticleB *> &trueParticles, int itrk, int tpc, AnaTPCParticleB *track)
 
virtual void FillFgdInfo (int itrk, int fgd, AnaFGDParticleB *track)
 
virtual void FillEcalInfo (int itrk, int ecal, AnaECALParticleB *track)
 
virtual void FillSmrdInfo (int itrk, int smrd, AnaSMRDParticleB *track)
 
virtual void FillP0dInfo (int itrk, int p0d, AnaP0DParticleB *track)
 
void FillSubdetectorInfo (AnaEventB *event, int itrk, AnaTrackB *track)
 
virtual void FillSubdetectorInfo (std::vector< AnaTrueParticleB *> &trueParticles, int itrk, AnaTrackB *track)
 
virtual void FillTrueVertexInfo (int ivtx, AnaTrueVertexB *vertex)
 
virtual bool FillTrueVertexRooInfo (AnaTrueVertexB *)
 
virtual void FillDQInfo (AnaDataQualityB *dq)
 
virtual void FillBeamInfo (AnaBeamB *beam)
 
void FindTrueParticle (AnaEventB *event, int ID, AnaTrueObjectC *&trueParticle)
 
void FindTrueParticle (std::vector< AnaTrueParticleB *> &trueParticles, int ID, AnaTrueObjectC *&trueParticle)
 
virtual void FillVertexInfo (int ivtx, AnaVertexB *vertex, AnaBunchB *bunch)
 
void FillVertexInfo (int ivtx, AnaVertexB *vertex, AnaEventB *event)
 
virtual AnaParticleBFindParticle (int ID, AnaBunchB *bunch)
 
AnaParticleBFindParticle (int ID, AnaEventB *event)
 
- Public Member Functions inherited from InputConverter
 InputConverter (const std::string &name)
 Constrctor provided a name.
 
virtual ~InputConverter ()
 Everyone should have a destructor...
 
const std::string & GetTreeName ()
 returns the name of the tree to convert
 
const std::string & Name () const
 Return the name of this converter.
 
void SetName (const std::string &name)
 Set the name of this converter, which is used internally by the InputManager.
 
virtual Long64_t LoadTree (Long64_t entry)
 Handle loading the correct entry from fChain.
 
virtual Int_t GetNEvents (Int_t entries=-1)
 Return the total number of events for a given number of entries in the tree.
 
virtual bool IsCorrectType (const std::string &inputString)
 Whether the implementation can handle the specified file.
 
virtual void SetCosmicMode (const bool cosmic)
 
bool HasChain (const std::string &name)
 
void AddChain (const std::string &name, const std::string &name_path="")
 
TChain * GetChain (const std::string &name="")
 
Headerheader ()
 Returns the Header manager.
 

Protected Attributes

bool _firstFile
 
Int_t _entry_roo
 
TString _currentfilename
 
AnaSpillB_spill
 
AnaEventB_prevEvent
 
TChain * flattree
 
TChain * GRooTrackerVTX
 
TChain * NRooTrackerVTX
 
bool fGenie
 
bool fNeut
 
Int_t sRun
 
Int_t sSubrun
 
Int_t sEvt
 
Int_t sEventTime
 
Int_t sNTotalTrueParticles
 
Int_t sNTotalTrueVertices
 
Int_t sBeamSpill
 
Int_t sBeamSpillNumber
 
Int_t sBeamGoodSpill
 
Int_t sBeamBeamRunNumber
 
Int_t sDQGoodDaq
 
Int_t sDQND280Flag
 
Int_t sDQDetFlag [7]
 
Int_t sTriggerFGDCosmic
 
Int_t sTriggerTripTCosmic
 
Int_t sNTrueVertices
 
Int_t sTrueVertexID [NMAXTRUEVERTICES]
 
Int_t sTrueVertexRooVtxIndex [NMAXTRUEVERTICES]
 
Int_t sTrueVertexRooVtxEntry [NMAXTRUEVERTICES]
 
Int_t sTrueVertexReacCode [NMAXTRUEVERTICES]
 
Int_t sTrueVertexNTrueParticles [NMAXTRUEVERTICES]
 
Int_t sTrueVertexNReconTracks [NMAXTRUEVERTICES]
 
Int_t sTrueVertexNReconVertices [NMAXTRUEVERTICES]
 
Int_t sTrueVertexNBaryons [NMAXTRUEVERTICES]
 
Int_t sTrueVertexBunch [NMAXTRUEVERTICES]
 
Int_t sTrueVertexDetector [NMAXTRUEVERTICES]
 
Int_t sTrueVertexNuPDG [NMAXTRUEVERTICES]
 
Int_t sTrueVertexTargetPDG [NMAXTRUEVERTICES]
 
Int_t sNTrueParticles
 
Int_t sTrueVertexNuParentPDG [NMAXTRUEVERTICES]
 
Int_t sTrueParticleID [NMAXTRUEPARTICLES]
 
Int_t sTrueParticleBunch [NMAXTRUEPARTICLES]
 
Int_t sTrueParticlePDG [NMAXTRUEPARTICLES]
 
Int_t sTrueParticleParentPDG [NMAXTRUEPARTICLES]
 
Int_t sTrueParticleGParentPDG [NMAXTRUEPARTICLES]
 
Int_t sTrueParticlePrimaryID [NMAXTRUEPARTICLES]
 
Int_t sTrueParticleParentID [NMAXTRUEPARTICLES]
 
Int_t sTrueParticleVertexIndex [NMAXTRUEPARTICLES]
 
Int_t sTrueParticleTruthVertexID [NMAXTRUEPARTICLES]
 
Int_t sTrueParticleNReconTracks [NMAXTRUEPARTICLES]
 
Int_t sTrueParticleNDetCrossings [NMAXTRUEPARTICLES]
 
Int_t sTrueParticleDetector [NMAXTRUEPARTICLES][NMAXCROSSEDDET]
 
Int_t sTrueParticleInActive [NMAXTRUEPARTICLES][NMAXCROSSEDDET]
 
Int_t sTrueParticleIsTruePrimaryPi0DecayPhoton [NMAXTRUEPARTICLES]
 
Int_t sTrueParticleIsTruePrimaryPi0DecayPhotonChild [NMAXTRUEPARTICLES]
 
Int_t sNFgdTimeBins
 
Int_t sFgdTimeBinNHits1 [NMAXFGDTIMEBINS]
 
Int_t sFgdTimeBinNHits2 [NMAXFGDTIMEBINS]
 
Int_t sFgdTimeBinG4ID [NMAXFGDTIMEBINS]
 
Int_t Bunch
 
Int_t NVertices
 
Int_t vPrimaryIndex [NMAXVERTICES]
 
Int_t vBunch [NMAXVERTICES]
 
Int_t vNDOF [NMAXVERTICES]
 
Int_t vNReconParticles [NMAXVERTICES]
 
Int_t vNTrueVerticesMatch [NMAXVERTICES]
 
Int_t vParticlesUniqueID [NMAXVERTICES][NMAXPARTICLESINVERTEX]
 
Int_t vTrueVertexIndex [NMAXVERTICES][NMAXTRUEVERTICESMATCH]
 
Int_t NParticles
 
Int_t trUniqueID [NMAXPARTICLES]
 
Int_t trStatus [NMAXPARTICLES]
 
Int_t trBunch [NMAXPARTICLES]
 
Int_t trNReconVertices [NMAXPARTICLES]
 
Int_t trDetectors [NMAXPARTICLES]
 
Int_t trDetUsed [NMAXPARTICLES][NDETECTORS]
 
Int_t trNTPCs [NMAXPARTICLES]
 
Int_t trNFGDs [NMAXPARTICLES]
 
Int_t trNECALs [NMAXPARTICLES]
 
Int_t trNSMRDs [NMAXPARTICLES]
 
Int_t trNP0Ds [NMAXPARTICLES]
 
Int_t trNHits [NMAXPARTICLES]
 
Int_t trNNodes [NMAXPARTICLES]
 
Int_t trNDOF [NMAXPARTICLES]
 
Int_t trTpcDetector [NMAXPARTICLES][NMAXTPCS]
 
Int_t trTpcNHits [NMAXPARTICLES][NMAXTPCS]
 
Int_t trTpcNNodes [NMAXPARTICLES][NMAXTPCS]
 
Int_t trFgdDetector [NMAXPARTICLES][NMAXFGDS]
 
Int_t trFgdNHits [NMAXPARTICLES][NMAXFGDS]
 
Int_t trFgdNNodes [NMAXPARTICLES][NMAXFGDS]
 
Int_t trFgdContainment [NMAXPARTICLES][NMAXFGDS]
 
Int_t trECALDetector [NMAXPARTICLES][NECALSUBDETS]
 
Int_t trECALNHits [NMAXPARTICLES][NECALSUBDETS]
 
Int_t trECALNNodes [NMAXPARTICLES][NECALSUBDETS]
 
Int_t trECALMostUpStreamLayerHit [NMAXPARTICLES][NECALSUBDETS]
 
Int_t trECALIsShowerLike [NMAXPARTICLES][NECALSUBDETS]
 
Int_t trSMRDDetector [NMAXPARTICLES][NSMRDSUBDETS]
 
Int_t trSMRDNHits [NMAXPARTICLES][NSMRDSUBDETS]
 
Int_t trSMRDNNodes [NMAXPARTICLES][NSMRDSUBDETS]
 
Int_t trP0DDetector [NMAXPARTICLES][1]
 
Int_t trP0DNHits [NMAXPARTICLES][1]
 
Int_t trP0DNNodes [NMAXPARTICLES][1]
 
Int_t trTrueParticleID [NMAXPARTICLES]
 
Int_t trTpcTrueParticleID [NMAXPARTICLES][NMAXTPCS]
 
Float_t Weight
 
Float_t sTrueVertexNuEnergy [NMAXTRUEVERTICES]
 
Float_t sTrueVertexQ2 [NMAXTRUEVERTICES]
 
Float_t sTrueVertexPosition [NMAXTRUEVERTICES][4]
 
Float_t sBeamPOT
 
Float_t sBeamPOTCT4
 
Float_t sPOTSincePreviousSpill
 
Float_t sTrueVertexNuParentDecPoint [NMAXTRUEVERTICES][4]
 
Float_t sTrueVertexNuDir [NMAXTRUEVERTICES][3]
 
Float_t sTrueParticlePurity [NMAXTRUEPARTICLES]
 
Float_t sTrueParticleMomentum [NMAXTRUEPARTICLES]
 
Float_t sTrueParticleCharge [NMAXTRUEPARTICLES]
 
Float_t sTrueParticlePosition [NMAXTRUEPARTICLES][4]
 
Float_t sTrueParticlePositionEnd [NMAXTRUEPARTICLES][4]
 
Float_t sTrueParticleDirection [NMAXTRUEPARTICLES][3]
 
Float_t sTrueParticleEntrancePosition [NMAXTRUEPARTICLES][NMAXCROSSEDDET][4]
 
Float_t sTrueParticleExitPosition [NMAXTRUEPARTICLES][NMAXCROSSEDDET][4]
 
Float_t sTrueParticleEntranceMomentum [NMAXTRUEPARTICLES][NMAXCROSSEDDET][3]
 
Float_t sTrueParticleExitMomentum [NMAXTRUEPARTICLES][NMAXCROSSEDDET][3]
 
Float_t sFgdTimeBinMinTime [NMAXFGDTIMEBINS]
 
Float_t sFgdTimeBinMaxTime [NMAXFGDTIMEBINS]
 
Float_t sFgdTimeBinRawChargeSum1 [NMAXFGDTIMEBINS]
 
Float_t sFgdTimeBinRawChargeSum2 [NMAXFGDTIMEBINS]
 
Float_t vPosition [NMAXVERTICES][4]
 
Float_t vVariance [NMAXVERTICES][4]
 
Float_t vChi2 [NMAXVERTICES]
 
Float_t vTrueVerticesClean [NMAXVERTICES][NMAXTRUEVERTICESMATCH]
 
Float_t vTrueVerticesCompl [NMAXVERTICES][NMAXTRUEVERTICESMATCH]
 
Float_t trChi2 [NMAXPARTICLES]
 
Float_t trCharge [NMAXPARTICLES]
 
Float_t trToFFGD1_FGD2 [NMAXPARTICLES]
 
Float_t trToFP0D_FGD1 [NMAXPARTICLES]
 
Float_t trToFECal_FGD1 [NMAXPARTICLES]
 
Float_t trToFECal_FGD2 [NMAXPARTICLES]
 
Float_t trToFFlag_FGD1_FGD2 [NMAXPARTICLES]
 
Float_t trToFFlag_P0D_FGD1 [NMAXPARTICLES]
 
Float_t trToFFlag_ECal_FGD1 [NMAXPARTICLES]
 
Float_t trToFFlag_ECal_FGD2 [NMAXPARTICLES]
 
Float_t trMomentum [NMAXPARTICLES]
 
Float_t trMomentumError [NMAXPARTICLES]
 
Float_t trMomentumMuon [NMAXPARTICLES]
 
Float_t trMomentumErrorMuon [NMAXPARTICLES]
 
Float_t trMomentumProton [NMAXPARTICLES]
 
Float_t trMomentumErrorProton [NMAXPARTICLES]
 
Float_t trMomentumEle [NMAXPARTICLES]
 
Float_t trMomentumErrorEle [NMAXPARTICLES]
 
Float_t trRangeMomentumEle [NMAXPARTICLES]
 
Float_t trRangeMomentumMuon [NMAXPARTICLES]
 
Float_t trRangeMomentumProton [NMAXPARTICLES]
 
Float_t trDirectionStart [NMAXPARTICLES][3]
 
Float_t trDirectionEnd [NMAXPARTICLES][3]
 
Float_t trPositionStart [NMAXPARTICLES][4]
 
Float_t trPositionEnd [NMAXPARTICLES][4]
 
Float_t trMomentumFlip [NMAXPARTICLES]
 
Float_t trTpcLength [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcDirectionStart [NMAXPARTICLES][NMAXTPCS][3]
 
Float_t trTpcDirectionEnd [NMAXPARTICLES][NMAXTPCS][3]
 
Float_t trTpcPositionStart [NMAXPARTICLES][NMAXTPCS][4]
 
Float_t trTpcPositionEnd [NMAXPARTICLES][NMAXTPCS][4]
 
Float_t trTpcCharge [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcMomentum [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcMomentumError [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcBackMomentum [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcRefitCharge [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcRefitMomentum [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcRefitPosition [NMAXPARTICLES][NMAXTPCS][4]
 
Float_t trTpcRefitDirection [NMAXPARTICLES][NMAXTPCS][3]
 
Float_t trTpcEFieldRefitMomentum [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcdEdxMeas [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcdEdxExpMu [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcdEdxExpEle [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcdEdxExpP [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcdEdxExpPi [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcdEdxExpK [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcdEdxSigmaMu [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcdEdxSigmaEle [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcdEdxSigmaP [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcdEdxSigmaPi [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcdEdxSigmaK [NMAXPARTICLES][NMAXTPCS]
 
Float_t trTpcPurity [NMAXPARTICLES][NMAXTPCS]
 
Float_t trFgdLength [NMAXPARTICLES][NMAXFGDS]
 
Float_t trFgdDirectionStart [NMAXPARTICLES][NMAXFGDS][3]
 
Float_t trFgdDirectionEnd [NMAXPARTICLES][NMAXFGDS][3]
 
Float_t trFgdPositionStart [NMAXPARTICLES][NMAXFGDS][4]
 
Float_t trFgdPositionEnd [NMAXPARTICLES][NMAXFGDS][4]
 
Float_t trFgdX [NMAXPARTICLES][NMAXFGDS]
 
Float_t trFgdE [NMAXPARTICLES][NMAXFGDS]
 
Float_t trFgdPullmu [NMAXPARTICLES][NMAXFGDS]
 
Float_t trFgdPullp [NMAXPARTICLES][NMAXFGDS]
 
Float_t trFgdPullpi [NMAXPARTICLES][NMAXFGDS]
 
Float_t trFgdPullno [NMAXPARTICLES][NMAXFGDS]
 
Float_t trFgdAvgTime [NMAXPARTICLES][NMAXFGDS]
 
Float_t trFgdVertex1x1 [NMAXPARTICLES][NMAXFGDS]
 
Float_t trFgdVertex3x3 [NMAXPARTICLES][NMAXFGDS]
 
Float_t trFgdVertex5x5 [NMAXPARTICLES][NMAXFGDS]
 
Float_t trFgdVertex7x7 [NMAXPARTICLES][NMAXFGDS]
 
Float_t trFgdVertexLayer [NMAXPARTICLES][NMAXFGDS]
 
Float_t trECALLength [NMAXPARTICLES][NECALSUBDETS]
 
Float_t trECALDirectionStart [NMAXPARTICLES][NECALSUBDETS][3]
 
Float_t trECALDirectionEnd [NMAXPARTICLES][NECALSUBDETS][3]
 
Float_t trECALPositionStart [NMAXPARTICLES][NECALSUBDETS][4]
 
Float_t trECALPositionEnd [NMAXPARTICLES][NECALSUBDETS][4]
 
Float_t trECALEMEnergy [NMAXPARTICLES][NECALSUBDETS]
 
Float_t trECALEDeposit [NMAXPARTICLES][NECALSUBDETS]
 
Float_t trECALAvgTime [NMAXPARTICLES][NECALSUBDETS]
 
Float_t trECALPIDMipEm [NMAXPARTICLES][NECALSUBDETS]
 
Float_t trECALPIDEmHip [NMAXPARTICLES][NECALSUBDETS]
 
Float_t trECALShowerPosition [NMAXPARTICLES][NECALSUBDETS][3]
 
Float_t trSMRDLength [NMAXPARTICLES][NSMRDSUBDETS]
 
Float_t trSMRDDirectionStart [NMAXPARTICLES][NSMRDSUBDETS][3]
 
Float_t trSMRDDirectionEnd [NMAXPARTICLES][NSMRDSUBDETS][3]
 
Float_t trSMRDPositionStart [NMAXPARTICLES][NSMRDSUBDETS][4]
 
Float_t trSMRDPositionEnd [NMAXPARTICLES][NSMRDSUBDETS][4]
 
Float_t trSMRDAvgTime [NMAXPARTICLES][NSMRDSUBDETS]
 
Float_t trP0DLength [NMAXPARTICLES][1]
 
Float_t trP0DELoss [NMAXPARTICLES][1]
 
Float_t trP0DDirectionStart [NMAXPARTICLES][1][3]
 
Float_t trP0DDirectionEnd [NMAXPARTICLES][1][3]
 
Float_t trP0DPositionStart [NMAXPARTICLES][1][4]
 
Float_t trP0DPositionEnd [NMAXPARTICLES][1][4]
 
TBranch * b_sPOTSincePreviousSpill
 
TBranch * b_sRun
 
TBranch * b_sSubrun
 
TBranch * b_sEvt
 
TBranch * b_sEventTime
 
TBranch * b_sNTotalTrueParticles
 
TBranch * b_sNTotalTrueVertices
 
TBranch * b_sBeamGoodSpill
 
TBranch * b_sDQGoodDaq
 
TBranch * b_sTriggerFGDCosmic
 
TBranch * b_sTriggerTripTCosmic
 
TBranch * b_sNTrueVertices
 
TBranch * b_sTrueVertexID
 
TBranch * b_sTrueVertexRooVtxIndex
 
TBranch * b_sTrueVertexRooVtxEntry
 
TBranch * b_sTrueVertexReacCode
 
TBranch * b_sTrueVertexNTrueParticles
 
TBranch * b_sTrueVertexNReconTracks
 
TBranch * b_sTrueVertexNReconVertices
 
TBranch * b_sTrueVertexNBaryons
 
TBranch * b_sTrueVertexBunch
 
TBranch * b_sTrueVertexDetector
 
TBranch * b_sTrueVertexNuPDG
 
TBranch * b_sTrueVertexTargetPDG
 
TBranch * b_sTrueVertexNuEnergy
 
TBranch * b_sTrueVertexQ2
 
TBranch * b_sTrueVertexPosition
 
TBranch * b_sTrueVertexNuParentPDG
 
TBranch * b_sTrueVertexNuParentDecPoint
 
TBranch * b_sTrueVertexNuDir
 
TBranch * b_sNTrueParticles
 
TBranch * b_sTrueParticleID
 
TBranch * b_sTrueParticleBunch
 
TBranch * b_sTrueParticlePDG
 
TBranch * b_sTrueParticleParentPDG
 
TBranch * b_sTrueParticleGParentPDG
 
TBranch * b_sTrueParticlePrimaryID
 
TBranch * b_sTrueParticleParentID
 
TBranch * b_sTrueParticlePurity
 
TBranch * b_sTrueParticleMomentum
 
TBranch * b_sTrueParticleCharge
 
TBranch * b_sTrueParticleVertexIndex
 
TBranch * b_sTrueParticleTruthVertexID
 
TBranch * b_sTrueParticleNReconTracks
 
TBranch * b_sTrueParticlePosition
 
TBranch * b_sTrueParticlePositionEnd
 
TBranch * b_sTrueParticleDirection
 
TBranch * b_sTrueParticleNDetCrossings
 
TBranch * b_sTrueParticleEntrancePosition
 
TBranch * b_sTrueParticleExitPosition
 
TBranch * b_sTrueParticleEntranceMomentum
 
TBranch * b_sTrueParticleExitMomentum
 
TBranch * b_sTrueParticleDetector
 
TBranch * b_sTrueParticleInActive
 
TBranch * b_sTrueParticleIsTruePrimaryPi0DecayPhoton
 
TBranch * b_sTrueParticleIsTruePrimaryPi0DecayPhotonChild
 
TBranch * b_sNFgdTimeBins
 
TBranch * b_sFgdTimeBinMinTime
 
TBranch * b_sFgdTimeBinMaxTime
 
TBranch * b_sFgdTimeBinNHits1
 
TBranch * b_sFgdTimeBinNHits2
 
TBranch * b_sFgdTimeBinRawChargeSum1
 
TBranch * b_sFgdTimeBinRawChargeSum2
 
TBranch * b_sFgdTimeBinG4ID
 
TBranch * b_Bunch
 
TBranch * b_Weight
 
TBranch * b_NVertices
 
TBranch * b_vPrimaryIndex
 
TBranch * b_vBunch
 
TBranch * b_vPosition
 
TBranch * b_vVariance
 
TBranch * b_vChi2
 
TBranch * b_vNDOF
 
TBranch * b_vNReconParticles
 
TBranch * b_vNTrueVerticesMatch
 
TBranch * b_vParticlesUniqueID
 
TBranch * b_vTrueVertexIndex
 
TBranch * b_vTrueVerticesClean
 
TBranch * b_vTrueVerticesCompl
 
TBranch * b_NParticles
 
TBranch * b_trUniqueID
 
TBranch * b_trStatus
 
TBranch * b_trBunch
 
TBranch * b_trNReconVertices
 
TBranch * b_trDetectors
 
TBranch * b_trDetUsed
 
TBranch * b_trNTPCs
 
TBranch * b_trNFGDs
 
TBranch * b_trNECALs
 
TBranch * b_trNSMRDs
 
TBranch * b_trNP0Ds
 
TBranch * b_trNHits
 
TBranch * b_trNNodes
 
TBranch * b_trNDOF
 
TBranch * b_trChi2
 
TBranch * b_trCharge
 
TBranch * b_trMomentum
 
TBranch * b_trToFFGD1_FGD2
 
TBranch * b_trToFP0D_FGD1
 
TBranch * b_trToFECal_FGD1
 
TBranch * b_trToFECal_FGD2
 
TBranch * b_trToFFlag_FGD1_FGD2
 
TBranch * b_trToFFlag_P0D_FGD1
 
TBranch * b_trToFFlag_ECal_FGD1
 
TBranch * b_trToFFlag_ECal_FGD2
 
TBranch * b_trMomentumError
 
TBranch * b_trMomentumMuon
 
TBranch * b_trMomentumErrorMuon
 
TBranch * b_trMomentumProton
 
TBranch * b_trMomentumErrorProton
 
TBranch * b_trMomentumEle
 
TBranch * b_trMomentumErrorEle
 
TBranch * b_trRangeMomentumEle
 
TBranch * b_trRangeMomentumMuon
 
TBranch * b_trRangeMomentumProton
 
TBranch * b_trDirectionStart
 
TBranch * b_trDirectionEnd
 
TBranch * b_trPositionStart
 
TBranch * b_trPositionEnd
 
TBranch * b_trMomentumFlip
 
TBranch * b_trTpcDetector
 
TBranch * b_trTpcNHits
 
TBranch * b_trTpcNNodes
 
TBranch * b_trTpcLength
 
TBranch * b_trTpcDirectionStart
 
TBranch * b_trTpcDirectionEnd
 
TBranch * b_trTpcPositionStart
 
TBranch * b_trTpcPositionEnd
 
TBranch * b_trTpcCharge
 
TBranch * b_trTpcMomentum
 
TBranch * b_trTpcMomentumError
 
TBranch * b_trTpcBackMomentum
 
TBranch * b_trTpcRefitCharge
 
TBranch * b_trTpcRefitMomentum
 
TBranch * b_trTpcRefitPosition
 
TBranch * b_trTpcRefitDirection
 
TBranch * b_trTpcEFieldRefitMomentum
 
TBranch * b_trTpcdEdxMeas
 
TBranch * b_trTpcdEdxExpMu
 
TBranch * b_trTpcdEdxExpEle
 
TBranch * b_trTpcdEdxExpP
 
TBranch * b_trTpcdEdxExpPi
 
TBranch * b_trTpcdEdxExpK
 
TBranch * b_trTpcdEdxSigmaMu
 
TBranch * b_trTpcdEdxSigmaEle
 
TBranch * b_trTpcdEdxSigmaP
 
TBranch * b_trTpcdEdxSigmaPi
 
TBranch * b_trTpcdEdxSigmaK
 
TBranch * b_trTpcPurity
 
TBranch * b_trFgdDetector
 
TBranch * b_trFgdNHits
 
TBranch * b_trFgdNNodes
 
TBranch * b_trFgdLength
 
TBranch * b_trFgdDirectionStart
 
TBranch * b_trFgdDirectionEnd
 
TBranch * b_trFgdPositionStart
 
TBranch * b_trFgdPositionEnd
 
TBranch * b_trFgdX
 
TBranch * b_trFgdE
 
TBranch * b_trFgdPullmu
 
TBranch * b_trFgdPullp
 
TBranch * b_trFgdPullpi
 
TBranch * b_trFgdPullno
 
TBranch * b_trFgdContainment
 
TBranch * b_trFgdAvgTime
 
TBranch * b_trFgdVertex1x1
 
TBranch * b_trFgdVertex3x3
 
TBranch * b_trFgdVertex5x5
 
TBranch * b_trFgdVertex7x7
 
TBranch * b_trFgdVertexLayer
 
TBranch * b_trECALDetector
 
TBranch * b_trECALNHits
 
TBranch * b_trECALNNodes
 
TBranch * b_trECALLength
 
TBranch * b_trECALDirectionStart
 
TBranch * b_trECALDirectionEnd
 
TBranch * b_trECALPositionStart
 
TBranch * b_trECALPositionEnd
 
TBranch * b_trECALEMEnergy
 
TBranch * b_trECALEDeposit
 
TBranch * b_trECALIsShowerLike
 
TBranch * b_trECALAvgTime
 
TBranch * b_trECALPIDMipEm
 
TBranch * b_trECALPIDEmHip
 
TBranch * b_trECALMostUpStreamLayerHit
 
TBranch * b_trECALShowerPosition
 
TBranch * b_trSMRDDetector
 
TBranch * b_trSMRDNHits
 
TBranch * b_trSMRDNNodes
 
TBranch * b_trSMRDLength
 
TBranch * b_trSMRDDirectionStart
 
TBranch * b_trSMRDDirectionEnd
 
TBranch * b_trSMRDPositionStart
 
TBranch * b_trSMRDPositionEnd
 
TBranch * b_trSMRDAvgTime
 
TBranch * b_trP0DDetector
 
TBranch * b_trP0DNHits
 
TBranch * b_trP0DNNodes
 
TBranch * b_trP0DLength
 
TBranch * b_trP0DELoss
 
TBranch * b_trP0DDirectionStart
 
TBranch * b_trP0DDirectionEnd
 
TBranch * b_trP0DPositionStart
 
TBranch * b_trP0DPositionEnd
 
TBranch * b_trTrueParticleID
 
TBranch * b_trTpcTrueParticleID
 
- Protected Attributes inherited from InputConverter
std::string _name
 The name of the converter.
 
std::string _treeName
 The name of the tree to convert.
 
int _nentries
 The number of entries in the chain. To be set by the implementation.
 
TChain * fChain
 The main TChain used to read events from the input file.
 
Int_t fCurrent
 current Tree number in a TChain
 
Int_t _currentFileIndex
 
std::string _currentFileName
 
std::map< std::string, TChain * > _chain_map
 
Header _header
 The header manager.
 

Detailed Description

Definition at line 15 of file RedoTreeConverter.hxx.

Member Function Documentation

§ GetEvent()

Int_t RedoTreeConverter::GetEvent ( Long64_t &  entry,
AnaEventC *&  event 
)
virtual

Read the specified entry from the file, and fill the event. The entry number must be incremented inside this function 0 should be returned on error.

Implements InputConverter.

Definition at line 1171 of file RedoTreeConverter.cxx.

1171  {
1172  //*****************************************************************************
1173 
1174  // Read contents of entry.
1175  if (!fChain) return 0;
1176  Int_t entry_temp;
1177 
1178  // get a new entry from the input tree
1179  entry_temp = flattree->GetEntry(entry);
1180 
1181  // Reed the RooTrackerVtx when exists
1182  if (entry_temp>0 && sRun > 1000000) {
1183  if (fGenie && GRooTrackerVTX) GRooTrackerVTX->GetEntry(entry);
1184  if (fNeut && NRooTrackerVTX){
1185  NRooTrackerVTX->GetEntry(_entry_roo);
1186  _entry_roo++;
1187  }
1188  }
1189 
1190  // Print the current file
1191  TString filename(flattree->GetFile()->GetName());
1192  if( filename != _currentfilename ) {
1193  std::cout << " Running on file : " << filename << std::endl;
1194  _currentfilename = filename;
1195  }
1196 
1197  // Create a new event
1198  event = new AnaEventB();
1199 
1200  // Fill the event info;
1201  FillEventInfo(static_cast<AnaEventB*>(event));
1202 
1203  // Increment entry number
1204  entry++;
1205 
1206  _prevEvent=static_cast<AnaEventB*>(event);
1207  return entry_temp;
1208 }
TChain * fChain
The main TChain used to read events from the input file.

§ GetSpill()

Int_t RedoTreeConverter::GetSpill ( Long64_t &  entry,
AnaSpillC *&  spill 
)
virtual

Read the specified entry from the file, and fill the spill. The entry number must be incremented as part of this function, and the new entry number returned. 0 should be returned on error.

Implements InputConverter.

Definition at line 1104 of file RedoTreeConverter.cxx.

1104  {
1105  //*****************************************************************************
1106 
1107  // Read contents of entry.
1108  if (!fChain) return 0;
1109 
1110  // Create an instance of AnaSpill
1111  spill = MakeSpill();
1112 
1113  Int_t entry_temp;
1114 
1115  // Get a new entry from the flat tree
1116  entry_temp = flattree->GetEntry(entry);
1117 
1118 
1119  if (entry_temp>0 && sRun > 1000000) {
1120  if (fGenie && GRooTrackerVTX) GRooTrackerVTX->GetEntry(entry);
1121  if (fNeut && NRooTrackerVTX){
1122  NRooTrackerVTX->GetEntry(_entry_roo);
1123  _entry_roo++;
1124  }
1125  }
1126 
1127  // Print the current file
1128  TString filename(flattree->GetFile()->GetName());
1129  if( filename != _currentfilename ) {
1130  std::cout << " Running on file : " << filename << std::endl;
1131  _currentfilename = filename;
1132  }
1133 
1134  // Fill the general spill info
1135  _spill = static_cast<AnaSpillB*>(spill);
1136  FillInfo(_spill);
1137 
1138  // Always make the out of bunch
1139  _spill->OutOfBunch = MakeBunch();
1140 
1141  int evt_prev=sEvt;
1142 
1143  while (sEvt==evt_prev && entry < _nentries){
1144 
1145  // Create and fill a new bunch
1146  if (Bunch==-1) {
1147  FillBunchInfo(_spill->TrueParticles, _spill->OutOfBunch);
1148  } else {
1149  AnaBunchB* bunch = MakeBunch();
1150  _spill->Bunches.push_back(bunch);
1151  FillBunchInfo(_spill->TrueParticles, bunch);
1152  }
1153 
1154  // increment the entry number
1155  entry++;
1156 
1157  // break if we have reach the maximum entry number
1158  if (entry>=_nentries) break;
1159 
1160  // save the previous event number
1161  evt_prev=sEvt;
1162 
1163  // get a new entry from the input tree
1164  entry_temp = flattree->GetEntry(entry);
1165  }
1166 
1167  return entry_temp;
1168 }
int _nentries
The number of entries in the chain. To be set by the implementation.
std::vector< AnaBunchC * > Bunches
The reconstructed objects, split into timing bunches.
AnaBunchB * OutOfBunch
Reconstructed objects that didn&#39;t fit into one of the timing bunches.
std::vector< AnaTrueParticleB * > TrueParticles
The true MC particles used in this spill.
TChain * fChain
The main TChain used to read events from the input file.

§ IncrementPOTBySpill()

void RedoTreeConverter::IncrementPOTBySpill ( )
virtual

Record the POT for the current spill, based on information in the AnaBeam member of the current AnaSpillB.

Implements InputConverter.

Definition at line 1211 of file RedoTreeConverter.cxx.

1211  {
1212  //********************************************************************
1213 
1214  // ND::header().IncrementPOTBySpill(*_spill);
1215 }

§ Initialize()

bool RedoTreeConverter::Initialize ( )
virtual

Any initialization that must be done. Called before the input file is read.

Implements InputConverter.

Reimplemented in FlatTreeConverter.

Definition at line 571 of file RedoTreeConverter.cxx.

571  {
572  //********************************************************************
573 
574  // Set branch addresses and branch pointers
575  if (!fChain) return false;
576 
577  // Check the existence of the _treeName tree
578  if (!gDirectory->FindObjectAny(_treeName.c_str())) return false;
579 
580  fCurrent = -1;
581  fChain->SetMakeClass(1);
582 
583  return true;
584 }
std::string _treeName
The name of the tree to convert.
Int_t fCurrent
current Tree number in a TChain
TChain * fChain
The main TChain used to read events from the input file.

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