ATLAS Offline Software
LArRDOAnalysis.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #ifndef LAR_RDO_ANALYSIS_H
7 #define LAR_RDO_ANALYSIS_H
8 
10 #include "GaudiKernel/ServiceHandle.h"
11 #include "GaudiKernel/ITHistSvc.h"
13 
17 
18 #include <string>
19 #include <vector>
20 #include "TH1.h"
21 
22 class TTree;
23 class TH1;
24 
25 class LArRDOAnalysis : public AthAlgorithm {
26 
27 public:
28  LArRDOAnalysis(const std::string& name, ISvcLocator* pSvcLocator);
30 
31  virtual StatusCode initialize() override final;
32  virtual StatusCode execute() override final;
33  virtual StatusCode finalize() override final;
34 
35 private:
40  BooleanProperty m_presampling{this, "PreSampling", false};
41 
42  // LAR RAW CHANNELS
43  std::vector<unsigned long long>* m_larID;
44  std::vector<int>* m_energy;
45  std::vector<int>* m_time;
46  std::vector<uint16_t>* m_qual;
47  std::vector<uint16_t>* m_prov;
48  std::vector<int>* m_gain;
49  // LAR TTL1
50  std::vector<unsigned long long>* m_hadOnID;
51  std::vector<unsigned long long>* m_hadOffID;
52  std::vector<float>* m_hadSamples;
53  std::vector<unsigned long long>* m_emOnID;
54  std::vector<unsigned long long>* m_emOffID;
55  std::vector<float>* m_emSamples;
56  // LAR DIGITS
57  std::vector<unsigned long long>* m_digiID;
58  std::vector<int>* m_digiGain;
59  std::vector<short>* m_digiSamples;
60 
61  // HISTOGRAMS
62  TH1* m_h_larID;
63  TH1* m_h_energy;
64  TH1* m_h_time;
65  TH1* m_h_qual;
66  TH1* m_h_prov;
67  TH1* m_h_gain;
71  TH1* m_h_emOnID;
74  TH1* m_h_digiID;
77 
78  TTree *m_tree;
79  std::string m_ntupleFileName;
80  std::string m_ntupleDirName;
81  std::string m_ntupleTreeName;
82  std::string m_path;
84 
85 };
86 
87 #endif // LAR_RDO_ANALYSIS_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
LArRDOAnalysis::m_gain
std::vector< int > * m_gain
Definition: LArRDOAnalysis.h:48
LArRDOAnalysis::finalize
virtual StatusCode finalize() override final
Definition: LArRDOAnalysis.cxx:306
LArRDOAnalysis::m_h_qual
TH1 * m_h_qual
Definition: LArRDOAnalysis.h:65
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
LArRDOAnalysis::m_hadOnID
std::vector< unsigned long long > * m_hadOnID
Definition: LArRDOAnalysis.h:50
LArRDOAnalysis::m_inputTTL1EMKey
SG::ReadHandleKey< LArTTL1Container > m_inputTTL1EMKey
Definition: LArRDOAnalysis.h:38
LArRDOAnalysis::initialize
virtual StatusCode initialize() override final
Definition: LArRDOAnalysis.cxx:72
LArRDOAnalysis::m_h_emOffID
TH1 * m_h_emOffID
Definition: LArRDOAnalysis.h:72
LArRDOAnalysis::m_qual
std::vector< uint16_t > * m_qual
Definition: LArRDOAnalysis.h:46
LArRDOAnalysis::m_h_time
TH1 * m_h_time
Definition: LArRDOAnalysis.h:64
LArRDOAnalysis::m_time
std::vector< int > * m_time
Definition: LArRDOAnalysis.h:45
LArRDOAnalysis::m_prov
std::vector< uint16_t > * m_prov
Definition: LArRDOAnalysis.h:47
LArRDOAnalysis::m_h_hadOffID
TH1 * m_h_hadOffID
Definition: LArRDOAnalysis.h:69
LArRDOAnalysis::m_hadOffID
std::vector< unsigned long long > * m_hadOffID
Definition: LArRDOAnalysis.h:51
LArRDOAnalysis
Definition: LArRDOAnalysis.h:25
LArRDOAnalysis::m_h_emSamples
TH1 * m_h_emSamples
Definition: LArRDOAnalysis.h:73
LArRDOAnalysis::m_hadSamples
std::vector< float > * m_hadSamples
Definition: LArRDOAnalysis.h:52
LArRDOAnalysis::m_h_emOnID
TH1 * m_h_emOnID
Definition: LArRDOAnalysis.h:71
LArTTL1Container.h
LArRDOAnalysis::m_h_hadSamples
TH1 * m_h_hadSamples
Definition: LArRDOAnalysis.h:70
LArRDOAnalysis::m_h_digiID
TH1 * m_h_digiID
Definition: LArRDOAnalysis.h:74
AthAlgorithm.h
LArRDOAnalysis::m_inputTTL1HADKey
SG::ReadHandleKey< LArTTL1Container > m_inputTTL1HADKey
Definition: LArRDOAnalysis.h:37
LArRDOAnalysis::m_emOffID
std::vector< unsigned long long > * m_emOffID
Definition: LArRDOAnalysis.h:54
LArRDOAnalysis::m_h_digiGain
TH1 * m_h_digiGain
Definition: LArRDOAnalysis.h:75
LArRDOAnalysis::LArRDOAnalysis
LArRDOAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArRDOAnalysis.cxx:17
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArRDOAnalysis::m_inputRawChannelKey
SG::ReadHandleKey< LArRawChannelContainer > m_inputRawChannelKey
Definition: LArRDOAnalysis.h:36
LArRDOAnalysis::m_larID
std::vector< unsigned long long > * m_larID
Definition: LArRDOAnalysis.h:43
LArRDOAnalysis::m_emOnID
std::vector< unsigned long long > * m_emOnID
Definition: LArRDOAnalysis.h:53
LArRDOAnalysis::m_energy
std::vector< int > * m_energy
Definition: LArRDOAnalysis.h:44
LArTTL1Container
Container class for LArTTL1.
Definition: LArTTL1Container.h:24
AthAlgorithm
Definition: AthAlgorithm.h:47
LArRDOAnalysis::m_path
std::string m_path
Definition: LArRDOAnalysis.h:82
LArRDOAnalysis::m_ntupleDirName
std::string m_ntupleDirName
Definition: LArRDOAnalysis.h:80
LArRDOAnalysis::m_ntupleFileName
std::string m_ntupleFileName
Definition: LArRDOAnalysis.h:79
LArRDOAnalysis::m_tree
TTree * m_tree
Definition: LArRDOAnalysis.h:78
LArRDOAnalysis::execute
virtual StatusCode execute() override final
Definition: LArRDOAnalysis.cxx:172
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArRDOAnalysis::m_presampling
BooleanProperty m_presampling
Definition: LArRDOAnalysis.h:40
LArDigitContainer.h
LArRDOAnalysis::m_h_larID
TH1 * m_h_larID
Definition: LArRDOAnalysis.h:62
LArRDOAnalysis::m_h_energy
TH1 * m_h_energy
Definition: LArRDOAnalysis.h:63
LArRDOAnalysis::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: LArRDOAnalysis.h:83
LArRDOAnalysis::m_inputDigitKey
SG::ReadHandleKey< LArDigitContainer > m_inputDigitKey
Definition: LArRDOAnalysis.h:39
LArDigitContainer
Container class for LArDigit.
Definition: LArDigitContainer.h:24
LArRDOAnalysis::m_h_digiSamples
TH1 * m_h_digiSamples
Definition: LArRDOAnalysis.h:76
LArRDOAnalysis::m_digiGain
std::vector< int > * m_digiGain
Definition: LArRDOAnalysis.h:58
LArRDOAnalysis::~LArRDOAnalysis
~LArRDOAnalysis()
Definition: LArRDOAnalysis.h:29
LArRDOAnalysis::m_h_prov
TH1 * m_h_prov
Definition: LArRDOAnalysis.h:66
LArRDOAnalysis::m_h_gain
TH1 * m_h_gain
Definition: LArRDOAnalysis.h:67
LArRDOAnalysis::m_emSamples
std::vector< float > * m_emSamples
Definition: LArRDOAnalysis.h:55
LArRDOAnalysis::m_digiSamples
std::vector< short > * m_digiSamples
Definition: LArRDOAnalysis.h:59
LArRDOAnalysis::m_h_hadOnID
TH1 * m_h_hadOnID
Definition: LArRDOAnalysis.h:68
LArRawChannelContainer.h
LArRDOAnalysis::m_digiID
std::vector< unsigned long long > * m_digiID
Definition: LArRDOAnalysis.h:57
LArRawChannelContainer
Container for LArRawChannel (IDC using LArRawChannelCollection)
Definition: LArRawChannelContainer.h:26
ServiceHandle< ITHistSvc >
LArRDOAnalysis::m_ntupleTreeName
std::string m_ntupleTreeName
Definition: LArRDOAnalysis.h:81