ATLAS Offline Software
ClusterHistograms.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 #ifndef EGAMMAVALIDATION_CLUSTERSHISTOGRAMS_H
6 #define EGAMMAVALIDATION_CLUSTERSHISTOGRAMS_H
7 
8 #include <map>
9 
10 #include "GaudiKernel/ITHistSvc.h"
11 #include "GaudiKernel/SmartIF.h"
12 
13 #include "xAODEgamma/Egamma.h"
14 
15 class TH2D;
16 class TProfile;
17 class ITHistSvc;
18 
19 namespace egammaMonitoring{
20 
22  public:
23 
24  // Histos
25  ClusterHistograms(std::string name,
26  std::string title,
27  std::string folder,
28  SmartIF<ITHistSvc> rootHistSvc
29  ) :
30  m_name(std::move(name)),
31  m_title(std::move(title)),
32  m_folder(std::move(folder)),
33  m_rootHistSvc(std::move(rootHistSvc)) {}
34 
35  std::map<std::string, TH2D* > histo2DMap;
36  std::map<std::string, TProfile* > profileMap;
37 
39  void fill(const xAOD::Egamma& egamma);
40  void fill(const xAOD::Egamma& egamma, float mu);
41 
42  protected:
43  std::string m_name;
44  std::string m_title;
45  std::string m_folder;
46  SmartIF<ITHistSvc> m_rootHistSvc;
47 
48 
49  };
50 
51 }
52 
53 #endif
egammaMonitoring::ClusterHistograms::ClusterHistograms
ClusterHistograms(std::string name, std::string title, std::string folder, SmartIF< ITHistSvc > rootHistSvc)
Definition: ClusterHistograms.h:25
xAOD::Egamma_v1
Definition: Egamma_v1.h:56
egammaMonitoring::ClusterHistograms::m_title
std::string m_title
Definition: ClusterHistograms.h:44
egammaMonitoring::ClusterHistograms::m_folder
std::string m_folder
Definition: ClusterHistograms.h:45
egamma
Definition: egamma.h:58
Egamma.h
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
egammaMonitoring::ClusterHistograms::fill
void fill(const xAOD::Egamma &egamma)
Definition: ClusterHistograms.cxx:69
egammaMonitoring::ClusterHistograms::histo2DMap
std::map< std::string, TH2D * > histo2DMap
Definition: ClusterHistograms.h:35
covarianceTool.title
title
Definition: covarianceTool.py:542
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
egammaMonitoring
Definition: ClusterHistograms.h:19
egammaMonitoring::ClusterHistograms::initializePlots
StatusCode initializePlots()
Definition: ClusterHistograms.cxx:20
egammaMonitoring::ClusterHistograms::m_name
std::string m_name
Definition: ClusterHistograms.h:43
egammaMonitoring::ClusterHistograms::profileMap
std::map< std::string, TProfile * > profileMap
Definition: ClusterHistograms.h:36
CaloCondBlobAlgs_fillNoiseFromASCII.folder
folder
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:56
egammaMonitoring::ClusterHistograms::m_rootHistSvc
SmartIF< ITHistSvc > m_rootHistSvc
Definition: ClusterHistograms.h:46
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
egammaMonitoring::ClusterHistograms
Definition: ClusterHistograms.h:21