ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_ClusterAnalysis.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_SCT_CLUSTERANALYSIS_H
6#define TRACKING_TRKCLUSTERANALYSIS_SCT_CLUSTERANALYSIS_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 SCT_ID;
24
26
27public:
28 SCT_ClusterAnalysis(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::SCT_ClusterContainer> m_inputKey{this, "InputKey", "SCT_Clusters", "Key of input sct clusters"};
37 const SCT_ID *m_stripID{};
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_sideModule{};
44 std::vector<double>* m_eta{};
45 std::vector<double>* m_globalX{};
46 std::vector<double>* m_globalY{};
47 std::vector<double>* m_globalZ{};
48 std::vector<double>* m_localX{};
49 std::vector<double>* m_localY{};
50 std::vector<double>* m_localCovXX{};
51 std::vector<double>* m_localCovXY{};
52 std::vector<double>* m_localCovYY{};
53 std::vector<double>* m_localCovYX{};
54 std::vector<int>* m_sizeX{};
55 std::vector<int>* m_sizeY{};
56
59
60 TTree* m_tree{};
61 StringProperty m_ntupleFileName{this, "NtupleFileName", "/ntuples/file1", "Output filename"};
62 StringProperty m_ntupleDirName{this, "NtupleDirectoryName", "/StripClusterAnalysis/", "Directory name in output file"};
63 StringProperty m_ntupleTreeName{this, "NtupleTreeName", "StripClusterAna", "Tree name in output file"};
64 StringProperty m_path{this, "HistPath", "/StripClusterAnalysis/", "Full path in output file"};
65 ServiceHandle<ITHistSvc> m_thistSvc { this, "THistSvc", "THistSvc", "Histogramming svc" };
66
67};
68
69#endif // TRACKING_TRKCLUSTERANALYSIS_SCT_CLUSTERANALYSIS_H
This is an Identifier helper class for the SCT 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_globalY
StringProperty m_ntupleDirName
std::vector< double > * m_localCovXY
std::vector< int > * m_phiModule
virtual StatusCode execute() override final
std::vector< double > * m_globalZ
std::vector< int > * m_sideModule
ServiceHandle< ITHistSvc > m_thistSvc
StringProperty m_ntupleTreeName
std::vector< double > * m_localCovYX
std::vector< int > * m_etaModule
std::vector< double > * m_globalX
std::vector< int > * m_sizeX
virtual unsigned int cardinality() const override
virtual StatusCode initialize() override final
std::vector< double > * m_localY
std::vector< double > * m_localCovYY
std::vector< double > * m_localX
std::vector< double > * m_eta
std::vector< double > * m_localCovXX
std::vector< int > * m_barrelEndcap
StringProperty m_ntupleFileName
SG::ReadHandleKey< InDet::SCT_ClusterContainer > m_inputKey
std::vector< int > * m_sizeY
SCT_ClusterAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
std::vector< int > * m_layerDisk
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.