IsolationHistograms.h 1.16 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/

#ifndef EGAMMAVALIDATION_ISOLATIONHISTOGRAMS_H
#define EGAMMAVALIDATION_ISOLATIONHISTOGRAMS_H

#include "GaudiKernel/ITHistSvc.h"
#include "xAODEgamma/Egamma.h"
#include "xAODEgamma/EgammaxAODHelpers.h"

#include "EgammaAnalysisInterfaces/IAsgElectronLikelihoodTool.h"
#include "TH1.h"

namespace egammaMonitoring{

  class IsolationHistograms{
  public:

    // Histos
    IsolationHistograms(std::string name,
                        std::string title,
                        std::string folder,
                        ITHistSvc * &rootHistSvc
    ) :
      m_name(name),
      m_title(title),
      m_folder(folder),
      m_rootHistSvc(rootHistSvc) {}

    std::map<std::string, TH1D* > histoMap;
32
    StatusCode initializePlots(bool do_var_histos);
33
34
35
36
37
38
39
40
41
    void fill(const xAOD::Egamma& egamma);

  protected:

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

42
43
44
45
    float m_ptCone20{}, m_ptCone30{}, m_ptVarCone20{}, m_ptVarCone30{};
    float m_topoEtCone20{}, m_topoEtCone30{}, m_topoEtCone40{};

    bool m_do_var_histos;
46
47
48
49
50
51

  };

}

#endif