Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19250581
genRootDecayChain.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
genRootDecayChain.hh
View Options
#ifndef GENROOT_DECAYCHAIN_HH
#define GENROOT_DECAYCHAIN_HH
#include
"TFile.h"
#include
"TH1.h"
#include
"TTree.h"
#include
"TCanvas.h"
#include
<string>
class
EvtParticle
;
class
genRootDecayChain
{
public
:
genRootDecayChain
(
const
std
::
string
&
decayFileName
,
const
std
::
string
&
rootFileName
,
const
std
::
string
&
parentName
,
int
nEvents
,
bool
storeMtmXYZ
=
false
);
~
genRootDecayChain
();
void
run
();
protected
:
void
initTree
();
void
generateEvents
();
void
storeDaughterInfo
(
EvtParticle
*
theParticle
);
void
storeTreeInfo
(
EvtParticle
*
theParticle
);
void
writeTree
();
private
:
std
::
string
_decayFileName
;
std
::
string
_rootFileName
;
std
::
string
_parentName
;
int
_nEvents
;
bool
_storeMtmXYZ
;
TFile
*
_theFile
;
TTree
*
_theTree
;
TH1D
*
_probHist
;
TCanvas
*
_theCanvas
;
int
_eventId
;
int
_PDGId
;
int
_dVtx
;
int
_pVtx
;
int
_daug
;
double
_p
;
double
_E
;
double
_pL
;
double
_EL
;
double
_m
;
double
_px
;
double
_py
;
double
_pz
;
double
_pxL
;
double
_pyL
;
double
_pzL
;
double
_t
;
int
_vertexNo
;
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Sep 30, 5:42 AM (2 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6455915
Default Alt Text
genRootDecayChain.hh (1 KB)
Attached To
Mode
rEVTGEN evtgen
Attached
Detach File
Event Timeline
Log In to Comment