ATLAS Offline Software
Loading...
Searching...
No Matches
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
15class TH2D;
16class TProfile;
17class ITHistSvc;
18
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
38 StatusCode initializePlots();
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
void fill(const xAOD::Egamma &egamma)
std::map< std::string, TProfile * > profileMap
ClusterHistograms(std::string name, std::string title, std::string folder, SmartIF< ITHistSvc > rootHistSvc)
std::map< std::string, TH2D * > histo2DMap
elec/gamma data class.
Definition egamma.h:58
STL namespace.
Egamma_v1 Egamma
Definition of the current "egamma version".
Definition Egamma.h:17