ATLAS Offline Software
Loading...
Searching...
No Matches
SpacePointAnalysis.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRACKING_TRKCLUSTERANALYSIS_SPACEPOINTANALYSIS_H
6#define TRACKING_TRKCLUSTERANALYSIS_SPACEPOINTANALYSIS_H
7
9#include "GaudiKernel/ServiceHandle.h"
10#include "GaudiKernel/ITHistSvc.h"
12
15
16#include <string>
17#include <vector>
18#include "TH1.h"
19#include "TH2.h"
20#include "TProfile.h"
21
22class TTree;
23class PixelID;
24class SCT_ID;
25
27
28public:
29 SpacePointAnalysis(const std::string& name, ISvcLocator* pSvcLocator);
31
32 virtual StatusCode initialize() override final;
33 virtual StatusCode execute() override final;
34 virtual unsigned int cardinality() const override { return 1; }
35
36private:
37 SG::ReadHandleKey<SpacePointContainer> m_inputKey{this, "InputKey", "PixelSpacePoints", "Key of input space points"};
38 SG::ReadHandleKey<SpacePointOverlapCollection> m_inputOverlapKey{this, "InputOverlapKey", "OverlapSpacePoints", "Key of input for overlap space points"};
40 const SCT_ID *m_stripID{};
41
42 std::vector<int>* m_barrelEndcap{};
43 std::vector<int>* m_layerDisk{};
44 std::vector<int>* m_phiModule{};
45 std::vector<int>* m_etaModule{};
46 std::vector<int>* m_sideModule{};
47 std::vector<int>* m_isInnermost{};
48 std::vector<int>* m_isNextToInnermost{};
49 std::vector<int>* m_isOverlap{};
50 std::vector<double>* m_eta{};
51 std::vector<double>* m_globalX{};
52 std::vector<double>* m_globalY{};
53 std::vector<double>* m_globalZ{};
54 std::vector<double>* m_globalCovXX{};
55 std::vector<double>* m_globalCovYY{};
56 std::vector<double>* m_globalCovZZ{};
57 std::vector<double>* m_globalCovXY{};
58 std::vector<double>* m_globalCovXZ{};
59 std::vector<double>* m_globalCovYX{};
60 std::vector<double>* m_globalCovYZ{};
61 std::vector<double>* m_globalCovZX{};
62 std::vector<double>* m_globalCovZY{};
63
66
67 TTree* m_tree{};
68 StringProperty m_ntupleFileName{this, "NtupleFileName", "/ntuples/file1", "Output filename"};
69 StringProperty m_ntupleDirName{this, "NtupleDirectoryName", "/SpacePointAnalysis/", "Directory name in output file"};
70 StringProperty m_ntupleTreeName{this, "NtupleTreeName", "SpacePointAna", "Tree name in output file"};
71 StringProperty m_path{this, "HistPath", "/SpacePointAnalysis/", "Full path in output file"};
72 ServiceHandle<ITHistSvc> m_thistSvc { this, "THistSvc", "THistSvc", "Histogramming svc" };
73
74 BooleanProperty m_usePixel{this, "UsePixel", true, "enable use of pixel ID or SCT ID"};
75 BooleanProperty m_useOverlap{this, "UseOverlap", true, "enable use of overlap for SCT ID"};
76
77};
78
79#endif // TRACKING_TRKCLUSTERANALYSIS_SPACEPOINTANALYSIS_H
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 Pixel subdetector.
Definition PixelID.h:67
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
Property holding a SG store/key/clid from which a ReadHandle is made.
std::vector< double > * m_globalY
StringProperty m_ntupleTreeName
std::vector< double > * m_globalZ
SpacePointAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
std::vector< double > * m_globalCovZY
std::vector< int > * m_layerDisk
std::vector< int > * m_isInnermost
std::vector< double > * m_globalCovXX
BooleanProperty m_useOverlap
const PixelID * m_pixelID
std::vector< double > * m_globalCovZZ
std::vector< double > * m_eta
StringProperty m_ntupleFileName
std::vector< double > * m_globalX
std::vector< int > * m_barrelEndcap
virtual StatusCode initialize() override final
const SCT_ID * m_stripID
std::vector< int > * m_sideModule
std::vector< int > * m_phiModule
std::vector< double > * m_globalCovYZ
std::vector< int > * m_isOverlap
SG::ReadHandleKey< SpacePointOverlapCollection > m_inputOverlapKey
std::vector< double > * m_globalCovXY
SG::ReadHandleKey< SpacePointContainer > m_inputKey
std::vector< double > * m_globalCovYX
BooleanProperty m_usePixel
virtual unsigned int cardinality() const override
std::vector< int > * m_etaModule
virtual StatusCode execute() override final
std::vector< double > * m_globalCovZX
std::vector< int > * m_isNextToInnermost
std::vector< double > * m_globalCovYY
std::vector< double > * m_globalCovXZ
StringProperty m_ntupleDirName
ServiceHandle< ITHistSvc > m_thistSvc