FairShip
Loading...
Searching...
No Matches
ShipMuDIS::CBMSimBranches Struct Reference

#include <MuDISDefs.h>

Public Member Functions

bool Setup (TChain *tree)
bool PrepareEntry (TTree *tree, Long64_t entry)

Public Attributes

std::vector< ShipMCTrack > * MCTrack = nullptr
std::vector< vetoPoint > * sbtPt = nullptr
std::vector< UpstreamTaggerPoint > * ubtPt = nullptr
std::vector< strawtubesPoint > * sstPt = nullptr
std::vector< TimeDetPoint > * tdPt = nullptr

Private Member Functions

void Clear ()

Private Attributes

std::vector< ShipMCTrack > fTracks
std::vector< vetoPoint > fSBT
std::vector< UpstreamTaggerPoint > fUBT
std::vector< strawtubesPoint > fSST
std::vector< TimeDetPoint > fTD
int fTreeNumber = -1
bool fValid = false

Detailed Description

Definition at line 161 of file MuDISDefs.h.

Member Function Documentation

◆ Clear()

void ShipMuDIS::CBMSimBranches::Clear ( )
inlineprivate

Definition at line 190 of file MuDISDefs.h.

190 {
191 fTracks.clear();
192 fSBT.clear();
193 fUBT.clear();
194 fSST.clear();
195 fTD.clear();
196 MCTrack = &fTracks;
197 sbtPt = &fSBT;
198 ubtPt = &fUBT;
199 sstPt = &fSST;
200 tdPt = &fTD;
201 }
std::vector< ShipMCTrack > fTracks
Definition MuDISDefs.h:202
std::vector< strawtubesPoint > fSST
Definition MuDISDefs.h:205
std::vector< TimeDetPoint > * tdPt
Definition MuDISDefs.h:166
std::vector< UpstreamTaggerPoint > * ubtPt
Definition MuDISDefs.h:164
std::vector< TimeDetPoint > fTD
Definition MuDISDefs.h:206
std::vector< vetoPoint > fSBT
Definition MuDISDefs.h:203
std::vector< strawtubesPoint > * sstPt
Definition MuDISDefs.h:165
std::vector< vetoPoint > * sbtPt
Definition MuDISDefs.h:163
std::vector< UpstreamTaggerPoint > fUBT
Definition MuDISDefs.h:204
std::vector< ShipMCTrack > * MCTrack
Definition MuDISDefs.h:162

◆ PrepareEntry()

bool ShipMuDIS::CBMSimBranches::PrepareEntry ( TTree * tree,
Long64_t entry )
inline

Definition at line 174 of file MuDISDefs.h.

174 {
175 Clear();
176 if (tree->LoadTree(entry) < 0) return false;
177 if (tree->GetTreeNumber() != fTreeNumber) {
178 fTreeNumber = tree->GetTreeNumber();
179 auto* current = tree->GetTree();
180 fValid = BindInputBranch(current, "MCTrack", &MCTrack);
181 fValid &= BindInputBranch(current, "TimeDetPoint", &tdPt);
182 fValid &= BindInputBranch(current, "vetoPoint", &sbtPt);
183 fValid &= BindInputBranch(current, "UpstreamTaggerPoint", &ubtPt);
184 fValid &= BindInputBranch(current, "strawtubesPoint", &sstPt);
185 }
186 return fValid;
187 }
bool BindInputBranch(TTree *tree, const TString &name, T *address, bool required=true)
Definition MuDISDefs.h:143

◆ Setup()

bool ShipMuDIS::CBMSimBranches::Setup ( TChain * tree)
inline

Definition at line 168 of file MuDISDefs.h.

168 {
169 fTreeNumber = -1;
170 Clear();
171 return tree->GetEntries() == 0 || PrepareEntry(tree, 0);
172 }
bool PrepareEntry(TTree *tree, Long64_t entry)
Definition MuDISDefs.h:174

Member Data Documentation

◆ fSBT

std::vector<vetoPoint> ShipMuDIS::CBMSimBranches::fSBT
private

Definition at line 203 of file MuDISDefs.h.

◆ fSST

std::vector<strawtubesPoint> ShipMuDIS::CBMSimBranches::fSST
private

Definition at line 205 of file MuDISDefs.h.

◆ fTD

std::vector<TimeDetPoint> ShipMuDIS::CBMSimBranches::fTD
private

Definition at line 206 of file MuDISDefs.h.

◆ fTracks

std::vector<ShipMCTrack> ShipMuDIS::CBMSimBranches::fTracks
private

Definition at line 202 of file MuDISDefs.h.

◆ fTreeNumber

int ShipMuDIS::CBMSimBranches::fTreeNumber = -1
private

Definition at line 207 of file MuDISDefs.h.

◆ fUBT

std::vector<UpstreamTaggerPoint> ShipMuDIS::CBMSimBranches::fUBT
private

Definition at line 204 of file MuDISDefs.h.

◆ fValid

bool ShipMuDIS::CBMSimBranches::fValid = false
private

Definition at line 208 of file MuDISDefs.h.

◆ MCTrack

std::vector<ShipMCTrack>* ShipMuDIS::CBMSimBranches::MCTrack = nullptr

Definition at line 162 of file MuDISDefs.h.

◆ sbtPt

std::vector<vetoPoint>* ShipMuDIS::CBMSimBranches::sbtPt = nullptr

Definition at line 163 of file MuDISDefs.h.

◆ sstPt

std::vector<strawtubesPoint>* ShipMuDIS::CBMSimBranches::sstPt = nullptr

Definition at line 165 of file MuDISDefs.h.

◆ tdPt

std::vector<TimeDetPoint>* ShipMuDIS::CBMSimBranches::tdPt = nullptr

Definition at line 166 of file MuDISDefs.h.

◆ ubtPt

std::vector<UpstreamTaggerPoint>* ShipMuDIS::CBMSimBranches::ubtPt = nullptr

Definition at line 164 of file MuDISDefs.h.


The documentation for this struct was generated from the following file: