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

#include <MuDISDefs.h>

Public Member Functions

void InitTree (TTree *&aT, const TString &aLabel)
void initEvent (const int &nDIS)

Public Attributes

int nDISevts
int nDISevtsGenerated
double pPythia = -1.
double wDIS
std::vector< double > DISxsec
std::vector< bool > DIStarget
std::vector< double > DISvx
std::vector< double > DISvy
std::vector< double > DISvz
std::vector< double > DISvt
std::vector< int > nDISdau
std::vector< DISparticle > DISparticles

Detailed Description

Definition at line 49 of file MuDISDefs.h.

Member Function Documentation

◆ initEvent()

void ShipMuDIS::MuonDISBranches::initEvent ( const int & nDIS)
inline

Definition at line 79 of file MuDISDefs.h.

79 {
80 nDISevts = 0;
82 pPythia = -1.;
83 wDIS = 1;
84 DISxsec.clear();
85 DISxsec.reserve(nDIS);
86 DIStarget.clear();
87 DIStarget.reserve(nDIS);
88 DISvx.clear();
89 DISvx.reserve(nDIS);
90 DISvy.clear();
91 DISvy.reserve(nDIS);
92 DISvz.clear();
93 DISvz.reserve(nDIS);
94 DISvt.clear();
95 DISvt.reserve(nDIS);
96 nDISdau.clear();
97 nDISdau.reserve(nDIS);
98 DISparticles.clear();
99 DISparticles.reserve(10 * nDIS);
100 };
std::vector< DISparticle > DISparticles
Definition MuDISDefs.h:62
std::vector< double > DISvz
Definition MuDISDefs.h:59
std::vector< double > DISvx
Definition MuDISDefs.h:57
std::vector< double > DISvy
Definition MuDISDefs.h:58
std::vector< double > DISxsec
Definition MuDISDefs.h:55
std::vector< double > DISvt
Definition MuDISDefs.h:60
std::vector< bool > DIStarget
Definition MuDISDefs.h:56
std::vector< int > nDISdau
Definition MuDISDefs.h:61

◆ InitTree()

void ShipMuDIS::MuonDISBranches::InitTree ( TTree *& aT,
const TString & aLabel )
inline

Definition at line 64 of file MuDISDefs.h.

64 {
65 aT->Branch("muon_nDISevt_" + aLabel, &nDISevts);
66 aT->Branch("muon_nDISGenerated_" + aLabel, &nDISevtsGenerated);
67 aT->Branch("muon_pPythia_" + aLabel, &pPythia);
68 aT->Branch("muon_wDIS_" + aLabel, &wDIS);
69 aT->Branch("mudis_DISxsec_" + aLabel, &DISxsec);
70 aT->Branch("mudis_DIStarget_" + aLabel, &DIStarget);
71 aT->Branch("mudis_DISvx_" + aLabel, &DISvx);
72 aT->Branch("mudis_DISvy_" + aLabel, &DISvy);
73 aT->Branch("mudis_DISvz_" + aLabel, &DISvz);
74 aT->Branch("mudis_DISvt_" + aLabel, &DISvt);
75 aT->Branch("mudis_nDISdaughters_" + aLabel, &nDISdau);
76 aT->Branch("mudis_DISproducts_" + aLabel, &DISparticles);
77 };

Member Data Documentation

◆ DISparticles

std::vector<DISparticle> ShipMuDIS::MuonDISBranches::DISparticles

Definition at line 62 of file MuDISDefs.h.

◆ DIStarget

std::vector<bool> ShipMuDIS::MuonDISBranches::DIStarget

Definition at line 56 of file MuDISDefs.h.

◆ DISvt

std::vector<double> ShipMuDIS::MuonDISBranches::DISvt

Definition at line 60 of file MuDISDefs.h.

◆ DISvx

std::vector<double> ShipMuDIS::MuonDISBranches::DISvx

Definition at line 57 of file MuDISDefs.h.

◆ DISvy

std::vector<double> ShipMuDIS::MuonDISBranches::DISvy

Definition at line 58 of file MuDISDefs.h.

◆ DISvz

std::vector<double> ShipMuDIS::MuonDISBranches::DISvz

Definition at line 59 of file MuDISDefs.h.

◆ DISxsec

std::vector<double> ShipMuDIS::MuonDISBranches::DISxsec

Definition at line 55 of file MuDISDefs.h.

◆ nDISdau

std::vector<int> ShipMuDIS::MuonDISBranches::nDISdau

Definition at line 61 of file MuDISDefs.h.

◆ nDISevts

int ShipMuDIS::MuonDISBranches::nDISevts

Definition at line 50 of file MuDISDefs.h.

◆ nDISevtsGenerated

int ShipMuDIS::MuonDISBranches::nDISevtsGenerated
Initial value:
=
-1

Definition at line 51 of file MuDISDefs.h.

◆ pPythia

double ShipMuDIS::MuonDISBranches::pPythia = -1.

Definition at line 53 of file MuDISDefs.h.

◆ wDIS

double ShipMuDIS::MuonDISBranches::wDIS

Definition at line 54 of file MuDISDefs.h.


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