ATLAS Offline Software
egammaMonitorSuperClusterAlgorithm.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3  */
4 
6 
7 egammaMonitorSuperClusterAlgorithm::egammaMonitorSuperClusterAlgorithm( const std::string& name, ISvcLocator* pSvcLocator ):
8  egammaMonitorBaseAlgorithm( name, pSvcLocator )
9 
10 {}
11 
13 {
14 
16  if (!m_monTool.empty()) CHECK(m_monTool.retrieve());
18  return StatusCode::SUCCESS;
19 }
20 
22 {
23 
25 
26  return StatusCode::SUCCESS;
27 }
28 
29 
31 
33  ATH_MSG_DEBUG("Fill cluster quantities: ");
34 
35  std::vector<float> et_vec, eta_vec, phi_vec, clusterSize_vec, signalState_vec;
36 
37  auto et_col = Monitored::Collection("et" , et_vec);
38  auto eta_col = Monitored::Collection("eta" , eta_vec);
39  auto phi_col = Monitored::Collection("phi", phi_vec);
40  auto clusterSize_col = Monitored::Collection("clusterSize" ,clusterSize_vec);
41  auto signalState_col = Monitored::Collection("signalState" ,signalState_vec);
42 
43  for (const auto *const eg : *egammaRec) {
44 
45  et_vec.push_back(eg->caloCluster()->et()/Gaudi::Units::GeV);
46  eta_vec.push_back(eg->caloCluster()->eta());
47  phi_vec.push_back(eg->caloCluster()->phi());
48  clusterSize_vec.push_back(eg->caloCluster()->clusterSize());
49  signalState_vec.push_back(eg->caloCluster()->signalState());
50 
51  }
52  auto mon = Monitored::Group(m_monTool, et_col,eta_col,phi_col, clusterSize_col,signalState_col);
53  ATH_MSG_DEBUG("SuperCluster - Online Monitoring in Reconstruction ...");
54 
55 }
egammaMonitorSuperClusterAlgorithm::m_inputEgammaRecContainerKey
SG::ReadHandleKey< EgammaRecContainer > m_inputEgammaRecContainerKey
Definition: egammaMonitorSuperClusterAlgorithm.h:30
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
TrigDefs::Group
Group
Properties of a chain group.
Definition: GroupProperties.h:13
ParticleTest.eg
eg
Definition: ParticleTest.py:29
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition: MonitoredCollection.h:38
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
egammaMonitorSuperClusterAlgorithm::fillSuperClusterQuantities
void fillSuperClusterQuantities(const EventContext &ctx) const
Definition: egammaMonitorSuperClusterAlgorithm.cxx:30
egammaMonitorSuperClusterAlgorithm::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: egammaMonitorSuperClusterAlgorithm.h:37
egammaMonitorSuperClusterAlgorithm::egammaMonitorSuperClusterAlgorithm
egammaMonitorSuperClusterAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition: egammaMonitorSuperClusterAlgorithm.cxx:7
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
egammaMonitorSuperClusterAlgorithm.h
egammaMonitorBaseAlgorithm::initialize
virtual StatusCode initialize() override
Definition: egammaMonitorBaseAlgorithm.cxx:16
egammaMonitorBaseAlgorithm
Definition: egammaMonitorBaseAlgorithm.h:24
egammaMonitorSuperClusterAlgorithm::initialize
virtual StatusCode initialize() override
Definition: egammaMonitorSuperClusterAlgorithm.cxx:12
plotBeamSpotMon.mon
mon
Definition: plotBeamSpotMon.py:67
egammaRec
Definition: egammaRec.h:31
egammaMonitorSuperClusterAlgorithm::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: egammaMonitorSuperClusterAlgorithm.cxx:21