ATLAS Offline Software
SimTimeEstimate.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef XAOD_ANALYSIS
6 
7 #ifndef EVGENPRODTOOLS_SIMTIMEESTIMATE_H
8 #define EVGENPRODTOOLS_SIMTIMEESTIMATE_H
9 
11 #include <array>
12 #include <vector>
13 
19 class SimTimeEstimate : public GenBase {
20 public:
21 
22  SimTimeEstimate(const std::string& name, ISvcLocator* pSvcLocator);
23  virtual StatusCode execute() override;
24  virtual StatusCode finalize() override;
25 
26  private:
27  Gaudi::Property<double> m_etaMax{this, "EtaLimit", 6.0, "Max eta used for simulation"};
28 
30  double m_total_Energy{};
31  double m_eventEnergy{};
32  std::vector<double> m_particleEtas;
33  std::vector<double> m_particleEnergies;
34  std::vector<int> m_particleIDs;
36  const std::array<int, 4> m_pidsToSkip{12, 13, 14, 16}; // !< PIDs of particles which should not be taken into account
37 
38 };
39 
40 
41 #endif
42 
43 #endif
SimTimeEstimate::m_particleNumber
int m_particleNumber
Number of particles in one event.
Definition: SimTimeEstimate.h:35
SimTimeEstimate::m_particleIDs
std::vector< int > m_particleIDs
list holds all the particle IDs for one event
Definition: SimTimeEstimate.h:34
SimTimeEstimate
Algorithm to estimate the amount of CPU time that simulation will take.
Definition: SimTimeEstimate.h:19
SimTimeEstimate::m_eventEnergy
double m_eventEnergy
Amount of energy that I've seen in one event.
Definition: SimTimeEstimate.h:31
SimTimeEstimate::m_particleEnergies
std::vector< double > m_particleEnergies
list holds energy of each particle
Definition: SimTimeEstimate.h:33
SimTimeEstimate::m_particleEtas
std::vector< double > m_particleEtas
list holds eta of each particle
Definition: SimTimeEstimate.h:32
GenBase
Base class for common behaviour of MC truth algorithms.
Definition: GenBase.h:47
SimTimeEstimate::m_pidsToSkip
const std::array< int, 4 > m_pidsToSkip
Definition: SimTimeEstimate.h:36
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GenBase.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SimTimeEstimate::m_etaMax
Gaudi::Property< double > m_etaMax
Definition: SimTimeEstimate.h:27
SimTimeEstimate::m_total_Energy
double m_total_Energy
Amount of energy that I've seen.
Definition: SimTimeEstimate.h:30
SimTimeEstimate::execute
virtual StatusCode execute() override
Definition: SimTimeEstimate.cxx:15
SimTimeEstimate::SimTimeEstimate
SimTimeEstimate(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SimTimeEstimate.cxx:10
SimTimeEstimate::m_total_Events
int m_total_Events
Number of events that I've seen.
Definition: SimTimeEstimate.h:29
SimTimeEstimate::finalize
virtual StatusCode finalize() override
Definition: SimTimeEstimate.cxx:64