ATLAS Offline Software
PixelFastRDOAnalysis.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 PIXEL_FAST_RDO_ANALYSIS_H
7 #define PIXEL_FAST_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 
26 
27 public:
28  PixelFastRDOAnalysis(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:
37  // PixelCluster
38  std::vector<float>* m_omegax;
39  std::vector<float>* m_omegay;
40  std::vector<int>* m_tot;
41  std::vector<int>* m_totalTot;
42  std::vector<float>* m_charge;
43  std::vector<float>* m_totalCharge;
44  std::vector<float>* m_eLoss;
45  std::vector<bool>* m_fake;
46  std::vector<bool>* m_ambig;
47  std::vector<bool>* m_split;
48  std::vector<double>* m_splitProb1;
49  std::vector<double>* m_splitProb2;
50  std::vector<int>* m_splitInfoRaw;
51  std::vector<int>* m_LVL1A;
52 
53  // SiCluster - SiWidth + SiDetectorElement
54  std::vector<float>* m_siCol;
55  std::vector<float>* m_siRow;
56  std::vector<float>* m_siPhiR;
57  std::vector<float>* m_siZ;
58  std::vector<float>* m_siPos_x;
59  std::vector<float>* m_siPos_y;
60  std::vector<float>* m_siPos_z;
61  std::vector<bool>* m_siGangPix;
62  std::vector<unsigned long long>* m_siDetID;
63  std::vector<bool>* m_siDetPix;
64  std::vector<bool>* m_siDetSCT;
65  std::vector<bool>* m_siDetBrl;
66  std::vector<bool>* m_siDetEc;
67  std::vector<bool>* m_siDetBlay;
68  std::vector<bool>* m_siDetInPixLay;
70  std::vector<bool>* m_siDetDBM;
71  std::vector<double>* m_siDetHitDepthDir;
72  std::vector<double>* m_siDetHitPhiDir;
73  std::vector<double>* m_siDetHitEtaDir;
74  std::vector<double>* m_siDetMinR;
75  std::vector<double>* m_siDetMaxR;
76  std::vector<double>* m_siDetMinZ;
77  std::vector<double>* m_siDetMaxZ;
78  std::vector<double>* m_siDetMinPhi;
79  std::vector<double>* m_siDetMaxPhi;
80  std::vector<double>* m_siDetWidth;
81  std::vector<double>* m_siDetMinWidth;
82  std::vector<double>* m_siDetMaxWidth;
83  std::vector<double>* m_siDetLength;
84  std::vector<double>* m_siDetThick;
85  std::vector<double>* m_siDetEtaPitch;
86  std::vector<double>* m_siDetPhiPitch;
87 
88  // Trk::PrepRawData
89  std::vector<unsigned long long>* m_clusID;
90  std::vector<float>* m_locpos_x;
91  std::vector<float>* m_locpos_y;
92  std::vector<unsigned long long>* m_rdoID_prd;
93 
94  // HISTOGRAMS
95  TH1* m_h_omegax;
96  TH1* m_h_omegay;
97  TH1* m_h_tot;
99  TH1* m_h_charge;
101  TH1* m_h_eLoss;
102  TH1* m_h_fake;
103  TH1* m_h_ambig;
104  TH1* m_h_split;
108  TH1* m_h_LVL1A;
109  TH1* m_h_siCol;
110  TH1* m_h_siRow;
112  TH1* m_h_siZ;
146 
147 
148 
149  TTree* m_tree;
150  std::string m_ntupleFileName;
151  std::string m_ntupleDirName;
152  std::string m_ntupleTreeName;
153  std::string m_path;
155 };
156 
157 #endif // PIXEL_FAST_RDO_ANALYSIS_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
PixelFastRDOAnalysis::m_omegax
std::vector< float > * m_omegax
Definition: PixelFastRDOAnalysis.h:38
PixelFastRDOAnalysis::m_h_siCol
TH1 * m_h_siCol
Definition: PixelFastRDOAnalysis.h:109
PixelFastRDOAnalysis::m_h_siDetMinPhi
TH1 * m_h_siDetMinPhi
Definition: PixelFastRDOAnalysis.h:133
PixelFastRDOAnalysis::m_h_siDetMaxR
TH1 * m_h_siDetMaxR
Definition: PixelFastRDOAnalysis.h:130
PixelFastRDOAnalysis::m_splitProb2
std::vector< double > * m_splitProb2
Definition: PixelFastRDOAnalysis.h:49
PixelFastRDOAnalysis::m_splitInfoRaw
std::vector< int > * m_splitInfoRaw
Definition: PixelFastRDOAnalysis.h:50
PixelFastRDOAnalysis::m_h_siDetID
TH1 * m_h_siDetID
Definition: PixelFastRDOAnalysis.h:117
PixelFastRDOAnalysis::m_h_siDetDBM
TH1 * m_h_siDetDBM
Definition: PixelFastRDOAnalysis.h:125
PixelFastRDOAnalysis::m_h_siDetBlay
TH1 * m_h_siDetBlay
Definition: PixelFastRDOAnalysis.h:122
PixelFastRDOAnalysis::m_h_siDetMinZ
TH1 * m_h_siDetMinZ
Definition: PixelFastRDOAnalysis.h:131
PixelFastRDOAnalysis::m_h_siZ
TH1 * m_h_siZ
Definition: PixelFastRDOAnalysis.h:112
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
PixelFastRDOAnalysis::m_h_locpos_x
TH1 * m_h_locpos_x
Definition: PixelFastRDOAnalysis.h:143
PixelFastRDOAnalysis::m_h_omegay
TH1 * m_h_omegay
Definition: PixelFastRDOAnalysis.h:96
PixelFastRDOAnalysis::initialize
virtual StatusCode initialize() override final
Definition: PixelFastRDOAnalysis.cxx:139
PixelFastRDOAnalysis::m_totalTot
std::vector< int > * m_totalTot
Definition: PixelFastRDOAnalysis.h:41
PixelFastRDOAnalysis::m_tree
TTree * m_tree
Definition: PixelFastRDOAnalysis.h:149
PixelFastRDOAnalysis::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: PixelFastRDOAnalysis.h:154
PixelFastRDOAnalysis::m_h_charge
TH1 * m_h_charge
Definition: PixelFastRDOAnalysis.h:99
PixelFastRDOAnalysis::m_h_siDetMaxPhi
TH1 * m_h_siDetMaxPhi
Definition: PixelFastRDOAnalysis.h:134
PixelFastRDOAnalysis::m_LVL1A
std::vector< int > * m_LVL1A
Definition: PixelFastRDOAnalysis.h:51
PixelFastRDOAnalysis::m_ntupleDirName
std::string m_ntupleDirName
Definition: PixelFastRDOAnalysis.h:151
PixelFastRDOAnalysis::m_ntupleTreeName
std::string m_ntupleTreeName
Definition: PixelFastRDOAnalysis.h:152
PixelFastRDOAnalysis::m_siDetPix
std::vector< bool > * m_siDetPix
Definition: PixelFastRDOAnalysis.h:63
PixelFastRDOAnalysis::finalize
virtual StatusCode finalize() override final
Definition: PixelFastRDOAnalysis.cxx:690
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
PixelFastRDOAnalysis::m_siDetEc
std::vector< bool > * m_siDetEc
Definition: PixelFastRDOAnalysis.h:66
PixelFastRDOAnalysis::m_h_siDetHitEtaDir
TH1 * m_h_siDetHitEtaDir
Definition: PixelFastRDOAnalysis.h:128
PixelFastRDOAnalysis::m_h_splitProb1
TH1 * m_h_splitProb1
Definition: PixelFastRDOAnalysis.h:105
PixelFastRDOAnalysis::m_h_clusID
TH1 * m_h_clusID
Definition: PixelFastRDOAnalysis.h:142
PixelFastRDOAnalysis::m_h_siDetEtaPitch
TH1 * m_h_siDetEtaPitch
Definition: PixelFastRDOAnalysis.h:140
PixelFastRDOAnalysis::m_split
std::vector< bool > * m_split
Definition: PixelFastRDOAnalysis.h:47
PixelFastRDOAnalysis::m_inputKey
SG::ReadHandleKey< InDet::PixelClusterContainer > m_inputKey
Definition: PixelFastRDOAnalysis.h:36
PixelFastRDOAnalysis::m_h_siDetThick
TH1 * m_h_siDetThick
Definition: PixelFastRDOAnalysis.h:139
PixelFastRDOAnalysis::m_h_splitInfoRaw
TH1 * m_h_splitInfoRaw
Definition: PixelFastRDOAnalysis.h:107
PixelFastRDOAnalysis::m_h_splitProb2
TH1 * m_h_splitProb2
Definition: PixelFastRDOAnalysis.h:106
PixelFastRDOAnalysis::m_siDetBrl
std::vector< bool > * m_siDetBrl
Definition: PixelFastRDOAnalysis.h:65
PixelFastRDOAnalysis::m_clusID
std::vector< unsigned long long > * m_clusID
Definition: PixelFastRDOAnalysis.h:89
PixelFastRDOAnalysis::m_h_siDetBrl
TH1 * m_h_siDetBrl
Definition: PixelFastRDOAnalysis.h:120
PixelFastRDOAnalysis::PixelFastRDOAnalysis
PixelFastRDOAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PixelFastRDOAnalysis.cxx:17
PixelFastRDOAnalysis::m_h_LVL1A
TH1 * m_h_LVL1A
Definition: PixelFastRDOAnalysis.h:108
PixelFastRDOAnalysis::m_h_siGangPix
TH1 * m_h_siGangPix
Definition: PixelFastRDOAnalysis.h:116
PixelFastRDOAnalysis::m_siDetMinZ
std::vector< double > * m_siDetMinZ
Definition: PixelFastRDOAnalysis.h:76
PixelFastRDOAnalysis::m_siDetThick
std::vector< double > * m_siDetThick
Definition: PixelFastRDOAnalysis.h:84
PixelFastRDOAnalysis::m_h_tot
TH1 * m_h_tot
Definition: PixelFastRDOAnalysis.h:97
PixelFastRDOAnalysis::m_h_ambig
TH1 * m_h_ambig
Definition: PixelFastRDOAnalysis.h:103
PixelFastRDOAnalysis::m_h_siDetMaxWidth
TH1 * m_h_siDetMaxWidth
Definition: PixelFastRDOAnalysis.h:137
PixelFastRDOAnalysis::m_siDetHitPhiDir
std::vector< double > * m_siDetHitPhiDir
Definition: PixelFastRDOAnalysis.h:72
PixelFastRDOAnalysis::m_tot
std::vector< int > * m_tot
Definition: PixelFastRDOAnalysis.h:40
PixelFastRDOAnalysis::m_siPos_y
std::vector< float > * m_siPos_y
Definition: PixelFastRDOAnalysis.h:59
AthAlgorithm.h
PixelFastRDOAnalysis::m_siDetHitDepthDir
std::vector< double > * m_siDetHitDepthDir
Definition: PixelFastRDOAnalysis.h:71
PixelFastRDOAnalysis::m_rdoID_prd
std::vector< unsigned long long > * m_rdoID_prd
Definition: PixelFastRDOAnalysis.h:92
PixelFastRDOAnalysis::m_siDetMinR
std::vector< double > * m_siDetMinR
Definition: PixelFastRDOAnalysis.h:74
PixelFastRDOAnalysis::m_totalCharge
std::vector< float > * m_totalCharge
Definition: PixelFastRDOAnalysis.h:43
PixelFastRDOAnalysis::m_siGangPix
std::vector< bool > * m_siGangPix
Definition: PixelFastRDOAnalysis.h:61
PixelGangedClusterAmbiguities.h
PixelFastRDOAnalysis::m_h_siDetPhiPitch
TH1 * m_h_siDetPhiPitch
Definition: PixelFastRDOAnalysis.h:141
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
vector
Definition: MultiHisto.h:13
PixelFastRDOAnalysis::m_siDetNtInPixLay
std::vector< bool > * m_siDetNtInPixLay
Definition: PixelFastRDOAnalysis.h:69
PixelFastRDOAnalysis::m_h_siDetHitPhiDir
TH1 * m_h_siDetHitPhiDir
Definition: PixelFastRDOAnalysis.h:127
PixelFastRDOAnalysis::m_h_rdoID_prd
TH1 * m_h_rdoID_prd
Definition: PixelFastRDOAnalysis.h:145
PixelFastRDOAnalysis::m_siDetBlay
std::vector< bool > * m_siDetBlay
Definition: PixelFastRDOAnalysis.h:67
PixelFastRDOAnalysis::m_h_siDetSCT
TH1 * m_h_siDetSCT
Definition: PixelFastRDOAnalysis.h:119
PixelFastRDOAnalysis::m_h_fake
TH1 * m_h_fake
Definition: PixelFastRDOAnalysis.h:102
PixelFastRDOAnalysis::m_h_siDetMinR
TH1 * m_h_siDetMinR
Definition: PixelFastRDOAnalysis.h:129
PixelFastRDOAnalysis::m_siDetMaxR
std::vector< double > * m_siDetMaxR
Definition: PixelFastRDOAnalysis.h:75
PixelFastRDOAnalysis::m_omegay
std::vector< float > * m_omegay
Definition: PixelFastRDOAnalysis.h:39
PixelFastRDOAnalysis::m_siPhiR
std::vector< float > * m_siPhiR
Definition: PixelFastRDOAnalysis.h:56
PixelFastRDOAnalysis::m_siDetMaxPhi
std::vector< double > * m_siDetMaxPhi
Definition: PixelFastRDOAnalysis.h:79
PixelFastRDOAnalysis::m_siPos_x
std::vector< float > * m_siPos_x
Definition: PixelFastRDOAnalysis.h:58
PixelFastRDOAnalysis::m_siDetMaxZ
std::vector< double > * m_siDetMaxZ
Definition: PixelFastRDOAnalysis.h:77
AthAlgorithm
Definition: AthAlgorithm.h:47
PixelFastRDOAnalysis::m_h_split
TH1 * m_h_split
Definition: PixelFastRDOAnalysis.h:104
PixelFastRDOAnalysis::m_eLoss
std::vector< float > * m_eLoss
Definition: PixelFastRDOAnalysis.h:44
PixelFastRDOAnalysis::m_h_totalCharge
TH1 * m_h_totalCharge
Definition: PixelFastRDOAnalysis.h:100
PixelFastRDOAnalysis::m_h_totalTot
TH1 * m_h_totalTot
Definition: PixelFastRDOAnalysis.h:98
PixelFastRDOAnalysis::m_siDetSCT
std::vector< bool > * m_siDetSCT
Definition: PixelFastRDOAnalysis.h:64
PixelFastRDOAnalysis::m_siDetMinWidth
std::vector< double > * m_siDetMinWidth
Definition: PixelFastRDOAnalysis.h:81
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
xAOD::PixelClusterContainer
PixelClusterContainer_v1 PixelClusterContainer
Define the version of the pixel cluster container.
Definition: Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/PixelClusterContainer.h:14
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
PixelClusterContainer.h
PixelFastRDOAnalysis::m_siDetHitEtaDir
std::vector< double > * m_siDetHitEtaDir
Definition: PixelFastRDOAnalysis.h:73
PixelFastRDOAnalysis::m_h_siPos_y
TH1 * m_h_siPos_y
Definition: PixelFastRDOAnalysis.h:114
PixelFastRDOAnalysis::m_h_eLoss
TH1 * m_h_eLoss
Definition: PixelFastRDOAnalysis.h:101
PixelFastRDOAnalysis::~PixelFastRDOAnalysis
~PixelFastRDOAnalysis()
Definition: PixelFastRDOAnalysis.h:29
PixelFastRDOAnalysis::m_siDetEtaPitch
std::vector< double > * m_siDetEtaPitch
Definition: PixelFastRDOAnalysis.h:85
PixelFastRDOAnalysis::m_siDetWidth
std::vector< double > * m_siDetWidth
Definition: PixelFastRDOAnalysis.h:80
PixelFastRDOAnalysis::m_h_siDetHitDepthDir
TH1 * m_h_siDetHitDepthDir
Definition: PixelFastRDOAnalysis.h:126
PixelFastRDOAnalysis::m_fake
std::vector< bool > * m_fake
Definition: PixelFastRDOAnalysis.h:45
PixelFastRDOAnalysis::m_h_siDetPix
TH1 * m_h_siDetPix
Definition: PixelFastRDOAnalysis.h:118
PixelFastRDOAnalysis::m_h_siPos_z
TH1 * m_h_siPos_z
Definition: PixelFastRDOAnalysis.h:115
PixelFastRDOAnalysis::execute
virtual StatusCode execute() override final
Definition: PixelFastRDOAnalysis.cxx:423
PixelFastRDOAnalysis::m_siZ
std::vector< float > * m_siZ
Definition: PixelFastRDOAnalysis.h:57
PixelFastRDOAnalysis::m_h_siDetEc
TH1 * m_h_siDetEc
Definition: PixelFastRDOAnalysis.h:121
PixelFastRDOAnalysis::m_h_siDetLength
TH1 * m_h_siDetLength
Definition: PixelFastRDOAnalysis.h:138
PixelFastRDOAnalysis
Definition: PixelFastRDOAnalysis.h:25
PixelFastRDOAnalysis::m_siDetPhiPitch
std::vector< double > * m_siDetPhiPitch
Definition: PixelFastRDOAnalysis.h:86
PixelFastRDOAnalysis::m_siPos_z
std::vector< float > * m_siPos_z
Definition: PixelFastRDOAnalysis.h:60
PixelFastRDOAnalysis::m_siDetMinPhi
std::vector< double > * m_siDetMinPhi
Definition: PixelFastRDOAnalysis.h:78
PixelFastRDOAnalysis::m_ntupleFileName
std::string m_ntupleFileName
Definition: PixelFastRDOAnalysis.h:150
PixelFastRDOAnalysis::m_siDetInPixLay
std::vector< bool > * m_siDetInPixLay
Definition: PixelFastRDOAnalysis.h:68
PixelFastRDOAnalysis::m_h_siPos_x
TH1 * m_h_siPos_x
Definition: PixelFastRDOAnalysis.h:113
PixelFastRDOAnalysis::m_siCol
std::vector< float > * m_siCol
Definition: PixelFastRDOAnalysis.h:54
PixelFastRDOAnalysis::m_h_siPhiR
TH1 * m_h_siPhiR
Definition: PixelFastRDOAnalysis.h:111
PixelFastRDOAnalysis::m_h_siDetMaxZ
TH1 * m_h_siDetMaxZ
Definition: PixelFastRDOAnalysis.h:132
PixelFastRDOAnalysis::m_splitProb1
std::vector< double > * m_splitProb1
Definition: PixelFastRDOAnalysis.h:48
PixelFastRDOAnalysis::m_h_siDetWidth
TH1 * m_h_siDetWidth
Definition: PixelFastRDOAnalysis.h:135
PixelFastRDOAnalysis::m_siDetID
std::vector< unsigned long long > * m_siDetID
Definition: PixelFastRDOAnalysis.h:62
PixelFastRDOAnalysis::m_h_siRow
TH1 * m_h_siRow
Definition: PixelFastRDOAnalysis.h:110
PRD_MultiTruthCollection.h
PixelFastRDOAnalysis::m_charge
std::vector< float > * m_charge
Definition: PixelFastRDOAnalysis.h:42
PixelFastRDOAnalysis::m_siRow
std::vector< float > * m_siRow
Definition: PixelFastRDOAnalysis.h:55
PixelFastRDOAnalysis::m_siDetLength
std::vector< double > * m_siDetLength
Definition: PixelFastRDOAnalysis.h:83
PixelFastRDOAnalysis::m_h_siDetInPixLay
TH1 * m_h_siDetInPixLay
Definition: PixelFastRDOAnalysis.h:123
PixelFastRDOAnalysis::m_h_siDetNtInPixLay
TH1 * m_h_siDetNtInPixLay
Definition: PixelFastRDOAnalysis.h:124
PixelFastRDOAnalysis::m_siDetDBM
std::vector< bool > * m_siDetDBM
Definition: PixelFastRDOAnalysis.h:70
PixelFastRDOAnalysis::m_h_omegax
TH1 * m_h_omegax
Definition: PixelFastRDOAnalysis.h:95
PixelFastRDOAnalysis::m_locpos_x
std::vector< float > * m_locpos_x
Definition: PixelFastRDOAnalysis.h:90
PixelFastRDOAnalysis::m_locpos_y
std::vector< float > * m_locpos_y
Definition: PixelFastRDOAnalysis.h:91
PixelFastRDOAnalysis::m_path
std::string m_path
Definition: PixelFastRDOAnalysis.h:153
PixelFastRDOAnalysis::m_ambig
std::vector< bool > * m_ambig
Definition: PixelFastRDOAnalysis.h:46
PixelFastRDOAnalysis::m_h_siDetMinWidth
TH1 * m_h_siDetMinWidth
Definition: PixelFastRDOAnalysis.h:136
PixelFastRDOAnalysis::m_siDetMaxWidth
std::vector< double > * m_siDetMaxWidth
Definition: PixelFastRDOAnalysis.h:82
ServiceHandle
Definition: ClusterMakerTool.h:37
PixelFastRDOAnalysis::m_h_locpos_y
TH1 * m_h_locpos_y
Definition: PixelFastRDOAnalysis.h:144