ATLAS Offline Software
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 
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 
34  virtual ~LArCollisionTimeMonAlg();
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
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
LArCollisionTimeMonAlg::~LArCollisionTimeMonAlg
virtual ~LArCollisionTimeMonAlg()
Default destructor.
Definition: LArCollisionTimeMonAlg.cxx:29
LArCollisionTimeMonAlg::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
Called each event.
Definition: LArCollisionTimeMonAlg.cxx:53
LArCollisionTimeMonAlg
Definition: LArCollisionTimeMonAlg.py:1
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
python.SystemOfUnits.nanosecond
int nanosecond
Definition: SystemOfUnits.py:119
LArCollisionTimeMonAlg::m_bunchCrossingKey
SG::ReadCondHandleKey< BunchCrossingCondData > m_bunchCrossingKey
Definition: LArCollisionTimeMonAlg.h:63
SG::ReadHandleKey< LArCollisionTime >
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
LArCollisionTimeMonAlg::m_MonGroupName
Gaudi::Property< std::string > m_MonGroupName
Definition: LArCollisionTimeMonAlg.h:48
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
LArCollisionTimeMonAlg::LArCollisionTimeMonAlg
LArCollisionTimeMonAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArCollisionTimeMonAlg.cxx:24
LArCollisionTimeMonAlg::m_timeCut
Gaudi::Property< float > m_timeCut
Definition: LArCollisionTimeMonAlg.h:56
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
LArCollisionTimeMonAlg::m_InTrain_MonGroupName
Gaudi::Property< std::string > m_InTrain_MonGroupName
Definition: LArCollisionTimeMonAlg.h:49
LArCollisionTimeMonAlg::m_eWeighted
Gaudi::Property< bool > m_eWeighted
Definition: LArCollisionTimeMonAlg.h:58
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArCollisionTimeMonAlg::m_eventInfoDecorKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition: LArCollisionTimeMonAlg.h:65
LArCollisionTimeMonAlg::m_LArCollisionTimeKey
SG::ReadHandleKey< LArCollisionTime > m_LArCollisionTimeKey
Definition: LArCollisionTimeMonAlg.h:61
LArCollisionTimeMonAlg::m_minCells
Gaudi::Property< int > m_minCells
Definition: LArCollisionTimeMonAlg.h:57
SG::ReadCondHandleKey< BunchCrossingCondData >
LArCollisionTimeMonAlg::m_distance
Gaudi::Property< int > m_distance
Definition: LArCollisionTimeMonAlg.h:54
BunchCrossingCondData.h
Replaces the BunchCrossing AlgTool used in run1/2.
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
LArCollisionTimeMonAlg::m_IsOnline
Gaudi::Property< bool > m_IsOnline
Definition: LArCollisionTimeMonAlg.h:55
LArCollisionTimeMonAlg::m_timeUnit
Gaudi::Property< double > m_timeUnit
Definition: LArCollisionTimeMonAlg.h:53
LArCollisionTimeMonAlg::initialize
virtual StatusCode initialize() override
Overwrite dummy method from AlgTool.
Definition: LArCollisionTimeMonAlg.cxx:34