ATLAS Offline Software
DQTDetSynchMonAlg.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 // ********************************************************************
6 //
7 // NAME: DQTDetSynchMonAlg.h
8 // PACKAGE: DataQualityTools
9 //
10 // AUTHOR: Peter Onyisi
11 // following original by Luca Fiorini <Luca.Fiorini@cern.ch>
12 //
13 //
14 // ********************************************************************
15 #ifndef DQTDetSynchMonAlg_H
16 #define DQTDetSynchMonAlg_H
17 
18 #include <set>
19 #include "GaudiKernel/ToolHandle.h"
20 #include <stdint.h>
21 #include "TH1.h"
22 #include "TH2.h"
29 
31 
32 // MagField cache
35 
36 
37 class TProfile;
38 
40 {
41 
42  public:
43 
44  DQTDetSynchMonAlg( const std::string& name, ISvcLocator* pSvcLocator );
45 
46  virtual ~DQTDetSynchMonAlg();
47 
48  virtual StatusCode initialize() override;
49 
50  virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
51  uint32_t findid(const std::multiset<uint32_t>& mset) const;
52  float findfrac(const std::multiset<uint32_t>& mset, uint16_t ctpid) const;
53 
54 private:
55 
56  Gaudi::Property<Int_t> m_solenoidPositionX { this, "SolenoidPositionX", 0 };
57  Gaudi::Property<Int_t> m_solenoidPositionY { this, "SolenoidPositionY", 10 };
58  Gaudi::Property<Int_t> m_solenoidPositionZ { this, "SolenoidPositionZ", 0 };
59  Gaudi::Property<Int_t> m_toroidPositionX { this, "ToroidPositionX", 0 };
60  Gaudi::Property<Int_t> m_toroidPositionY { this, "ToroidPositionY", 6000 };
61  Gaudi::Property<Int_t> m_toroidPositionZ { this, "ToroidPositionZ", 0 };
62  Gaudi::Property<bool> m_doRPC { this, "doRPC", true };
63  Gaudi::Property<bool> m_run2Compat { this, "run2Compat", false, "Make histograms with Run 2 naming" };
64 
65  // some strings so we don't need to do string manipulation every event
66  static const int NDETS = 7;
67  std::vector<std::string> m_diffnamevec;
68 
69  // storegate keys
71  { this, "InDetTimeCollectionKeys", {"TRT_BCID", "SCT_BCID", "PixelBCID", "TRT_LVL1ID", "SCT_LVL1ID", "PixelLVL1ID"} } ;
73  { this, "LArFebHeaderKey", "LArFebHeader" };
75  { this, "TileDigitsContainerKey", "TileDigitsFlt" };
77  { this, "RpcPadContainerKey", "RPCPAD" };
79  this,
80  "AtlasFieldCacheCondObj",
81  "fieldCondObj",
82  "Name of the Magnetic Field conditions object key"
83  };
84 
85 };
86 
87 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DQTDetSynchMonAlg::m_solenoidPositionY
Gaudi::Property< Int_t > m_solenoidPositionY
Definition: DQTDetSynchMonAlg.h:57
DQTDetSynchMonAlg::m_toroidPositionZ
Gaudi::Property< Int_t > m_toroidPositionZ
Definition: DQTDetSynchMonAlg.h:61
DQTDetSynchMonAlg::m_doRPC
Gaudi::Property< bool > m_doRPC
Definition: DQTDetSynchMonAlg.h:62
DQTDetSynchMonAlg
Definition: DQTDetSynchMonAlg.py:1
DQTDetSynchMonAlg::m_LArFebHeaderContainerKey
SG::ReadHandleKey< LArFebHeaderContainer > m_LArFebHeaderContainerKey
Definition: DQTDetSynchMonAlg.h:73
DQTDetSynchMonAlg::initialize
virtual StatusCode initialize() override
initialize
Definition: DQTDetSynchMonAlg.cxx:53
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
AtlasFieldCacheCondObj.h
DQTDetSynchMonAlg::NDETS
static const int NDETS
Definition: DQTDetSynchMonAlg.h:66
DQTDetSynchMonAlg::m_toroidPositionY
Gaudi::Property< Int_t > m_toroidPositionY
Definition: DQTDetSynchMonAlg.h:60
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
DQTDetSynchMonAlg::m_solenoidPositionX
Gaudi::Property< Int_t > m_solenoidPositionX
Definition: DQTDetSynchMonAlg.h:56
DQTDetSynchMonAlg::m_InDetTimeCollectionKeys
SG::ReadHandleKeyArray< InDetTimeCollection > m_InDetTimeCollectionKeys
Definition: DQTDetSynchMonAlg.h:71
DQTDetSynchMonAlg::~DQTDetSynchMonAlg
virtual ~DQTDetSynchMonAlg()
Definition: DQTDetSynchMonAlg.cxx:47
SG::ReadHandleKey< LArFebHeaderContainer >
DQTDetSynchMonAlg::m_solenoidPositionZ
Gaudi::Property< Int_t > m_solenoidPositionZ
Definition: DQTDetSynchMonAlg.h:58
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
TileDigitsContainer.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
DQTDetSynchMonAlg::m_run2Compat
Gaudi::Property< bool > m_run2Compat
Definition: DQTDetSynchMonAlg.h:63
AtlasFieldCache.h
DQTDetSynchMonAlg::m_fieldCacheCondObjInputKey
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCacheCondObjInputKey
Definition: DQTDetSynchMonAlg.h:78
DQTDetSynchMonAlg::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: DQTDetSynchMonAlg.cxx:64
DQTDetSynchMonAlg::m_diffnamevec
std::vector< std::string > m_diffnamevec
Definition: DQTDetSynchMonAlg.h:67
DQTDetSynchMonAlg::m_RpcPadContainerKey
SG::ReadHandleKey< RpcPadContainer > m_RpcPadContainerKey
Definition: DQTDetSynchMonAlg.h:77
LArFebHeaderContainer.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
EventInfo.h
SG::ReadCondHandleKey< AtlasFieldCacheCondObj >
DQTDetSynchMonAlg::m_toroidPositionX
Gaudi::Property< Int_t > m_toroidPositionX
Definition: DQTDetSynchMonAlg.h:59
DQTDetSynchMonAlg::DQTDetSynchMonAlg
DQTDetSynchMonAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: DQTDetSynchMonAlg.cxx:31
DQTDetSynchMonAlg::findid
uint32_t findid(const std::multiset< uint32_t > &mset) const
Definition: DQTDetSynchMonAlg.cxx:422
DQTDetSynchMonAlg::m_TileDigitsContainerKey
SG::ReadHandleKey< TileDigitsContainer > m_TileDigitsContainerKey
Definition: DQTDetSynchMonAlg.h:75
RpcPadContainer.h
InDetTimeCollection.h
DQTDetSynchMonAlg::findfrac
float findfrac(const std::multiset< uint32_t > &mset, uint16_t ctpid) const
Definition: DQTDetSynchMonAlg.cxx:449