ATLAS Offline Software
DQTBackgroundMon.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #ifndef DQTBACKGROUNDMON_H
13 #define DQTBACKGROUNDMON_H
14 
16 
23 
25 public:
26  DQTBackgroundMon(const std::string& name, ISvcLocator* pSvcLocator);
27  virtual ~DQTBackgroundMon();
28  virtual StatusCode initialize() override;
29  virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
30 private:
31  template <class T> using RH = SG::ReadHandle<T>;
32  template <class T> using RHK = SG::ReadHandleKey<T>;
33  template <class T> using GP = Gaudi::Property<T>;
34 
35  // Activates trigger and muon parts of the algorithm
36  GP<bool> m_doMuons {this, "Muons", true};
37 
38  // StoreGate keys
39  RHK<LArCollisionTime> m_LArCollisionTimeKey {this, "LArCollisionTimeKey", "LArCollisionTime", ""};
40  RHK<MBTSCollisionTime> m_MBTSCollisionTimeKey {this, "MBTSCollisionTimeKey", "MBTSCollisionTime", ""};
41  RHK<TileCellContainer> m_TileCellContainerKey {this, "MBTSContainerName", "MBTSContainer", ""};
42  RHK<LUCID_RawDataContainer> m_LUCID_RawDataContainerKey {this, "Lucid_RawDataKey","Lucid_RawData", ""};
43  RHK<BeamBackgroundData> m_BeamBackgroundDataKey {this, "BeamBackgroundDataKey", "BeamBackgroundData", ""};
44  RHK<xAOD::VertexContainer> m_VertexContainerKey {this, "PrimaryVerticesKey", "PrimaryVertices", ""};
45  RHK<SpacePointContainer> m_sctSpacePointKey{this,"SCT_SpacePointKey","SCT_SpacePoints",""};
46  RHK<SpacePointContainer> m_pixSpacePointKey{this,"Pixel_SpacePointKey","PixelSpacePoints",""};
47 
49  "EventInfo.backgroundWord",
50  "Key to enforce scheduling"};
51  // we dp not need a decorhandle key for the MBTS background because we already depend on MBTSCollisionTime
52 
53 
54  // For parsing the int returned by TrigDecTool's getBGCode()
55  GP<int> m_filledBG {this, "FilledBGIndex", 1};
56  GP<int> m_emptyBG {this, "EmptyBGIndex", 3};
57  GP<int> m_unpairIsoBG {this, "UnpairIsoBGIndex", 4};
58  GP<int> m_unpairNonIsoBG {this, "UnpairNonIsoBGIndex", 5};
59 
60  // Various cuts used in fillHistograms()
61  GP<int> m_upPixSP {this, "UpPixSP", 5000};
62  GP<int> m_upSctSP {this, "UpSctSP", 10000};
63  GP<int> m_LArECSideCut {this, "LArECSideCut", 1};
64  GP<int> m_MBTSSideCut {this, "MBTSSideCut", 2};
65  GP<float> m_MBTSTimeCut {this, "MBTSTimeCut", 15};
66  GP<float> m_MBTSThresholdCut {this, "MBTSThresholdCut", 40.0/222.0};
68  GP<int> m_MBTSPattern {this, "MBTSPattern", TileCell::MASK_TIME };
69  GP<int> m_nBkgWords {this, "NBkgWords", 32};
70 };
71 #endif
DQTBackgroundMon::m_LArECSideCut
GP< int > m_LArECSideCut
Definition: DQTBackgroundMon.h:63
DQTBackgroundMon::GP
Gaudi::Property< T > GP
Definition: DQTBackgroundMon.h:33
DQTBackgroundMon::m_MBTSThresholdCut
GP< float > m_MBTSThresholdCut
Definition: DQTBackgroundMon.h:66
DQTBackgroundMon::m_VertexContainerKey
RHK< xAOD::VertexContainer > m_VertexContainerKey
Definition: DQTBackgroundMon.h:44
LUCID_RawDataContainer.h
DQTBackgroundMon::m_MBTSCollisionTimeKey
RHK< MBTSCollisionTime > m_MBTSCollisionTimeKey
Definition: DQTBackgroundMon.h:40
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
DQTBackgroundMon::m_LArCollisionTimeKey
RHK< LArCollisionTime > m_LArCollisionTimeKey
Definition: DQTBackgroundMon.h:39
DQTBackgroundMon::m_doMuons
GP< bool > m_doMuons
Definition: DQTBackgroundMon.h:36
DQTBackgroundMon::m_sctSpacePointKey
RHK< SpacePointContainer > m_sctSpacePointKey
Definition: DQTBackgroundMon.h:45
DQTBackgroundMon
Definition: DQTBackgroundMon.py:1
DQTBackgroundMon::m_MBTSMask
GP< int > m_MBTSMask
Definition: DQTBackgroundMon.h:67
DQTBackgroundMon::m_unpairNonIsoBG
GP< int > m_unpairNonIsoBG
Definition: DQTBackgroundMon.h:58
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
TileCell::MASK_BADCH
@ MASK_BADCH
Definition: TileCell.h:63
SpacePointContainer.h
DQTBackgroundMon::initialize
virtual StatusCode initialize() override
initialize
Definition: DQTBackgroundMon.cxx:13
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
MBTSCollisionTime.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
TileCell::MASK_OVER
@ MASK_OVER
Definition: TileCell.h:64
DQTBackgroundMon::m_eventInfoDecorKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition: DQTBackgroundMon.h:48
BeamBackgroundData.h
DQTBackgroundMon::m_nBkgWords
GP< int > m_nBkgWords
Definition: DQTBackgroundMon.h:69
DQTBackgroundMon::m_MBTSSideCut
GP< int > m_MBTSSideCut
Definition: DQTBackgroundMon.h:64
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
DQTBackgroundMon::m_unpairIsoBG
GP< int > m_unpairIsoBG
Definition: DQTBackgroundMon.h:57
DQTBackgroundMon::DQTBackgroundMon
DQTBackgroundMon(const std::string &name, ISvcLocator *pSvcLocator)
Definition: DQTBackgroundMon.cxx:7
DQTBackgroundMon::m_LUCID_RawDataContainerKey
RHK< LUCID_RawDataContainer > m_LUCID_RawDataContainerKey
Definition: DQTBackgroundMon.h:42
DQTBackgroundMon::m_emptyBG
GP< int > m_emptyBG
Definition: DQTBackgroundMon.h:56
TileCell::MASK_TIME
@ MASK_TIME
Definition: TileCell.h:67
DQTBackgroundMon::m_MBTSTimeCut
GP< float > m_MBTSTimeCut
Definition: DQTBackgroundMon.h:65
DQTBackgroundMon::m_pixSpacePointKey
RHK< SpacePointContainer > m_pixSpacePointKey
Definition: DQTBackgroundMon.h:46
DQTBackgroundMon::m_upSctSP
GP< int > m_upSctSP
Definition: DQTBackgroundMon.h:62
DQTBackgroundMon::m_MBTSPattern
GP< int > m_MBTSPattern
Definition: DQTBackgroundMon.h:68
DQTBackgroundMon::m_filledBG
GP< int > m_filledBG
Definition: DQTBackgroundMon.h:55
DQTBackgroundMon::m_BeamBackgroundDataKey
RHK< BeamBackgroundData > m_BeamBackgroundDataKey
Definition: DQTBackgroundMon.h:43
LArCollisionTime.h
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
TileContainer.h
DQTBackgroundMon::m_upPixSP
GP< int > m_upPixSP
Definition: DQTBackgroundMon.h:61
DQTBackgroundMon::m_TileCellContainerKey
RHK< TileCellContainer > m_TileCellContainerKey
Definition: DQTBackgroundMon.h:41
DQTBackgroundMon::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: DQTBackgroundMon.cxx:26
DQTBackgroundMon::~DQTBackgroundMon
virtual ~DQTBackgroundMon()
Definition: DQTBackgroundMon.cxx:11