ATLAS Offline Software
MuonStationNtupleHelperTool.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 MUONMUONSTATIONNTUPLEHELPERTOOL_H
6 #define MUONMUONSTATIONNTUPLEHELPERTOOL_H
7 
10 #include "GaudiKernel/ServiceHandle.h"
12 
13 namespace Muon
14 {
15 
28  {
29  public:
30  MuonStationNtupleHelperTool(const std::string&,const std::string&,const IInterface*);
31 
33  virtual ~MuonStationNtupleHelperTool()=default;
34 
36  virtual StatusCode initialize();
38  virtual StatusCode finalize ();
39 
42  const Trk::MeasurementBase*,
43  const Trk::TrackParameters*,
44  const int& detectorType,
45  const bool& isOutlier );
46 
48  virtual StatusCode fillHoleData (
50  const int&);
51 
52 
55  virtual StatusCode addNtupleItems (
56  TTree* tree,
57  const int& detectorType );
58 
60  virtual StatusCode resetVariables (
61  const int& detectorType );
62 
63  private:
64 
65  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
66 
67  std::vector<int>* m_mdtSectorIx;
68  std::vector<int>* m_mdtStationIx;
69  std::vector<int>* m_rpcSectorIx;
70  std::vector<int>* m_rpcStationIx;
71  std::vector<int>* m_rpcMeasuresPhi;
72  std::vector<int>* m_tgcStationIx;
73  std::vector<int>* m_tgcMeasuresPhi;
74  };
75 } // end of namespace
76 
77 #endif
Muon::MuonStationNtupleHelperTool::~MuonStationNtupleHelperTool
virtual ~MuonStationNtupleHelperTool()=default
default destructor
IValidationNtupleHelperTool.h
tree
TChain * tree
Definition: tile_monitor.h:30
Muon::MuonStationNtupleHelperTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonStationNtupleHelperTool.h:65
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
Muon::MuonStationNtupleHelperTool::MuonStationNtupleHelperTool
MuonStationNtupleHelperTool(const std::string &, const std::string &, const IInterface *)
Definition: MuonStationNtupleHelperTool.cxx:14
Muon::MuonStationNtupleHelperTool
Definition: MuonStationNtupleHelperTool.h:28
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Muon::MuonStationNtupleHelperTool::addNtupleItems
virtual StatusCode addNtupleItems(TTree *tree, const int &detectorType)
add items to the ntuple and configure the helper tool: should be called once (per detector type) by t...
Definition: MuonStationNtupleHelperTool.cxx:65
AthAlgTool.h
Muon::MuonStationNtupleHelperTool::m_mdtSectorIx
std::vector< int > * m_mdtSectorIx
sector number 1-16, odd=large, even=small
Definition: MuonStationNtupleHelperTool.h:67
Trk::ParametersBase
Definition: ParametersBase.h:55
Muon::MuonStationNtupleHelperTool::fillMeasurementData
virtual StatusCode fillMeasurementData(const Trk::MeasurementBase *, const Trk::TrackParameters *, const int &detectorType, const bool &isOutlier)
fill hit position data
Definition: MuonStationNtupleHelperTool.cxx:93
Muon::MuonStationNtupleHelperTool::resetVariables
virtual StatusCode resetVariables(const int &detectorType)
reset ntuple variables
Definition: MuonStationNtupleHelperTool.cxx:121
Muon::MuonStationNtupleHelperTool::initialize
virtual StatusCode initialize()
standard Athena-Algorithm method
Definition: MuonStationNtupleHelperTool.cxx:32
Muon::MuonStationNtupleHelperTool::m_tgcStationIx
std::vector< int > * m_tgcStationIx
describe
Definition: MuonStationNtupleHelperTool.h:72
Trk::MeasurementBase
Definition: MeasurementBase.h:58
Trk::TrackStateOnSurface
represents the track state (measurement, material, fit parameters and quality) at a surface.
Definition: TrackStateOnSurface.h:71
Muon::MuonStationNtupleHelperTool::m_rpcMeasuresPhi
std::vector< int > * m_rpcMeasuresPhi
describe
Definition: MuonStationNtupleHelperTool.h:71
Muon::MuonStationNtupleHelperTool::fillHoleData
virtual StatusCode fillHoleData(const Trk::TrackStateOnSurface &, const int &)
fill special data about holes on track (here: do nothing)
Definition: MuonStationNtupleHelperTool.cxx:139
Muon::MuonStationNtupleHelperTool::m_rpcSectorIx
std::vector< int > * m_rpcSectorIx
sector number 1-16, odd=large, even=small
Definition: MuonStationNtupleHelperTool.h:69
Muon::MuonStationNtupleHelperTool::m_mdtStationIx
std::vector< int > * m_mdtStationIx
describe
Definition: MuonStationNtupleHelperTool.h:68
Muon::MuonStationNtupleHelperTool::m_tgcMeasuresPhi
std::vector< int > * m_tgcMeasuresPhi
describe
Definition: MuonStationNtupleHelperTool.h:73
Trk::IValidationNtupleHelperTool
provides the interface for validation helper tools which write special information about generated tr...
Definition: IValidationNtupleHelperTool.h:42
Muon::MuonStationNtupleHelperTool::finalize
virtual StatusCode finalize()
standard Athena-Algorithm method
Definition: MuonStationNtupleHelperTool.cxx:50
AthAlgTool
Definition: AthAlgTool.h:26
IMuonIdHelperSvc.h
Muon::MuonStationNtupleHelperTool::m_rpcStationIx
std::vector< int > * m_rpcStationIx
describe
Definition: MuonStationNtupleHelperTool.h:70
ServiceHandle< Muon::IMuonIdHelperSvc >