ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
EvgenProdTools
EvgenProdTools
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
10
#include "
GeneratorModules/GenBase.h
"
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
(
const
EventContext& ctx)
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
29
int
m_total_Events
{};
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
;
35
int
m_particleNumber
{};
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
GenBase.h
GenBase::GenBase
GenBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
GenBase.cxx:11
SimTimeEstimate::m_etaMax
Gaudi::Property< double > m_etaMax
Definition
SimTimeEstimate.h:27
SimTimeEstimate::m_pidsToSkip
const std::array< int, 4 > m_pidsToSkip
Definition
SimTimeEstimate.h:36
SimTimeEstimate::m_particleEnergies
std::vector< double > m_particleEnergies
list holds energy of each particle
Definition
SimTimeEstimate.h:33
SimTimeEstimate::m_eventEnergy
double m_eventEnergy
Amount of energy that I've seen in one event.
Definition
SimTimeEstimate.h:31
SimTimeEstimate::m_particleNumber
int m_particleNumber
Number of particles in one event.
Definition
SimTimeEstimate.h:35
SimTimeEstimate::m_total_Energy
double m_total_Energy
Amount of energy that I've seen.
Definition
SimTimeEstimate.h:30
SimTimeEstimate::finalize
virtual StatusCode finalize() override
Definition
SimTimeEstimate.cxx:64
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::m_particleIDs
std::vector< int > m_particleIDs
list holds all the particle IDs for one event
Definition
SimTimeEstimate.h:34
SimTimeEstimate::m_particleEtas
std::vector< double > m_particleEtas
list holds eta of each particle
Definition
SimTimeEstimate.h:32
SimTimeEstimate::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
SimTimeEstimate.cxx:15
Generated on
for ATLAS Offline Software by
1.17.0