ATLAS Offline Software
Loading...
Searching...
No Matches
SuperCellVsCaloCellTestAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARROD_SUPERCELLVSCALOCELLTESTALG_H
6#define LARROD_SUPERCELLVSCALOCELLTESTALG_H 1
7
8//Author: Will Buttinger <will@cern.ch>
9//Purpose: Quick comparison of supercell to sum-of-calocell quantities
10
12
13
18
19#include "GaudiKernel/ToolHandle.h"
20
21#include "TString.h"
22
23class TProfile;
24class TTree;
25class TH1F;
26class TH2F;
27
29 public:
30 SuperCellVsCaloCellTestAlg( const std::string& name, ISvcLocator* pSvcLocator );
32
33 virtual StatusCode initialize();
34 virtual StatusCode execute();
35 virtual StatusCode finalize();
36
37
38
39 private:
40 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"SCCablingKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"};
41 ToolHandle<ICaloSuperCellIDTool> m_sc2ccMappingTool;
43
45
46/*
47 static const int nBinsE=11;
48 static const int nBinsEta=34;
49 static constexpr double eBins[nBinsE+1] {0.00001,0.2,0.4,0.6,0.8,1,2,3,4,5,10,50};
50 static constexpr double etaBins[nBinsEta+1] {0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5,2.7,2.9,3.1,3.2,3.5,3.8,4.1,4.5,4.9};
51*/
52
53 std::vector<TProfile*> m_etReso;
54 std::vector<TProfile*> m_etResoTruth;
55
56 std::vector<TH1F*> m_Reso_et;
57 std::vector<TH2F*> m_Reso_et_vs_eta;
58 std::vector<TH2F*> m_Reso_et_vs_et;
59 std::vector<TH2F*> m_Linear_SCet_vs_et;
60
61 std::map<TString,std::vector<float> > m_graphsX, m_graphsY;
62
63
67 float m_treeEta=0;
68 float m_treeSCET=0;
70 std::vector<short int>* m_treeDigits;
71 TTree* m_tree;
72
73
74};
75
76#endif //> !LARROD_SUPERCELLVSCALOCELLTESTALG_H
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
virtual ~SuperCellVsCaloCellTestAlg()
ToolHandle< ICaloSuperCellIDTool > m_sc2ccMappingTool
std::vector< short int > * m_treeDigits
std::vector< TProfile * > m_etResoTruth
std::vector< TH2F * > m_Linear_SCet_vs_et
SuperCellVsCaloCellTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
std::map< TString, std::vector< float > > m_graphsX
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
std::vector< TProfile * > m_etReso
std::map< TString, std::vector< float > > m_graphsY
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)