ATLAS Offline Software
MSConstraintTracksProvider.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 #ifndef TRKALIGNGENTOOLS_MSCONSTRAINTTRACKSPROVIDER_H
6 #define TRKALIGNGENTOOLS_MSCONSTRAINTTRACKSPROVIDER_H
7 
10 #include "GaudiKernel/ToolHandle.h"
11 #include "muonEvent/Muon.h"
14 
15 
16 
17 
18 
19 class TFile;
20 class TTree;
21 
22 
23 namespace Muon{
24 }
25 
26 
27 namespace Trk {
28  class IGlobalTrackFitter;
29 
31 
32  public:
33  MSConstraintTracksProvider(const std::string & type, const std::string & name, const IInterface * parent);
35 
36  virtual StatusCode initialize();
37  virtual StatusCode finalize();
38 
39  virtual StatusCode trackCollection(const TrackCollection*& tracks);
40 
41  virtual void printSummary();
42 
43  private :
44 
46  bool bookNtuple();
47  void initializeNtuple();
48  void setNtuple(TFile* ntuple);
50 
51  ToolHandle<IGlobalTrackFitter> m_trackFitter;
52  PublicToolHandle<Muon::IMuonHitSummaryTool> m_muonHitSummaryTool
53  {this,"MuonHitSummaryTool","Muon::MuonHitSummaryTool/MuonHitSummaryTool",""};
54 
55  std::string m_inputMuonCollection;
60  bool m_doTree;
61 
62  double m_minPt;
66  double m_maxIDd0;
67  double m_maxIDz0;
68  double m_minIDPt;
72  double m_maxMSd0;
73  double m_maxMSz0;
74  double m_minMSPt;
83 
84  // ntuple variables
85  TFile* m_ntuple;
86  TTree* m_tree;
87  int m_run;
88  int m_event;
89  double m_pID;
90  double m_pMS;
91  double m_ptID;
92  double m_ptMS;
93  int m_charge;
94 
95  double m_combinedEta;
96  double m_IDEta;
97  double m_combinedPhi;
98  double m_IDPhi;
99 
105 
108 
109  int m_nPIXDS;
110  int m_nSCTDS;
111 
112  int m_nPIXH;
113  int m_nSCTH;
114 
118 
122 
126 
127  }; // end class
128 
129 } // end namespace
130 
131 #endif // TRKALIGNGENTOOLS_MSCONSTRAINTTRACKSPROVIDER_H
Trk::MSConstraintTracksProvider::m_ntuple
TFile * m_ntuple
Definition: MSConstraintTracksProvider.h:85
Trk::MSConstraintTracksProvider::m_nCBMuonsHasEXandID
int m_nCBMuonsHasEXandID
Definition: MSConstraintTracksProvider.h:79
Trk::MSConstraintTracksProvider::m_nCBMuonsFailedRefit
int m_nCBMuonsFailedRefit
Definition: MSConstraintTracksProvider.h:81
Trk::MSConstraintTracksProvider::initializeNtuple
void initializeNtuple()
Definition: MSConstraintTracksProvider.cxx:192
IMuonHitSummaryTool.h
Trk::MSConstraintTracksProvider::trackCollection
virtual StatusCode trackCollection(const TrackCollection *&tracks)
Definition: MSConstraintTracksProvider.cxx:411
Trk::ITrackCollectionProvider
Definition: ITrackCollectionProvider.h:33
Trk::MSConstraintTracksProvider::m_maxMSd0
double m_maxMSd0
Definition: MSConstraintTracksProvider.h:72
Trk::MSConstraintTracksProvider::m_useMSConstraintTrkOnly
bool m_useMSConstraintTrkOnly
Definition: MSConstraintTracksProvider.h:59
Trk::MSConstraintTracksProvider::m_minPt
double m_minPt
Definition: MSConstraintTracksProvider.h:62
Trk::MSConstraintTracksProvider
Definition: MSConstraintTracksProvider.h:30
Trk::MSConstraintTracksProvider::m_maxRetrievalErrors
int m_maxRetrievalErrors
maximum allowed number of retrieval errors at the beginning of the job (-1 for infinite)
Definition: MSConstraintTracksProvider.h:58
Trk::MSConstraintTracksProvider::m_minSCTHits
int m_minSCTHits
Definition: MSConstraintTracksProvider.h:64
Trk::MSConstraintTracksProvider::m_stationLayerNum
int m_stationLayerNum
Definition: MSConstraintTracksProvider.h:125
FitterTypes.h
Trk::MSConstraintTracksProvider::m_eBLhits
int m_eBLhits
Definition: MSConstraintTracksProvider.h:106
Trk::MSConstraintTracksProvider::m_IDPhi_constrained
double m_IDPhi_constrained
Definition: MSConstraintTracksProvider.h:103
Trk::MSConstraintTracksProvider::m_nCBMuonsPassSelection
int m_nCBMuonsPassSelection
Definition: MSConstraintTracksProvider.h:80
Trk::MSConstraintTracksProvider::m_maxNumberOfSectors
double m_maxNumberOfSectors
Definition: MSConstraintTracksProvider.h:75
Trk::MSConstraintTracksProvider::m_minTGCPhiHits
int m_minTGCPhiHits
Definition: MSConstraintTracksProvider.h:71
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Trk::MSConstraintTracksProvider::m_minMSPt
double m_minMSPt
Definition: MSConstraintTracksProvider.h:74
Trk::MSConstraintTracksProvider::m_minStationLayers
double m_minStationLayers
Definition: MSConstraintTracksProvider.h:77
Trk::MSConstraintTracksProvider::m_maxIDz0
double m_maxIDz0
Definition: MSConstraintTracksProvider.h:67
Trk::MSConstraintTracksProvider::m_stationLayers
int m_stationLayers
Definition: MSConstraintTracksProvider.h:121
Trk::RunOutlierRemoval
bool RunOutlierRemoval
switch to toggle quality processing after fit
Definition: FitterTypes.h:22
Trk::MSConstraintTracksProvider::m_minPIXHits
int m_minPIXHits
Definition: MSConstraintTracksProvider.h:63
Trk::MSConstraintTracksProvider::m_pID
double m_pID
Definition: MSConstraintTracksProvider.h:89
Trk::MSConstraintTracksProvider::m_phiLayers
int m_phiLayers
Definition: MSConstraintTracksProvider.h:120
Trk::MSConstraintTracksProvider::m_runOutlierRemoval
RunOutlierRemoval m_runOutlierRemoval
run outlier removal in the GX2 fitter
Definition: MSConstraintTracksProvider.h:57
Trk::MSConstraintTracksProvider::setNtuple
void setNtuple(TFile *ntuple)
sets ntuple
Definition: MSConstraintTracksProvider.cxx:123
Trk::MSConstraintTracksProvider::MSConstraintTracksProvider
MSConstraintTracksProvider(const std::string &type, const std::string &name, const IInterface *parent)
Definition: MSConstraintTracksProvider.cxx:28
Trk::MSConstraintTracksProvider::m_nPIXH
int m_nPIXH
Definition: MSConstraintTracksProvider.h:112
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::MSConstraintTracksProvider::m_nSCTH
int m_nSCTH
Definition: MSConstraintTracksProvider.h:113
Trk::MSConstraintTracksProvider::m_ptID
double m_ptID
Definition: MSConstraintTracksProvider.h:91
Trk::MSConstraintTracksProvider::m_phiLayerNum
int m_phiLayerNum
Definition: MSConstraintTracksProvider.h:124
AthAlgTool.h
Trk::MSConstraintTracksProvider::m_nSCTDS
int m_nSCTDS
Definition: MSConstraintTracksProvider.h:110
Trk::MSConstraintTracksProvider::m_nTRTHits
int m_nTRTHits
Definition: MSConstraintTracksProvider.h:117
Trk::MSConstraintTracksProvider::m_inputMuonCollection
std::string m_inputMuonCollection
Name of input combined muons collection.
Definition: MSConstraintTracksProvider.h:55
Trk::MSConstraintTracksProvider::m_maxMSz0
double m_maxMSz0
Definition: MSConstraintTracksProvider.h:73
test_pyathena.parent
parent
Definition: test_pyathena.py:15
Trk::MSConstraintTracksProvider::m_event
int m_event
Definition: MSConstraintTracksProvider.h:88
Trk::MSConstraintTracksProvider::fillNtuple
StatusCode fillNtuple()
writes tree to ntuple
Definition: MSConstraintTracksProvider.cxx:239
Analysis::Muon
The ATLAS Muon object - see doxygen, physics workbookd and the Muon Combined Performance WG's pages f...
Definition: Reconstruction/MuonIdentification/muonEvent/muonEvent/Muon.h:48
Trk::MSConstraintTracksProvider::m_ptMS
double m_ptMS
Definition: MSConstraintTracksProvider.h:92
Trk::MSConstraintTracksProvider::m_IDEta
double m_IDEta
Definition: MSConstraintTracksProvider.h:96
Trk::MSConstraintTracksProvider::m_minTRTHits
int m_minTRTHits
Definition: MSConstraintTracksProvider.h:65
Trk::MSConstraintTracksProvider::m_IDPhi
double m_IDPhi
Definition: MSConstraintTracksProvider.h:98
DataVector< Trk::Track >
Trk::MSConstraintTracksProvider::m_combinedEta
double m_combinedEta
Definition: MSConstraintTracksProvider.h:95
Trk::MSConstraintTracksProvider::m_pMS
double m_pMS
Definition: MSConstraintTracksProvider.h:90
Trk::MSConstraintTracksProvider::combinedMuonSelection
bool combinedMuonSelection(const Analysis::Muon *)
Definition: MSConstraintTracksProvider.cxx:259
Trk::MSConstraintTracksProvider::~MSConstraintTracksProvider
virtual ~MSConstraintTracksProvider()
Trk::MSConstraintTracksProvider::m_minNumberOfPhiLayers
double m_minNumberOfPhiLayers
Definition: MSConstraintTracksProvider.h:76
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::MSConstraintTracksProvider::m_tree
TTree * m_tree
Definition: MSConstraintTracksProvider.h:86
Trk::MSConstraintTracksProvider::m_nBLhits
int m_nBLhits
Definition: MSConstraintTracksProvider.h:107
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Trk::MSConstraintTracksProvider::m_minIDPt
double m_minIDPt
Definition: MSConstraintTracksProvider.h:68
Trk::MSConstraintTracksProvider::m_trackFitter
ToolHandle< IGlobalTrackFitter > m_trackFitter
normal track fitter
Definition: MSConstraintTracksProvider.h:51
Trk::MSConstraintTracksProvider::m_charge
int m_charge
Definition: MSConstraintTracksProvider.h:93
ITrackCollectionProvider.h
Trk::MSConstraintTracksProvider::m_nCBMuonsSucRefit
int m_nCBMuonsSucRefit
Definition: MSConstraintTracksProvider.h:82
Trk::MSConstraintTracksProvider::m_maxIDd0
double m_maxIDd0
Definition: MSConstraintTracksProvider.h:66
Trk::MSConstraintTracksProvider::m_sectors
int m_sectors
Definition: MSConstraintTracksProvider.h:119
Trk::MSConstraintTracksProvider::m_minRPCPhiHits
int m_minRPCPhiHits
Definition: MSConstraintTracksProvider.h:70
Trk::MSConstraintTracksProvider::m_muonHitSummaryTool
PublicToolHandle< Muon::IMuonHitSummaryTool > m_muonHitSummaryTool
Definition: MSConstraintTracksProvider.h:53
Trk::MSConstraintTracksProvider::finalize
virtual StatusCode finalize()
Definition: MSConstraintTracksProvider.cxx:253
Trk::MSConstraintTracksProvider::m_pID_constrained
double m_pID_constrained
Definition: MSConstraintTracksProvider.h:100
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Trk::MSConstraintTracksProvider::m_charge_constrained
int m_charge_constrained
Definition: MSConstraintTracksProvider.h:104
Trk::MSConstraintTracksProvider::m_nPIXHits
int m_nPIXHits
Definition: MSConstraintTracksProvider.h:115
Muon.h
Trk::MSConstraintTracksProvider::initialize
virtual StatusCode initialize()
Definition: MSConstraintTracksProvider.cxx:109
Trk::MSConstraintTracksProvider::m_nPIXDS
int m_nPIXDS
Definition: MSConstraintTracksProvider.h:109
Trk::MSConstraintTracksProvider::m_inputTracksCollection
std::string m_inputTracksCollection
Name of input tracks collection.
Definition: MSConstraintTracksProvider.h:56
Trk::MSConstraintTracksProvider::m_nCBMuonsFromSG
int m_nCBMuonsFromSG
Definition: MSConstraintTracksProvider.h:78
AthAlgTool
Definition: AthAlgTool.h:26
Trk::MSConstraintTracksProvider::m_nSCTHits
int m_nSCTHits
Definition: MSConstraintTracksProvider.h:116
Trk::MSConstraintTracksProvider::m_minMDTHits
int m_minMDTHits
Definition: MSConstraintTracksProvider.h:69
Trk::MSConstraintTracksProvider::m_combinedPhi
double m_combinedPhi
Definition: MSConstraintTracksProvider.h:97
Trk::MSConstraintTracksProvider::m_doTree
bool m_doTree
Definition: MSConstraintTracksProvider.h:60
Trk::MSConstraintTracksProvider::m_run
int m_run
Definition: MSConstraintTracksProvider.h:87
Trk::MSConstraintTracksProvider::bookNtuple
bool bookNtuple()
Definition: MSConstraintTracksProvider.cxx:131
Trk::MSConstraintTracksProvider::m_ptID_constrained
double m_ptID_constrained
Definition: MSConstraintTracksProvider.h:101
Trk::MSConstraintTracksProvider::m_IDEta_constrained
double m_IDEta_constrained
Definition: MSConstraintTracksProvider.h:102
Trk::MSConstraintTracksProvider::printSummary
virtual void printSummary()
Print statistical summary to logfile.
Definition: MSConstraintTracksProvider.cxx:573
Trk::MSConstraintTracksProvider::m_sectorNum
int m_sectorNum
Definition: MSConstraintTracksProvider.h:123