ATLAS Offline Software
InDetGlobalBeamSpotMonAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // ********************************************************************************
6 // $Id:$
7 //
8 // InDetGlobalBeamSpotMonAlg is a module to monitor primary vertices and the beam spot in
9 // the context of package InnerDetector/InDetMonitoring/InDetGlobalMonitoring. A
10 // scaled-down version doing only primary vertex monitoring is available as module
11 // InDetGlobalPrimaryVertexMonTool (the reason for having two tools is that in
12 // InDetGlobalBeamSpotMonAlg monitoring is done wrt beam spot, while InDetGlobalPrimaryVertexMonAlg
13 // does not use the beam spot). Originally, this module was developed in package
14 // InDetAlignmentMonitoring under the name InDetAlignMonBeamSpot.
15 //
16 // Written in March 2008 by Juerg Beringer (LBNL)
17 // Adapted to AthenaMT 2020 by Per Johansson (Sheffield University) and Leonid Serkin (ICTP)
18 //
19 // ********************************************************************************
20 
21 #ifndef InDetGlobalBeamSpotMonAlg_H
22 #define InDetGlobalBeamSpotMonAlg_H
23 
25 
27 
28 // xAOD
31 
32 // Beam condition include(s):
34 
35 //#include <vector>
36 #include <string>
37 
38 
40 
41  public:
42 
43  InDetGlobalBeamSpotMonAlg( const std::string & name, ISvcLocator* pSvcLocator);
45  virtual StatusCode initialize() override;
46  virtual StatusCode fillHistograms(const EventContext& ctx) const override;
47  std::string findComponentString(int bec, int ld) const;
48 
49  private:
50 
51  SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
52  std::string m_stream;
53 
55  SG::ReadHandleKey<xAOD::VertexContainer> m_vxContainerName{this,"vxContainerName","PrimaryVertices","Vertex Container for Global Beamspot Monitoring"};
57 
58  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_trackContainerName{this,"trackContainerName","InDetTrackParticles","TrackParticle container for Global Beamspot Monitoring"};
59 
60  std::string m_histFolder;
61  std::string m_triggerChainName;
62  unsigned int m_minTracksPerVtx;
63  float m_minTrackPt;
64 };
65 
66 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
InDetGlobalBeamSpotMonAlg::m_histFolder
std::string m_histFolder
Definition: InDetGlobalBeamSpotMonAlg.h:60
InDetGlobalBeamSpotMonAlg
Definition: InDetGlobalBeamSpotMonAlg.h:39
ParticleGun_SamplingFraction.bec
int bec
Definition: ParticleGun_SamplingFraction.py:89
InDetGlobalBeamSpotMonAlg::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition: InDetGlobalBeamSpotMonAlg.h:51
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
InDetGlobalBeamSpotMonAlg::m_trackContainerName
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackContainerName
Definition: InDetGlobalBeamSpotMonAlg.h:58
InDetGlobalBeamSpotMonAlg::InDetGlobalBeamSpotMonAlg
InDetGlobalBeamSpotMonAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: InDetGlobalBeamSpotMonAlg.cxx:33
InDetGlobalBeamSpotMonAlg::~InDetGlobalBeamSpotMonAlg
virtual ~InDetGlobalBeamSpotMonAlg()
Definition: InDetGlobalBeamSpotMonAlg.cxx:46
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
InDetGlobalBeamSpotMonAlg::m_vxContainerName
SG::ReadHandleKey< xAOD::VertexContainer > m_vxContainerName
Definition: InDetGlobalBeamSpotMonAlg.h:55
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
InDetGlobalBeamSpotMonAlg::findComponentString
std::string findComponentString(int bec, int ld) const
InDetGlobalBeamSpotMonAlg::initialize
virtual StatusCode initialize() override
initialize
Definition: InDetGlobalBeamSpotMonAlg.cxx:49
InDetGlobalBeamSpotMonAlg::m_minTracksPerVtx
unsigned int m_minTracksPerVtx
Definition: InDetGlobalBeamSpotMonAlg.h:62
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
InDetGlobalBeamSpotMonAlg::m_vxContainerWithBeamConstraint
bool m_vxContainerWithBeamConstraint
Definition: InDetGlobalBeamSpotMonAlg.h:56
SG::ReadCondHandleKey< InDet::BeamSpotData >
VertexContainer.h
InDetGlobalBeamSpotMonAlg::m_stream
std::string m_stream
Definition: InDetGlobalBeamSpotMonAlg.h:52
InDetGlobalBeamSpotMonAlg::m_triggerChainName
std::string m_triggerChainName
Definition: InDetGlobalBeamSpotMonAlg.h:61
InDetGlobalBeamSpotMonAlg::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: InDetGlobalBeamSpotMonAlg.cxx:58
BeamSpotData.h
InDetGlobalBeamSpotMonAlg::m_useBeamspot
bool m_useBeamspot
Definition: InDetGlobalBeamSpotMonAlg.h:54
geometry_dat_to_json.ld
ld
Definition: geometry_dat_to_json.py:14
TrackParticleContainer.h
InDetGlobalBeamSpotMonAlg::m_minTrackPt
float m_minTrackPt
Definition: InDetGlobalBeamSpotMonAlg.h:63