AnalysisTree
Loading...
Searching...
No Matches
AnalysisTree::ToyMC< RandomEngine > Class Template Reference
Inheritance diagram for AnalysisTree::ToyMC< RandomEngine >:
Inheritance graph
Collaboration diagram for AnalysisTree::ToyMC< RandomEngine >:
Collaboration graph

Public Member Functions

void Init () override
 
void Exec () override
 
void Finish () override
 
void FillEventInfo ()
 
void FillMcParticles ()
 
void FillRecoTracks ()
 
- Public Member Functions inherited from AnalysisTree::Task
void PreInit ()
 
void SetInConfiguration (const Configuration *config)
 
void SetDataHeader (const DataHeader *data_header)
 
void SetInputBranchNames (const std::set< std::string > &br)
 
ANALYSISTREE_ATTR_NODISCARD const std::set< std::string > & GetInputBranchNames () const
 
ANALYSISTREE_ATTR_NODISCARD bool IsGoodEvent (const EventHeader &event_header) const
 
ANALYSISTREE_ATTR_NODISCARD bool IsGoodEvent (const Chain &t) const
 
void SetEventCuts (Cuts *cuts)
 
void AddInputBranch (const std::string &name)
 

Protected Member Functions

float GetPhi (RandomEngine &engine, float psi)
 
- Protected Member Functions inherited from AnalysisTree::Task
 ClassDef (Task, 0)
 

Protected Attributes

RandomEngine generator_
 
EventHeadersim_event_header_ {nullptr}
 
std::poisson_distribution< int > multiplicity_ {100}
 
std::uniform_real_distribution< float > psi_RP_ {-M_PI, M_PI}
 
std::vector< float > vn_ {0.2, 0.1}
 
float cm_rapidity_ {0.f}
 
Particlesparticles_ {nullptr}
 
std::exponential_distribution< float > pT_dist_ {1.}
 
std::normal_distribution< float > y_dist_ {cm_rapidity_, 1.}
 
std::piecewise_linear_distribution phi_distr_
 
TrackDetectortrack_detector_ {nullptr}
 
Matchingrec_tracks_to_sim_ {nullptr}
 
TH2 * efficiency_map_ {nullptr}
 
- Protected Attributes inherited from AnalysisTree::Task
const Configurationconfig_ {nullptr}
 
const DataHeaderdata_header_ {nullptr}
 
Cutsevent_cuts_ {nullptr}
 
std::set< std::string > in_branches_ {}
 
bool is_init_ {false}
 

Member Function Documentation

◆ Exec()

template<class RandomEngine >
void AnalysisTree::ToyMC< RandomEngine >::Exec ( )
inlineoverridevirtual

Implements AnalysisTree::Task.

◆ Finish()

template<class RandomEngine >
void AnalysisTree::ToyMC< RandomEngine >::Finish ( )
inlineoverridevirtual

Implements AnalysisTree::Task.

◆ Init()

template<class RandomEngine >
void AnalysisTree::ToyMC< RandomEngine >::Init ( )
inlineoverridevirtual

Implements AnalysisTree::Task.

Member Data Documentation

◆ phi_distr_

template<class RandomEngine >
std::piecewise_linear_distribution AnalysisTree::ToyMC< RandomEngine >::phi_distr_
protected
Initial value:
{1000, 0, 2 * M_PI,
[&](const double phi) {
double value = 1.;
for (unsigned int n = 1; n < vn_.size() + 1; ++n) {
value += 2 * vn_[n - 1] * std::cos(n * (phi - 0.));
}
return value;
}}

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