ATLAS Offline Software
Loading...
Searching...
No Matches
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
19class SimTimeEstimate : public GenBase {
20public:
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
GenBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition GenBase.cxx:11
Gaudi::Property< double > m_etaMax
const std::array< int, 4 > m_pidsToSkip
std::vector< double > m_particleEnergies
list holds energy of each particle
double m_eventEnergy
Amount of energy that I've seen in one event.
virtual StatusCode execute() override
int m_particleNumber
Number of particles in one event.
double m_total_Energy
Amount of energy that I've seen.
virtual StatusCode finalize() override
SimTimeEstimate(const std::string &name, ISvcLocator *pSvcLocator)
int m_total_Events
Number of events that I've seen.
std::vector< int > m_particleIDs
list holds all the particle IDs for one event
std::vector< double > m_particleEtas
list holds eta of each particle