|
FairShip
|
#include <EvtCalcGenerator.h>


Public Member Functions | |
| EvtCalcGenerator () | |
| ~EvtCalcGenerator () override | |
| Bool_t | ReadEvent (FairPrimaryGenerator *) override |
| Bool_t | Init (const char *, int) override |
| Bool_t | Init (const char *) override |
| Int_t | GetNevents () |
| void | SetPositions (Double_t zTa, Double_t zDV) |
| Double_t | GetNdaughters (const std::unique_ptr< TTree > &) const |
| Double_t | GetMotherPx (const std::unique_ptr< TTree > &) const |
| Double_t | GetMotherPy (const std::unique_ptr< TTree > &) const |
| Double_t | GetMotherPz (const std::unique_ptr< TTree > &) const |
| Double_t | GetMotherE (const std::unique_ptr< TTree > &) const |
| Double_t | GetVx (const std::unique_ptr< TTree > &) const |
| Double_t | GetVy (const std::unique_ptr< TTree > &) const |
| Double_t | GetVz (const std::unique_ptr< TTree > &) const |
| Double_t | GetDecayProb (const std::unique_ptr< TTree > &) const |
| Double_t | GetDauPx (const std::unique_ptr< TTree > &, int) const |
| Double_t | GetDauPy (const std::unique_ptr< TTree > &, int) const |
| Double_t | GetDauPz (const std::unique_ptr< TTree > &, int) const |
| Double_t | GetDauE (const std::unique_ptr< TTree > &, int) const |
| Double_t | GetDauPDG (const std::unique_ptr< TTree > &, int) const |
Public Member Functions inherited from SHiP::Generator | |
| Generator () | |
| virtual | ~Generator () |
| virtual Bool_t | Init (const char *, int)=0 |
| virtual Bool_t | Init (const char *)=0 |
| virtual Bool_t | Init (const std::vector< std::string > &inFiles, int startNumber) |
| virtual Bool_t | Init (const std::vector< std::string > &inFiles) |
| virtual void | UseExternalFile (std::string x, Int_t i) |
| virtual void | UseExternalFile (std::vector< std::string > &inFiles, Int_t i) |
Protected Types | |
| enum class | BranchIndices { MotherPx = 0 , MotherPy = 1 , MotherPz = 2 , MotherE = 3 , DecayProb = 6 , Vx = 7 , Vy = 8 , Vz = 9 } |
Protected Member Functions | |
| Double_t | GetBranchValue (const std::unique_ptr< TTree > &, unsigned) const |
| Double_t | GetDaughterValue (const std::unique_ptr< TTree > &tree, int, int) const |
Protected Attributes | |
| Double_t | ztarget |
| Double_t | zDecayVolume |
| std::unique_ptr< TFile > | fInputFile |
| std::unique_ptr< TTree > | fTree |
| std::vector< double > | branchVars |
| int | fNevents |
| int | fn |
| int | nBranches |
| int | Ndau |
Protected Attributes inherited from SHiP::Generator | |
| std::optional< std::string > | fextFile |
| Int_t | firstEvent = 0 |
Definition at line 16 of file EvtCalcGenerator.h.
|
strongprotected |
| EvtCalcGenerator::EvtCalcGenerator | ( | ) |
|
override |
|
protected |
Definition at line 50 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetDauE | ( | const std::unique_ptr< TTree > & | tree, |
| int | dauID | ||
| ) | const |
Definition at line 120 of file EvtCalcGenerator.cxx.
|
protected |
Definition at line 59 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetDauPDG | ( | const std::unique_ptr< TTree > & | tree, |
| int | dauID | ||
| ) | const |
Definition at line 124 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetDauPx | ( | const std::unique_ptr< TTree > & | tree, |
| int | dauID | ||
| ) | const |
Definition at line 108 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetDauPy | ( | const std::unique_ptr< TTree > & | tree, |
| int | dauID | ||
| ) | const |
Definition at line 112 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetDauPz | ( | const std::unique_ptr< TTree > & | tree, |
| int | dauID | ||
| ) | const |
Definition at line 116 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetDecayProb | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 102 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetMotherE | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 85 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetMotherPx | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 73 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetMotherPy | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 77 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetMotherPz | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 81 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetNdaughters | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 67 of file EvtCalcGenerator.cxx.
|
inline |
Definition at line 30 of file EvtCalcGenerator.h.
| Double_t EvtCalcGenerator::GetVx | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 91 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetVy | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 94 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetVz | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 97 of file EvtCalcGenerator.cxx.
|
overridevirtual |
|
overridevirtual |
Implements SHiP::Generator.
Definition at line 24 of file EvtCalcGenerator.cxx.
|
override |
Definition at line 130 of file EvtCalcGenerator.cxx.
|
inline |
Definition at line 31 of file EvtCalcGenerator.h.
|
protected |
Definition at line 63 of file EvtCalcGenerator.h.
|
protected |
Definition at line 61 of file EvtCalcGenerator.h.
|
protected |
Definition at line 77 of file EvtCalcGenerator.h.
|
protected |
Definition at line 76 of file EvtCalcGenerator.h.
|
protected |
Definition at line 62 of file EvtCalcGenerator.h.
|
protected |
Definition at line 78 of file EvtCalcGenerator.h.
|
protected |
Definition at line 79 of file EvtCalcGenerator.h.
|
protected |
Definition at line 60 of file EvtCalcGenerator.h.
|
protected |
Definition at line 60 of file EvtCalcGenerator.h.