ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
PhysicsValidation
GeneratorPhysVal
src
GeneratorPhysValMonitoringTool.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 GeneratorPhysVal_GeneratorPhysValMonitoring_H
6
#define GeneratorPhysVal_GeneratorPhysValMonitoring_H
7
8
// STL includes
9
#include <string>
10
11
// FrameWork includes
12
#include "GaudiKernel/ServiceHandle.h"
13
14
// Local includes
15
#include "
AthenaMonitoring/ManagedMonitorToolBase.h
"
16
#include "
xAODTruth/TruthParticleContainer.h
"
17
#include "
xAODJet/JetContainer.h
"
18
#include "
xAODEventInfo/EventInfo.h
"
19
#include "
StoreGate/ReadHandle.h
"
20
#include "
StoreGate/ReadHandleKey.h
"
21
#include "
AthenaBaseComps/AthAlgorithm.h
"
22
#include "
xAODTruth/TruthVertex.h
"
23
#include <TLorentzVector.h>
24
#include "
GeneratorPlots.h
"
25
#include "
GeneratorProductionVertexPlots.h
"
26
#include "
GeneratorSelector.h
"
27
#include "
GeneratorEventInfo.h
"
28
#include "
AsgTools/AnaToolHandle.h
"
29
#include <
PathResolver/PathResolver.h
>
30
#include "
StoreGate/ReadHandleKey.h
"
31
#include "
AtlasHepMC/GenEvent.h
"
32
// Root includes
33
#include "TH1.h"
34
35
36
37
38
39
namespace
GeneratorPhysVal
40
{
41
class
GeneratorPhysValMonitoringTool
42
:
public
ManagedMonitorToolBase
43
{
44
45
public
:
46
47
GeneratorPhysValMonitoringTool
(
const
std::string &
type
,
48
const
std::string &name,
49
const
IInterface *parent);
50
51
virtual
~GeneratorPhysValMonitoringTool
();
52
53
virtual
StatusCode
initialize
();
54
virtual
StatusCode
bookHistograms
();
55
virtual
StatusCode
fillHistograms
(
const
EventContext& ctx);
56
virtual
StatusCode
procHistograms
();
57
58
private
:
59
GeneratorPhysValMonitoringTool
();
60
GeneratorPhysVal::GeneratorPlots
m_testPlots
;
61
GeneratorPhysVal::GeneratorPlots
m_ChargedParticlePlots
;
62
GeneratorPhysVal::GeneratorPlots
m_GeneratorLevelPlots
;
63
GeneratorPhysVal::GeneratorPlots
m_SimulationLevelPlots
;
64
GeneratorPhysVal::GeneratorProductionVertexPlots
m_ProductionVertexPlots
;
65
GeneratorPhysVal::GeneratorEventInfo
m_EventInfoPlots
;
66
67
StatusCode
book
(
PlotBase
& plots);
68
TH1D*
m_number
=
nullptr
;
69
TH1D*
m_number_GeneratorLevel
=
nullptr
;
70
TH1D*
m_number_SimulationLevel
=
nullptr
;
71
72
GeneratorSelector
*
m_GeneratorSelector
;
73
74
75
int
m_ref_mcChannelNumber
= 0;
76
77
Gaudi::Property<std::vector<float>>
m_binning_N_TruthParticle
{
this
,
"binning_N_TruthParticle"
, {600,0.,6000},
"binning_N_TruthParticle"
};
78
Gaudi::Property<std::vector<float>>
m_binning_N_GeneratorLevelParticle
{
this
,
"binning_N_GeneratorLevelParticle"
, {10,-5.,5},
"binning_N_GeneratorLevelParticle"
};
79
Gaudi::Property<std::vector<float>>
m_binning_N_SimulationLevelParticle
{
this
,
"binning_N_SimulationLevelParticle"
, {2000,0,2000},
"binning_N_SimulationLevelParticle"
};
80
81
82
83
SG::ReadHandleKey<xAOD::EventInfo>
m_evtInfoKey
{this
84
,
"EventInfo"
85
,
"EventInfo"
86
,
"ReadHandleKey for xAOD::EventInfo"
};
87
88
};
89
}
90
91
#endif
AnaToolHandle.h
AthAlgorithm.h
TruthParticleContainer.h
GenEvent.h
GeneratorEventInfo.h
GeneratorPlots.h
GeneratorProductionVertexPlots.h
GeneratorSelector.h
JetContainer.h
ManagedMonitorToolBase.h
PathResolver.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ReadHandle.h
Handle class for reading from StoreGate.
TruthVertex.h
GeneratorPhysVal::GeneratorEventInfo
Definition
GeneratorEventInfo.h:15
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_EventInfoPlots
GeneratorPhysVal::GeneratorEventInfo m_EventInfoPlots
Definition
GeneratorPhysValMonitoringTool.h:65
GeneratorPhysVal::GeneratorPhysValMonitoringTool::~GeneratorPhysValMonitoringTool
virtual ~GeneratorPhysValMonitoringTool()
Definition
GeneratorPhysValMonitoringTool.cxx:36
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_number
TH1D * m_number
Definition
GeneratorPhysValMonitoringTool.h:68
GeneratorPhysVal::GeneratorPhysValMonitoringTool::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx)
An inheriting class should either override this function or fillHists().
Definition
GeneratorPhysValMonitoringTool.cxx:76
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_ChargedParticlePlots
GeneratorPhysVal::GeneratorPlots m_ChargedParticlePlots
Definition
GeneratorPhysValMonitoringTool.h:61
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_binning_N_TruthParticle
Gaudi::Property< std::vector< float > > m_binning_N_TruthParticle
Definition
GeneratorPhysValMonitoringTool.h:77
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_ProductionVertexPlots
GeneratorPhysVal::GeneratorProductionVertexPlots m_ProductionVertexPlots
Definition
GeneratorPhysValMonitoringTool.h:64
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_GeneratorSelector
GeneratorSelector * m_GeneratorSelector
Definition
GeneratorPhysValMonitoringTool.h:72
GeneratorPhysVal::GeneratorPhysValMonitoringTool::bookHistograms
virtual StatusCode bookHistograms()
An inheriting class should either override this function or bookHists().
Definition
GeneratorPhysValMonitoringTool.cxx:59
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_number_SimulationLevel
TH1D * m_number_SimulationLevel
Definition
GeneratorPhysValMonitoringTool.h:70
GeneratorPhysVal::GeneratorPhysValMonitoringTool::GeneratorPhysValMonitoringTool
GeneratorPhysValMonitoringTool()
GeneratorPhysVal::GeneratorPhysValMonitoringTool::book
StatusCode book(PlotBase &plots)
Definition
GeneratorPhysValMonitoringTool.cxx:47
GeneratorPhysVal::GeneratorPhysValMonitoringTool::procHistograms
virtual StatusCode procHistograms()
An inheriting class should either override this function or finalHists().
Definition
GeneratorPhysValMonitoringTool.cxx:118
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_binning_N_SimulationLevelParticle
Gaudi::Property< std::vector< float > > m_binning_N_SimulationLevelParticle
Definition
GeneratorPhysValMonitoringTool.h:79
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_binning_N_GeneratorLevelParticle
Gaudi::Property< std::vector< float > > m_binning_N_GeneratorLevelParticle
Definition
GeneratorPhysValMonitoringTool.h:78
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_GeneratorLevelPlots
GeneratorPhysVal::GeneratorPlots m_GeneratorLevelPlots
Definition
GeneratorPhysValMonitoringTool.h:62
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_SimulationLevelPlots
GeneratorPhysVal::GeneratorPlots m_SimulationLevelPlots
Definition
GeneratorPhysValMonitoringTool.h:63
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_evtInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
Definition
GeneratorPhysValMonitoringTool.h:83
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_number_GeneratorLevel
TH1D * m_number_GeneratorLevel
Definition
GeneratorPhysValMonitoringTool.h:69
GeneratorPhysVal::GeneratorPhysValMonitoringTool::initialize
virtual StatusCode initialize()
Definition
GeneratorPhysValMonitoringTool.cxx:39
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_testPlots
GeneratorPhysVal::GeneratorPlots m_testPlots
Definition
GeneratorPhysValMonitoringTool.h:60
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_ref_mcChannelNumber
int m_ref_mcChannelNumber
Definition
GeneratorPhysValMonitoringTool.h:75
GeneratorPhysVal::GeneratorPhysValMonitoringTool::GeneratorPhysValMonitoringTool
GeneratorPhysValMonitoringTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
GeneratorPhysValMonitoringTool.cxx:19
GeneratorPhysVal::GeneratorPlots
Definition
GeneratorPlots.h:14
GeneratorPhysVal::GeneratorProductionVertexPlots
Definition
GeneratorProductionVertexPlots.h:14
GeneratorSelector
Definition
GeneratorSelector.h:15
ManagedMonitorToolBase::ManagedMonitorToolBase
ManagedMonitorToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
ManagedMonitorToolBase.cxx:339
PlotBase
Definition
PlotBase.h:35
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
GeneratorPhysVal
Definition
GeneratorEventInfo.cxx:7
type
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0