ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_RDOAnalysis.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef SCT_RDO_ANALYSIS_H
6#define SCT_RDO_ANALYSIS_H
7
9
16
17#include "GaudiKernel/ServiceHandle.h"
18#include "GaudiKernel/ITHistSvc.h"
19
20#include "TH1.h"
21#include "TH2.h"
22
23#include <string>
24#include <vector>
25
26class TTree;
27class SCT_ID;
28
30
31 public:
32 SCT_RDOAnalysis(const std::string& name, ISvcLocator* pSvcLocator);
33 ~SCT_RDOAnalysis() = default;
34
35 virtual StatusCode initialize() override final;
36 virtual StatusCode execute() override final;
37 virtual StatusCode finalize() override final;
38
39 private:
40 SG::ReadHandleKey<SCT_RDO_Container> m_inputKey{this, "InputKey", "SCT_RDOs"};
41 SG::ReadHandleKey<InDetSimDataCollection> m_inputTruthKey{this, "InputTruthKey", "SCT_SDO_Map"};
42 SG::ReadHandleKey<McEventCollection> m_inputMcEventCollectionKey{this, "InputMcEventCollectionKey", "TruthEvent"};
44 // RDO
45 std::vector<unsigned long long>* m_rdoID;
46 std::vector<unsigned int>* m_rdoWord;
47 // SCT_ID
48 std::vector<int>* m_barrelEndcap;
49 std::vector<int>* m_layerDisk;
50 std::vector<int>* m_phiModule;
51 std::vector<int>* m_etaModule;
52 std::vector<int>* m_side;
53 std::vector<int>* m_strip;
54 // SCT_RDORawData
55 std::vector<int>* m_groupSize;
56 // SDO
57 std::vector<unsigned long long>* m_sdoID;
58 std::vector<int>* m_sdoWord;
59 // SCT_ID
60 std::vector<int>* m_barrelEndcap_sdo;
61 std::vector<int>* m_layerDisk_sdo;
62 std::vector<int>* m_phiModule_sdo;
63 std::vector<int>* m_etaModule_sdo;
64 std::vector<int>* m_side_sdo;
65 std::vector<int>* m_strip_sdo;
66 // SCT_SimHelper
67 std::vector<bool>* m_noise;
68 std::vector<bool>* m_belowThresh;
69 std::vector<bool>* m_disabled;
70 // Deposit - particle link + energy (charge)
71 std::vector<int>* m_barcode;
72 std::vector<int>* m_eventIndex;
73 std::vector<float>* m_charge;
74 std::vector<std::vector<int>>* m_barcode_vec;
75 std::vector<std::vector<int>>* m_eventIndex_vec;
76 std::vector<std::vector<float>>* m_charge_vec;
77
78 // HISTOGRAMS
89 // barrel SCT
97 // endcap SCT
105
119
120
121 TTree* m_tree;
122 StringProperty m_ntupleFileName{this, "NtupleFileName", "/ntuples/file1"};
123 StringProperty m_ntupleDirName{this, "NtupleDirectoryName", "/SCT_RDOAnalysis/"};
124 StringProperty m_ntupleTreeName{this, "NtupleTreeName", "SCT_RDOAna"};
125 StringProperty m_path{this, "HistPath", "/SCT_RDOAnalysis/"};
127
128};
129
130#endif // SCT_RDO_ANALYSIS_H
InDetRawDataContainer< InDetRawDataCollection< SCT_RDORawData > > SCT_RDO_Container
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
std::vector< std::vector< float > > * m_charge_vec
std::vector< int > * m_side
std::vector< std::vector< int > > * m_eventIndex_vec
std::vector< int > * m_phiModule_sdo
StringProperty m_path
std::vector< int > * m_barrelEndcap
SG::ReadHandleKey< McEventCollection > m_inputMcEventCollectionKey
std::vector< int > * m_strip_sdo
StringProperty m_ntupleDirName
std::vector< int > * m_groupSize
virtual StatusCode execute() override final
std::vector< int > * m_eventIndex
std::vector< int > * m_layerDisk
std::vector< int > * m_side_sdo
std::vector< unsigned int > * m_rdoWord
std::vector< unsigned long long > * m_rdoID
ServiceHandle< ITHistSvc > m_thistSvc
std::vector< bool > * m_noise
std::vector< int > * m_phiModule
std::vector< int > * m_barrelEndcap_sdo
std::vector< int > * m_strip
std::vector< bool > * m_belowThresh
StringProperty m_ntupleTreeName
std::vector< std::vector< int > > * m_barcode_vec
const SCT_ID * m_sctID
SG::ReadHandleKey< SCT_RDO_Container > m_inputKey
std::vector< int > * m_layerDisk_sdo
StringProperty m_ntupleFileName
std::vector< int > * m_etaModule_sdo
std::vector< unsigned long long > * m_sdoID
std::vector< float > * m_charge
std::vector< int > * m_etaModule
SG::ReadHandleKey< InDetSimDataCollection > m_inputTruthKey
virtual StatusCode finalize() override final
std::vector< bool > * m_disabled
SCT_RDOAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override final
std::vector< int > * m_sdoWord
std::vector< int > * m_barcode
~SCT_RDOAnalysis()=default
Property holding a SG store/key/clid from which a ReadHandle is made.
Forward declaration.
#define private