ATLAS Offline Software
Public Member Functions | Public Attributes | Protected Attributes | List of all members
egammaMonitoring::DiObjectHistograms Class Reference

#include <DiObjectHistograms.h>

Collaboration diagram for egammaMonitoring::DiObjectHistograms:

Public Member Functions

 DiObjectHistograms (std::string name, std::string title, std::string folder, ITHistSvc *&rootHistSvc)
 
StatusCode initializePlots ()
 
void fill (const xAOD::IParticle &eg1, const xAOD::IParticle &eg2)
 
void fill (const xAOD::IParticle &eg1, const xAOD::IParticle &eg2, float mu)
 

Public Attributes

std::map< std::string, TH1 * > histoMap
 

Protected Attributes

std::string m_name
 
std::string m_title
 
std::string m_folder
 
ITHistSvc * m_rootHistSvc = nullptr
 

Detailed Description

Definition at line 21 of file DiObjectHistograms.h.

Constructor & Destructor Documentation

◆ DiObjectHistograms()

egammaMonitoring::DiObjectHistograms::DiObjectHistograms ( std::string  name,
std::string  title,
std::string  folder,
ITHistSvc *&  rootHistSvc 
)
inline

Definition at line 24 of file DiObjectHistograms.h.

27  :
28  m_name(std::move(name)),
29  m_title(std::move(title)),
30  m_folder(std::move(folder)),
31  m_rootHistSvc(rootHistSvc) {}

Member Function Documentation

◆ fill() [1/2]

void egammaMonitoring::DiObjectHistograms::fill ( const xAOD::IParticle eg1,
const xAOD::IParticle eg2 
)

Definition at line 28 of file DiObjectHistograms.cxx.

28  {
29  fill(eg1,eg2,0.);
30  }

◆ fill() [2/2]

void egammaMonitoring::DiObjectHistograms::fill ( const xAOD::IParticle eg1,
const xAOD::IParticle eg2,
float  mu 
)

Definition at line 32 of file DiObjectHistograms.cxx.

32  {
33 
34  xAOD::IParticle::FourMom_t di = eg1.p4()+eg2.p4();
35  double m = di.M()*1e-3;
36  histoMap["mass"]->Fill(m);
37  histoMap["massvsmu"]->Fill(mu,m);
38  histoMap["massvspT"]->Fill(di.Pt()*1e-3,m);
39 
40  }

◆ initializePlots()

StatusCode egammaMonitoring::DiObjectHistograms::initializePlots ( )

Definition at line 13 of file DiObjectHistograms.cxx.

13  {
14 
15  const char* fN = m_name.c_str();
16 
17  histoMap["mass"] = new TH1D(Form("%s_mass",fN),";m [GeV]; Events",300,50,200);
18  ATH_CHECK(m_rootHistSvc->regHist(m_folder+"mass", histoMap["mass"]));
19 
20  histoMap["massvsmu"] = new TH2D(Form("%s_massvsmu",fN),";#mu;m [GeV]",100,0,100,150,50,200);
21  ATH_CHECK(m_rootHistSvc->regHist(m_folder+"massvsmu", histoMap["massvsmu"]));
22 
23  histoMap["massvspT"] = new TH2D(Form("%s_massvspT",fN),";p_{T} [GeV];m [GeV]",20,0,100,150,50,200);
24  ATH_CHECK(m_rootHistSvc->regHist(m_folder+"massvspT", histoMap["massvspT"]));
25  return StatusCode::SUCCESS;
26  }

Member Data Documentation

◆ histoMap

std::map<std::string, TH1*> egammaMonitoring::DiObjectHistograms::histoMap

Definition at line 37 of file DiObjectHistograms.h.

◆ m_folder

std::string egammaMonitoring::DiObjectHistograms::m_folder
protected

Definition at line 42 of file DiObjectHistograms.h.

◆ m_name

std::string egammaMonitoring::DiObjectHistograms::m_name
protected

Definition at line 40 of file DiObjectHistograms.h.

◆ m_rootHistSvc

ITHistSvc* egammaMonitoring::DiObjectHistograms::m_rootHistSvc = nullptr
protected

Definition at line 43 of file DiObjectHistograms.h.

◆ m_title

std::string egammaMonitoring::DiObjectHistograms::m_title
protected

Definition at line 41 of file DiObjectHistograms.h.


The documentation for this class was generated from the following files:
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TH1D
Definition: rootspy.cxx:342
xAOD::IParticle::FourMom_t
TLorentzVector FourMom_t
Definition of the 4-momentum type.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:68
egammaMonitoring::DiObjectHistograms::m_name
std::string m_name
Definition: DiObjectHistograms.h:40
covarianceTool.title
title
Definition: covarianceTool.py:542
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
TH2D
Definition: rootspy.cxx:430
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAOD::IParticle::p4
virtual FourMom_t p4() const =0
The full 4-momentum of the particle.
egammaMonitoring::DiObjectHistograms::m_rootHistSvc
ITHistSvc * m_rootHistSvc
Definition: DiObjectHistograms.h:43
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
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:42
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
egammaMonitoring::DiObjectHistograms::m_title
std::string m_title
Definition: DiObjectHistograms.h:41
egammaMonitoring::DiObjectHistograms::histoMap
std::map< std::string, TH1 * > histoMap
Definition: DiObjectHistograms.h:37