ATLAS Offline Software
Loading...
Searching...
No Matches
LArCollisionTimeMonAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
10
11#ifndef LAR_COLLISION_TIME_MON_TOOL_H
12#define LAR_COLLISION_TIME_MON_TOOL_H
13
16
20#include "GaudiKernel/SystemOfUnits.h"
22
23#include <string>
24#include <vector>
25
26
27
29{
30 public:
31 LArCollisionTimeMonAlg( const std::string& name, ISvcLocator* pSvcLocator );
32
35
37 virtual StatusCode initialize() override;
38
39
41 virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
42
43
44
45 private:
46
47 //MonGroup(s) name
48 Gaudi::Property<std::string> m_MonGroupName {this,"CollTimeGroupName","LArCollisionTimeMonGroup"};
49 Gaudi::Property<std::string> m_InTrain_MonGroupName {this,"InTrain_CollTimeGroupName",""};
50
51
52 // Other properties
53 Gaudi::Property<double> m_timeUnit {this,"TimeUnit",Gaudi::Units::nanosecond};
54 Gaudi::Property<int> m_distance {this,"TrainFrontDistance",30*Gaudi::Units::nanosecond}; // distance from train front to fill second histos
55 Gaudi::Property<bool> m_IsOnline {this,"IsOnline",false};
56 Gaudi::Property<float> m_timeCut {this,"timeDiffCut",5.0*Gaudi::Units::nanosecond};
57 Gaudi::Property<int> m_minCells {this,"nCells",2};
58 Gaudi::Property<bool> m_eWeighted {this,"eWeighted",true};
59
60 //containers' handles
61 SG::ReadHandleKey<LArCollisionTime> m_LArCollisionTimeKey{this, "Key", "LArCollisionTime", "Key for the LArCollisionTime data"};
62
63 SG::ReadCondHandleKey<BunchCrossingCondData> m_bunchCrossingKey{this, "BunchCrossingKey", "BunchCrossingData", "Key BunchCrossing CDO" };
64
65 SG::ReadDecorHandleKey<xAOD::EventInfo> m_eventInfoDecorKey{this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"};
66};
67
68#endif
Replaces the BunchCrossing AlgTool used in run1/2.
Header file to be included by clients of the Monitored infrastructure.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
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_IsOnline
virtual StatusCode fillHistograms(const EventContext &ctx) const override
Called each event.
Gaudi::Property< int > m_distance
SG::ReadHandleKey< LArCollisionTime > m_LArCollisionTimeKey
Gaudi::Property< float > m_timeCut
Gaudi::Property< int > m_minCells
Gaudi::Property< double > m_timeUnit
Gaudi::Property< std::string > m_InTrain_MonGroupName
Gaudi::Property< std::string > m_MonGroupName
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
SG::ReadCondHandleKey< BunchCrossingCondData > m_bunchCrossingKey
Gaudi::Property< bool > m_eWeighted
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
void initialize()