ATLAS Offline Software
Loading...
Searching...
No Matches
PixelClusterAnalysis.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_PIXELCLUSTERANALYSIS_H
6#define TRACKING_TRKCLUSTERANALYSIS_PIXELCLUSTERANALYSIS_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;
24
26
27public:
28 PixelClusterAnalysis(const std::string& name, ISvcLocator* pSvcLocator);
30
31 virtual StatusCode initialize() override final;
32 virtual StatusCode execute() override final;
33 virtual unsigned int cardinality() const override { return 1; }
34
35private:
36 SG::ReadHandleKey<InDet::PixelClusterContainer> m_inputKey{this, "InputKey", "PixelClusters", "Key of input pixel clusters"};
38
39 std::vector<int>* m_barrelEndcap{};
40 std::vector<int>* m_layerDisk{};
41 std::vector<int>* m_phiModule{};
42 std::vector<int>* m_etaModule{};
43 std::vector<int>* m_isInnermost{};
44 std::vector<int>* m_isNextToInnermost{};
45 std::vector<double>* m_eta{};
46 std::vector<double>* m_globalX{};
47 std::vector<double>* m_globalY{};
48 std::vector<double>* m_globalZ{};
49 std::vector<double>* m_localX{};
50 std::vector<double>* m_localY{};
51 std::vector<double>* m_localCovXX{};
52 std::vector<double>* m_localCovYY{};
53 std::vector<int>* m_sizeX{};
54 std::vector<int>* m_sizeY{};
55
58
59 TTree* m_tree{};
60 StringProperty m_ntupleFileName{this, "NtupleFileName", "/ntuples/file1", "Output filename"};
61 StringProperty m_ntupleDirName{this, "NtupleDirectoryName", "/PixelClusterAnalysis/", "Directory name in output file"};
62 StringProperty m_ntupleTreeName{this, "NtupleTreeName", "PixelClusterAna", "Tree name in output file"};
63 StringProperty m_path{this, "HistPath", "/PixelClusterAnalysis/", "Full path in output file"};
64 ServiceHandle<ITHistSvc> m_thistSvc { this, "THistSvc", "THistSvc", "Histogramming svc" };
65
66};
67
68#endif // TRACKING_TRKCLUSTERANALYSIS_PIXELCLUSTERANALYSIS_H
This is an Identifier helper class for the Pixel subdetector.
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::vector< double > * m_globalX
std::vector< double > * m_localCovXX
virtual unsigned int cardinality() const override
ServiceHandle< ITHistSvc > m_thistSvc
virtual StatusCode execute() override final
std::vector< double > * m_eta
std::vector< double > * m_localX
std::vector< int > * m_isNextToInnermost
SG::ReadHandleKey< InDet::PixelClusterContainer > m_inputKey
std::vector< int > * m_layerDisk
std::vector< int > * m_isInnermost
std::vector< int > * m_etaModule
PixelClusterAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
std::vector< int > * m_barrelEndcap
std::vector< double > * m_globalY
std::vector< int > * m_sizeY
StringProperty m_ntupleFileName
std::vector< int > * m_phiModule
virtual StatusCode initialize() override final
StringProperty m_ntupleTreeName
std::vector< double > * m_globalZ
std::vector< double > * m_localCovYY
std::vector< double > * m_localY
std::vector< int > * m_sizeX
This is an Identifier helper class for the Pixel subdetector.
Definition PixelID.h:67
Property holding a SG store/key/clid from which a ReadHandle is made.