ATLAS Offline Software
DiObjectHistograms.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_DIOBJECTHISTOGRAMS_H
6 #define EGAMMAVALIDATION_DIOBJECTHISTOGRAMS_H
7 
9 #include "GaudiKernel/ITHistSvc.h"
10 #include "GaudiKernel/SmartIF.h"
11 
12 #include <map>
13 #include <string>
14 
15 class TH1;
16 class ITHistSvc;
17 namespace xAOD {
18  class IParticle;
19 }
20 
21 namespace egammaMonitoring {
22 
24  public:
25 
26  DiObjectHistograms(std::string name,
27  std::string title,
28  std::string folder,
29  SmartIF<ITHistSvc> rootHistSvc) :
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 
36 
37  void fill(const xAOD::IParticle& eg1, const xAOD::IParticle& eg2);
38  void fill(const xAOD::IParticle& eg1, const xAOD::IParticle& eg2, float mu);
39  std::map<std::string, TH1*> histoMap;
40 
41  protected:
42  std::string m_name;
43  std::string m_title;
44  std::string m_folder;
45  SmartIF<ITHistSvc> m_rootHistSvc;
46  };
47 
48 }
49 
50 #endif
egammaMonitoring::DiObjectHistograms::m_rootHistSvc
SmartIF< ITHistSvc > m_rootHistSvc
Definition: DiObjectHistograms.h:45
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
egammaMonitoring::DiObjectHistograms::initializePlots
StatusCode initializePlots()
Definition: DiObjectHistograms.cxx:13
egammaMonitoring::DiObjectHistograms
Definition: DiObjectHistograms.h:23
egammaMonitoring::DiObjectHistograms::m_name
std::string m_name
Definition: DiObjectHistograms.h:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
covarianceTool.title
title
Definition: covarianceTool.py:542
StatusCode.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
egammaMonitoring
Definition: ClusterHistograms.h:19
CaloCondBlobAlgs_fillNoiseFromASCII.folder
folder
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:56
egammaMonitoring::DiObjectHistograms::fill
void fill(const xAOD::IParticle &eg1, const xAOD::IParticle &eg2)
Definition: DiObjectHistograms.cxx:28
egammaMonitoring::DiObjectHistograms::m_folder
std::string m_folder
Definition: DiObjectHistograms.h:44
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
IParticle
Definition: Event/EventKernel/EventKernel/IParticle.h:43
egammaMonitoring::DiObjectHistograms::m_title
std::string m_title
Definition: DiObjectHistograms.h:43
egammaMonitoring::DiObjectHistograms::histoMap
std::map< std::string, TH1 * > histoMap
Definition: DiObjectHistograms.h:39
egammaMonitoring::DiObjectHistograms::DiObjectHistograms
DiObjectHistograms(std::string name, std::string title, std::string folder, SmartIF< ITHistSvc > rootHistSvc)
Definition: DiObjectHistograms.h:26