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

#include <MuDISDefs.h>

Collaboration diagram for ShipMuDIS::MuonBranches:
[legend]

Public Member Functions

void InitTree (TTree *&aT)
void initEvent (const int &nMax=100)

Public Attributes

std::vector< ShipMCTrack > mcTrks
std::vector< vetoPoint > sbtPt
std::vector< UpstreamTaggerPoint > ubtPt
std::vector< strawtubesPoint > sstPt
std::vector< TimeDetPoint > tdPt
double pathLength = 0.
std::array< double, nMats > pathLengthByMat = {}
MuonDISBranches br [nMats]

Detailed Description

Definition at line 103 of file MuDISDefs.h.

Member Function Documentation

◆ initEvent()

void ShipMuDIS::MuonBranches::initEvent ( const int & nMax = 100)
inline

Definition at line 124 of file MuDISDefs.h.

124 {
125 mcTrks.clear();
126 mcTrks.reserve(nMax);
127 sbtPt.clear();
128 sbtPt.reserve(nMax);
129 ubtPt.clear();
130 ubtPt.reserve(nMax);
131 sstPt.clear();
132 sstPt.reserve(nMax);
133 tdPt.clear();
134 tdPt.reserve(nMax);
135 pathLength = 0.;
136 pathLengthByMat.fill(0.);
137 };
std::vector< strawtubesPoint > sstPt
Definition MuDISDefs.h:107
std::vector< TimeDetPoint > tdPt
Definition MuDISDefs.h:108
std::vector< vetoPoint > sbtPt
Definition MuDISDefs.h:105
std::array< double, nMats > pathLengthByMat
Definition MuDISDefs.h:110
std::vector< ShipMCTrack > mcTrks
Definition MuDISDefs.h:104
std::vector< UpstreamTaggerPoint > ubtPt
Definition MuDISDefs.h:106

◆ InitTree()

void ShipMuDIS::MuonBranches::InitTree ( TTree *& aT)
inline

Definition at line 112 of file MuDISDefs.h.

112 {
113 aT->Branch("muon_MCTracks", &mcTrks);
114 aT->Branch("muon_SBTPoints", &sbtPt);
115 aT->Branch("muon_SSTPoints", &sstPt);
116 aT->Branch("muon_UBTPoints", &ubtPt);
117 aT->Branch("muon_TDPoints", &tdPt);
118 aT->Branch("muon_path_length", &pathLength);
119 for (unsigned i(0); i < nMats; ++i) {
120 aT->Branch("muon_path_length_" + MatTypeStr[i], &pathLengthByMat[i]);
121 br[i].InitTree(aT, MatTypeStr[i]);
122 }
123 };
int i
Definition ShipAna.py:108
const std::array< TString, nMats > MatTypeStr
Definition MuDISDefs.h:45
MuonDISBranches br[nMats]
Definition MuDISDefs.h:111

Member Data Documentation

◆ br

MuonDISBranches ShipMuDIS::MuonBranches::br[nMats]

Definition at line 111 of file MuDISDefs.h.

◆ mcTrks

std::vector<ShipMCTrack> ShipMuDIS::MuonBranches::mcTrks

Definition at line 104 of file MuDISDefs.h.

◆ pathLength

double ShipMuDIS::MuonBranches::pathLength = 0.

Definition at line 109 of file MuDISDefs.h.

◆ pathLengthByMat

std::array<double, nMats> ShipMuDIS::MuonBranches::pathLengthByMat = {}

Definition at line 110 of file MuDISDefs.h.

110{};

◆ sbtPt

std::vector<vetoPoint> ShipMuDIS::MuonBranches::sbtPt

Definition at line 105 of file MuDISDefs.h.

◆ sstPt

std::vector<strawtubesPoint> ShipMuDIS::MuonBranches::sstPt

Definition at line 107 of file MuDISDefs.h.

◆ tdPt

std::vector<TimeDetPoint> ShipMuDIS::MuonBranches::tdPt

Definition at line 108 of file MuDISDefs.h.

◆ ubtPt

std::vector<UpstreamTaggerPoint> ShipMuDIS::MuonBranches::ubtPt

Definition at line 106 of file MuDISDefs.h.


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