ATLAS Offline Software
Loading...
Searching...
No Matches
DiObjectHistograms.h
Go to the documentation of this file.
1/*
2Copyright (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
15class TH1;
16class ITHistSvc;
17namespace xAOD {
18 class IParticle;
19}
20
21namespace 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
35 StatusCode initializePlots();
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
void fill(const xAOD::IParticle &eg1, const xAOD::IParticle &eg2)
std::map< std::string, TH1 * > histoMap
DiObjectHistograms(std::string name, std::string title, std::string folder, SmartIF< ITHistSvc > rootHistSvc)
Class providing the definition of the 4-vector interface.
STL namespace.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.