ATLAS Offline Software
Loading...
Searching...
No Matches
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
37class 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
54private:
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
Property holding a SG store/key/clid from which a ReadHandle is made.
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Gaudi::Property< bool > m_run2Compat
Gaudi::Property< Int_t > m_solenoidPositionX
Gaudi::Property< Int_t > m_solenoidPositionY
std::vector< std::string > m_diffnamevec
Gaudi::Property< Int_t > m_solenoidPositionZ
SG::ReadHandleKey< RpcPadContainer > m_RpcPadContainerKey
static const int NDETS
uint32_t findid(const std::multiset< uint32_t > &mset) const
Gaudi::Property< bool > m_doRPC
Gaudi::Property< Int_t > m_toroidPositionZ
SG::ReadHandleKey< LArFebHeaderContainer > m_LArFebHeaderContainerKey
float findfrac(const std::multiset< uint32_t > &mset, uint16_t ctpid) const
SG::ReadHandleKeyArray< InDetTimeCollection > m_InDetTimeCollectionKeys
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCacheCondObjInputKey
Gaudi::Property< Int_t > m_toroidPositionX
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Gaudi::Property< Int_t > m_toroidPositionY
SG::ReadHandleKey< TileDigitsContainer > m_TileDigitsContainerKey
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
void initialize()