![]() |
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 |
| virtual Bool_t | Init (const std::vector< std::string > &inFiles, int startNumber) |
| virtual Bool_t | Init (const std::vector< std::string > &inFiles) |
| Public Member Functions inherited from SHiP::Generator | |
| Generator ()=default | |
| ~Generator () override | |
| virtual void | UseExternalFile (std::string x, Int_t i) |
| virtual void | UseExternalFile (std::vector< std::string > &inFiles, Int_t i) |
| void | SetMaxTheta (Double_t thetaX, Double_t thetaY) |
| Int_t | nrOfGeoRejections () const |
| Long64_t | GetCounter (const std::string &name) const |
| void | SetCounter (const std::string &name, Long64_t value) |
| void | IncrementCounter (const std::string &name, Long64_t delta=1) |
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 Member Functions inherited from SHiP::Generator | |
| bool | IsInVesselAcceptance (Double_t px, Double_t py, Double_t pz) 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 |
| Double_t | fMaxThetaX = 0 |
| Double_t | fMaxThetaY = 0 |
| bool | fUseVesselAcceptance = false |
| Int_t | fnGeoRejects = 0 |
| std::unordered_map< std::string, int64_t > | fCounters |
Definition at line 16 of file EvtCalcGenerator.h.
|
strongprotected |
| Enumerator | |
|---|---|
| MotherPx | |
| MotherPy | |
| MotherPz | |
| MotherE | |
| DecayProb | |
| Vx | |
| Vy | |
| Vz | |
Definition at line 65 of file EvtCalcGenerator.h.
|
default |
default constructor
|
overridedefault |
destructor
|
protected |
Definition at line 97 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetDauE | ( | const std::unique_ptr< TTree > & | tree, |
| int | dauID ) const |
Definition at line 167 of file EvtCalcGenerator.cxx.
|
protected |
Definition at line 106 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetDauPDG | ( | const std::unique_ptr< TTree > & | tree, |
| int | dauID ) const |
Definition at line 171 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetDauPx | ( | const std::unique_ptr< TTree > & | tree, |
| int | dauID ) const |
Definition at line 155 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetDauPy | ( | const std::unique_ptr< TTree > & | tree, |
| int | dauID ) const |
Definition at line 159 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetDauPz | ( | const std::unique_ptr< TTree > & | tree, |
| int | dauID ) const |
Definition at line 163 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetDecayProb | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 149 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetMotherE | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 132 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetMotherPx | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 120 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetMotherPy | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 124 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetMotherPz | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 128 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetNdaughters | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 114 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 138 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetVy | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 141 of file EvtCalcGenerator.cxx.
| Double_t EvtCalcGenerator::GetVz | ( | const std::unique_ptr< TTree > & | tree | ) | const |
Definition at line 144 of file EvtCalcGenerator.cxx.
|
overridevirtual |
|
overridevirtual |
Implements SHiP::Generator.
Definition at line 24 of file EvtCalcGenerator.cxx.
|
inlinevirtual |
public method ReadEvent
Reimplemented from SHiP::Generator.
Definition at line 33 of file Generator.h.
|
inlinevirtual |
public method ReadEvent
Reimplemented from SHiP::Generator.
Definition at line 27 of file Generator.h.
|
override |
Definition at line 177 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.