ATLAS Offline Software
Loading...
Searching...
No Matches
LArRDOAnalysis.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6#ifndef LAR_RDO_ANALYSIS_H
7#define LAR_RDO_ANALYSIS_H
8
11
15#include <vector>
16#include <cstdint>
17
18class TH1;
19class TTree;
20
22
23public:
25 ~LArRDOAnalysis() = default;
26
27 virtual StatusCode initialize() override final;
28 virtual StatusCode execute() override final;
29
31
32 SG::ReadHandleKey<LArRawChannelContainer> m_inputRawChannelKey{this, "InputRawChannelKey", "LArRawChannels"};
33 SG::ReadHandleKey<LArTTL1Container> m_inputTTL1HADKey{this, "InputTTL1HADKey", "LArTTL1HAD"};
34 SG::ReadHandleKey<LArTTL1Container> m_inputTTL1EMKey{this, "InputTTL1EMKey", "LArTTL1EM"};
35 SG::ReadHandleKey<LArDigitContainer> m_inputDigitKey{this, "InputDigitKey", "LArDigitContainer_MC_Thinned"};
36 BooleanProperty m_presampling{this, "PreSampling", false};
37
38 Gaudi::Property<bool> m_doNtuple{this , "doNtuple" , true};
39 Gaudi::Property<std::string> m_ntupleFileName{this , "NtupleFileName" , "/ntuples/file1"};
40 Gaudi::Property<std::string> m_ntupleDirName{this , "NtupleDirectoryName" , "/LArRDOAnalysis/"};
41 Gaudi::Property<std::string> m_ntupleTreeName{this , "NtupleTreeName" , "LArRDOAna"};
42 Gaudi::Property<std::string> m_path{this , "HistPath" , "/LArRDOAnalysis/"};
43
44
45 // LAR RAW CHANNELS
46 std::vector<unsigned long long>* m_larID{nullptr};
47 std::vector<int>* m_energy{nullptr};
48 std::vector<int>* m_time{nullptr};
49 std::vector<uint16_t>* m_qual{nullptr};
50 std::vector<uint16_t>* m_prov{nullptr};
51 std::vector<int>* m_gain{nullptr};
52 // LAR TTL1
53 std::vector<unsigned long long>* m_hadOnID{nullptr};
54 std::vector<unsigned long long>* m_hadOffID{nullptr};
55 std::vector<float>* m_hadSamples{nullptr};
56 std::vector<unsigned long long>* m_emOnID{nullptr};
57 std::vector<unsigned long long>* m_emOffID{nullptr};
58 std::vector<float>* m_emSamples{nullptr};
59 // LAR DIGITS
60 std::vector<unsigned long long>* m_digiID{nullptr};
61 std::vector<int>* m_digiGain{nullptr};
62 std::vector<short>* m_digiSamples{nullptr};
63
64 // HISTOGRAMS
65 TH1* m_h_larID{nullptr};
66 TH1* m_h_energy{nullptr};
67 TH1* m_h_time{nullptr};
68 TH1* m_h_qual{nullptr};
69 TH1* m_h_prov{nullptr};
70 TH1* m_h_gain{nullptr};
71 TH1* m_h_hadOnID{nullptr};
72 TH1* m_h_hadOffID{nullptr};
73 TH1* m_h_hadSamples{nullptr};
74 TH1* m_h_emOnID{nullptr};
75 TH1* m_h_emOffID{nullptr};
76 TH1* m_h_emSamples{nullptr};
77 TH1* m_h_digiID{nullptr};
78 TH1* m_h_digiGain{nullptr};
79 TH1* m_h_digiSamples{nullptr};
80
81 TTree *m_tree{nullptr};
82
83};
84
85#endif // LAR_RDO_ANALYSIS_H
Property holding a SG store/key/clid from which a ReadHandle is made.
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
BooleanProperty m_presampling
std::vector< int > * m_digiGain
Gaudi::Property< std::string > m_ntupleFileName
Gaudi::Property< bool > m_doNtuple
std::vector< uint16_t > * m_qual
SG::ReadHandleKey< LArTTL1Container > m_inputTTL1EMKey
~LArRDOAnalysis()=default
std::vector< unsigned long long > * m_digiID
std::vector< float > * m_emSamples
virtual StatusCode initialize() override final
std::vector< unsigned long long > * m_emOnID
std::vector< unsigned long long > * m_emOffID
Gaudi::Property< std::string > m_path
SG::ReadHandleKey< LArTTL1Container > m_inputTTL1HADKey
std::vector< int > * m_gain
std::vector< unsigned long long > * m_larID
std::vector< int > * m_energy
std::vector< uint16_t > * m_prov
Gaudi::Property< std::string > m_ntupleTreeName
Gaudi::Property< std::string > m_ntupleDirName
std::vector< int > * m_time
std::vector< unsigned long long > * m_hadOnID
SG::ReadHandleKey< LArRawChannelContainer > m_inputRawChannelKey
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::vector< unsigned long long > * m_hadOffID
std::vector< float > * m_hadSamples
virtual StatusCode execute() override final
std::vector< short > * m_digiSamples
SG::ReadHandleKey< LArDigitContainer > m_inputDigitKey
Container for LArRawChannel (IDC using LArRawChannelCollection)
Property holding a SG store/key/clid from which a ReadHandle is made.
Forward declaration.
#define private