ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Trk::TruthNtupleTool Class Reference

Tool to fill basic information about the truth record. More...

#include <TruthNtupleTool.h>

Inheritance diagram for Trk::TruthNtupleTool:
Collaboration diagram for Trk::TruthNtupleTool:

Public Member Functions

 TruthNtupleTool (const std::string &, const std::string &, const IInterface *)
 
 ~TruthNtupleTool ()
 
StatusCode initialize ()
 
StatusCode finalize ()
 finalize More...
 
virtual StatusCode writeTruthData (const std::vector< Trk::ValidationTrackTruthData > &truthData)
 write track data to ntuple More...
 
virtual unsigned int getNumberOfTreeRecords () const
 
virtual StatusCode initBranches (const std::vector< const Trk::ITrackTruthClassifier * > &classifiers, bool, const std::vector< std::string > trackCollectionNames)
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 Interface ID, declared here, and defined below. More...
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

std::string m_ntupleTreeName
 jobOption: Ntuple tree name More...
 
std::string m_ntupleFileName
 jobOption: Ntuple file and dir name More...
 
std::vector< double > m_etaBins
 
bool m_fillJets
 jO: jet filling, set from external call More...
 
ServiceHandle< ITHistSvc > m_histSvc
 
TTree * m_nt
 Pointer to the NTuple tree. More...
 
unsigned int m_numberOfTreeEntries
 
int m_runNumber
 run number to which this MC truth particle belongs More...
 
int m_eventNumber
 event number to which this MC truth particle belongs More...
 
std::vector< std::vector< unsigned int > * > m_TrackLinkIndex
 
std::vector< std::vector< float > * > m_mc_prob
 
std::vector< unsigned int > m_classifications
 
float m_mc_d0
 d0 of MC truth particle's perigee parameters More...
 
float m_mc_z0
 z of MC truth particle's perigee parameters More...
 
float m_mc_phi0
 phi of MC truth particle's perigee parameters More...
 
float m_mc_theta
 theta of MC truth particle's perigee parameters More...
 
float m_mc_qOverP
 q/p of MC truth particle's perigee parameters More...
 
float m_mc_qOverPt
 q/pT of MC truth particle's perigee parameters More...
 
float m_mc_eta
 eta of MC truth particle's perigee parameters More...
 
int m_mc_particleID
 PDG ID of MC truth particle. More...
 
int m_mc_uniqueID
 MC truth particle's uniqueID. More...
 
float m_mc_energy
 MC truth particle's energy at production vertex. More...
 
int m_mc_jetLinkIndex
 link to jet this particle belongs to (if jet tree is ON) More...
 
float m_mc_prodR
 Rxy of particle's production vertex. More...
 
float m_mc_prodz
 z coordinate of particle's production vertex More...
 
std::vector< std::vector< TH1D * > > m_recoTrackCounts
 
std::vector< std::vector< TH1D * > > m_truthTrackCounts
 
std::vector< const Trk::ITrackTruthClassifier * > m_trackTruthClassifiers
 the truth classifiers More...
 
SG::ReadHandleKey< xAOD::EventInfom_evt {this, "EvtInfo", "EventInfo", "EventInfo name"}
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Tool to fill basic information about the truth record.

It is called directly by the ntuple writer but provides information also
for particles which have failed to be reconstructed. Furthermore it manages
indices to link to ntuple entries of the associated reconstructed particles.
Author
Sebastian.Fleischmann -at- cern.ch, Wolfgang.Liebig -at- cern.ch

Definition at line 46 of file TruthNtupleTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TruthNtupleTool()

Trk::TruthNtupleTool::TruthNtupleTool ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Definition at line 33 of file TruthNtupleTool.cxx.

37  :
38  AthAlgTool(t,n,p),
39  m_fillJets(false),
40  m_histSvc("THistSvc", n),
41  m_nt(nullptr),
43  m_runNumber{},
44  m_eventNumber{},
46  m_mc_prob{},
48  m_mc_d0{},
49  m_mc_z0{},
50  m_mc_phi0{},
51  m_mc_theta{},
52  m_mc_qOverP{},
53  m_mc_qOverPt{},
54  m_mc_eta{},
55 
56  m_mc_particleID{},
57  m_mc_uniqueID{},
58  m_mc_energy{},
60  m_mc_prodR{},
61  m_mc_prodz{}
62 {
63  declareInterface<ITruthNtupleTool>(this);
64 
65  m_etaBins.push_back(0.0);
66  m_etaBins.push_back(0.8);
67  m_etaBins.push_back(1.6);
68  m_etaBins.push_back(2.5);
69  // Declare the properties
70  declareProperty("NtupleFileName", m_ntupleFileName = "TRKVAL/Validation", "Ntuple file handle");
71  declareProperty("NtupleTreeName", m_ntupleTreeName = "Truth", "Name of the ntuple tree");
72 }

◆ ~TruthNtupleTool()

Trk::TruthNtupleTool::~TruthNtupleTool ( )
default

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ finalize()

StatusCode Trk::TruthNtupleTool::finalize ( )

finalize

Definition at line 189 of file TruthNtupleTool.cxx.

189  {
190 
191  ATH_MSG_INFO ("start finalize() in " << name());
192 
193  ATH_MSG_INFO ( "Efficiencies:" );
194 
195  //Double_t* efficiencyValues;
196  for (unsigned int classifierIndex = 0; classifierIndex < m_trackTruthClassifiers.size(); ++classifierIndex ) {
197  for (unsigned int clIndex = 0; clIndex < m_trackTruthClassifiers[classifierIndex]->numberOfClassifiers(); clIndex++) {
198  // output:
199 
200  msg() << std::resetiosflags(std::ios::right) << std::setiosflags(std::ios::left) << std::setw(15) << m_trackTruthClassifiers[classifierIndex]->classificationAsString(clIndex);
201  msg() << std::resetiosflags(std::ios::left) << std::setiosflags(std::ios::right);
202  for (int etaBin = 0; etaBin < m_recoTrackCounts[classifierIndex][clIndex]->GetNbinsX(); etaBin++) {
203  double truth = m_truthTrackCounts[classifierIndex][clIndex]->GetBinContent(etaBin+1);
204  double reco = m_recoTrackCounts[classifierIndex][clIndex]->GetBinContent(etaBin+1);
205  msg() << std::resetiosflags(std::ios::fixed | std::ios::showpoint) << std::setprecision(8) << std::setw(8) << reco << "/" << std::setw(8) << truth;
206  msg() << std::setiosflags(std::ios::fixed | std::ios::showpoint | std::ios::right ) << std::setw(7)
207  << " (" << std::setprecision(4) << (truth>0. ? reco/truth : 0.) << ")";
208  }
209  // calc efficiency:
210  TGraphAsymmErrors* effPlot = new TGraphAsymmErrors(m_recoTrackCounts[classifierIndex][clIndex], m_truthTrackCounts[classifierIndex][clIndex], "");
211  // add graph to ROOT file
212  std::string graphName = "trackEff_" + m_trackTruthClassifiers[classifierIndex]->classificationAsString(clIndex);
213  effPlot->SetNameTitle(graphName.c_str(), graphName.c_str());
214  StatusCode sc = m_histSvc->regGraph("/"+m_ntupleFileName+"/"+graphName, effPlot);
215  if(sc.isFailure()){
216  ATH_MSG_ERROR ("ROOT Graph registration failed");
217  return sc;
218  }
219  msg() << "\n";
220  delete m_recoTrackCounts[classifierIndex][clIndex];
221  m_recoTrackCounts[classifierIndex][clIndex] = nullptr;
222  delete m_truthTrackCounts[classifierIndex][clIndex];
223  m_truthTrackCounts[classifierIndex][clIndex] = nullptr;
224  }
225  }
226  msg() << endmsg;
227 
228  // delete track links and probs
229  for (unsigned int trackColIndex = 0; trackColIndex < m_TrackLinkIndex.size(); ++trackColIndex ) {
230  delete m_TrackLinkIndex[trackColIndex];
231  delete m_mc_prob[trackColIndex];
232  }
233  return StatusCode::SUCCESS;
234 }

◆ getNumberOfTreeRecords()

unsigned int Trk::TruthNtupleTool::getNumberOfTreeRecords ( ) const
virtual

Implements Trk::ITruthNtupleTool.

Definition at line 325 of file TruthNtupleTool.cxx.

325  {
326  return m_numberOfTreeEntries;
327 }

◆ initBranches()

StatusCode Trk::TruthNtupleTool::initBranches ( const std::vector< const Trk::ITrackTruthClassifier * > &  classifiers,
bool  fillJets,
const std::vector< std::string >  trackCollectionNames 
)
virtual

Implements Trk::ITruthNtupleTool.

Definition at line 125 of file TruthNtupleTool.cxx.

125  {
126  m_trackTruthClassifiers = classifiers;
127  m_classifications.resize(classifiers.size(), 0);
128  m_recoTrackCounts.resize(classifiers.size());
129  m_truthTrackCounts.resize(classifiers.size());
131 
132  if (m_fillJets)
133  m_nt->Branch("JetLinkIndex", &m_mc_jetLinkIndex );// link to MC jets
134 
135  double etaBins[100];
136  for (unsigned int bin = 0; bin < m_etaBins.size(); ++bin ) {
137  etaBins[bin] = m_etaBins[bin];
138  }
139  for (unsigned int classifierIndex = 0; classifierIndex < classifiers.size(); ++classifierIndex ) {
140  if (!(classifiers[classifierIndex])) {
141  ATH_MSG_ERROR ("Got NULL pointer to truth classifier tool!");
142  return StatusCode::FAILURE;
143  }
144  std::string classifierName = classifiers[classifierIndex]->nameOfClassifier();
145  // add branch for classifier
146  ATH_MSG_INFO ("using classifier " << classifierName);
147  std::string branchName = "Class_" + classifierName;
148  std::string branchDescription = "Class_" + classifierName + "/I";
149  m_nt->Branch(branchName.c_str(), &(m_classifications[classifierIndex]), branchDescription.c_str());
150  // init statistic counters
151  for (unsigned int clIndex = 0; clIndex < classifiers[classifierIndex]->numberOfClassifiers(); clIndex++) {
152  m_truthTrackCounts[classifierIndex].push_back( new TH1D(
153  ("true"+classifiers[classifierIndex]->classificationAsString(clIndex)).c_str(),
154  ("true"+classifiers[classifierIndex]->classificationAsString(clIndex)).c_str(),
155  m_etaBins.size()-1,
156  etaBins
157  ) );
158  // TODO: do statistics for each input track collection
159  m_recoTrackCounts[classifierIndex].push_back( new TH1D(
160  ("reco"+classifiers[classifierIndex]->classificationAsString(clIndex)).c_str(),
161  ("reco"+classifiers[classifierIndex]->classificationAsString(clIndex)).c_str(),
162  m_etaBins.size()-1,
163  etaBins
164  ) );
165  }
166  }
167 
168  // add branches with links to the reconstructed tracks:
169  if (!m_TrackLinkIndex.empty()) {
170  ATH_MSG_ERROR ("Track links seem to be already initialized! Do NOT call initBranches() twice!");
171  return StatusCode::FAILURE;
172  }
173  m_TrackLinkIndex.resize(trackCollectionNames.size(), nullptr);
174  m_mc_prob.resize(trackCollectionNames.size(), nullptr);
175  for (unsigned int trackColIndex = 0; trackColIndex < trackCollectionNames.size(); ++trackColIndex ) {
176  m_TrackLinkIndex[trackColIndex] = new std::vector<unsigned int>();
177  std::string branchName = "TrackLinkIndex_" + trackCollectionNames[trackColIndex];
178  m_nt->Branch(branchName.c_str(), &(m_TrackLinkIndex[trackColIndex])); // link to tracks
179  m_mc_prob[trackColIndex] = new std::vector<float>();
180  branchName = "truth_prob_" + trackCollectionNames[trackColIndex];
181  m_nt->Branch(branchName.c_str(), &(m_mc_prob[trackColIndex])); // matching probability
182  }
183  return StatusCode::SUCCESS;
184 }

◆ initialize()

StatusCode Trk::TruthNtupleTool::initialize ( )

Definition at line 81 of file TruthNtupleTool.cxx.

81  {
82 
84 
85  if (m_etaBins.size()<2) {
86  ATH_MSG_ERROR ("Vector of eta bins too small");
87  return StatusCode::FAILURE;
88  }
89 
90  // ---------------------------
91  // retrieve pointer to THistSvc
92  ATH_CHECK( m_histSvc.retrieve() );
93 
94  // ---------------------------
95  // create tree and register it to THistSvc
96  m_nt = new TTree(TString(m_ntupleTreeName), "Track Validation Truth");
97  // NB: we must not delete the tree, this is done by THistSvc
98  std::string fullNtupleName = "/"+m_ntupleFileName+"/"+m_ntupleTreeName;
99  ATH_CHECK( m_histSvc->regTree(fullNtupleName, m_nt) );
100 
101  //-----------------
102  // add items
103  // event info:
104  m_nt->Branch( "RunNumber", &m_runNumber );
105  m_nt->Branch( "EventNumber", &m_eventNumber );
106  m_nt->Branch( "truth_d0", &m_mc_d0 );
107  m_nt->Branch( "truth_z0", &m_mc_z0 );
108  m_nt->Branch( "truth_phi0", &m_mc_phi0 );
109  m_nt->Branch( "truth_theta", &m_mc_theta );
110  m_nt->Branch( "truth_qOverP", &m_mc_qOverP );
111  m_nt->Branch( "truth_qOverPt", &m_mc_qOverPt );
112  m_nt->Branch( "truth_eta", &m_mc_eta );
113  m_nt->Branch( "truth_particleID", &m_mc_particleID );
114  m_nt->Branch( "truth_barcode", &m_mc_uniqueID ); // TODO Update variable name to be consistent
115  m_nt->Branch( "truth_energy", &m_mc_energy );
116  m_nt->Branch( "truth_prod_R", &m_mc_prodR );
117  m_nt->Branch( "truth_prod_z", &m_mc_prodz );
118 
119  ATH_MSG_VERBOSE ("added items to ntuple");
120 
121  return StatusCode::SUCCESS;
122 
123 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

const InterfaceID & Trk::ITruthNtupleTool::interfaceID ( )
inlinestaticinherited

Interface ID, declared here, and defined below.

Definition at line 71 of file ITruthNtupleTool.h.

71  {
72  return IID_ITruthNtupleTool;
73 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

◆ writeTruthData()

StatusCode Trk::TruthNtupleTool::writeTruthData ( const std::vector< Trk::ValidationTrackTruthData > &  truthData)
virtual

write track data to ntuple

Implements Trk::ITruthNtupleTool.

Definition at line 239 of file TruthNtupleTool.cxx.

240  {
241 
242  ATH_MSG_DEBUG ("in writeTruthData(...) with ValTrackTruthData size = "<<truthData.size());
243  // ---------------------------------------
244  // fill event data
246  if (!evt.isValid()) {
247  ATH_MSG_WARNING ("Could not retrieve event info");
248  return StatusCode::FAILURE;
249  }
250 
251  m_runNumber=evt->runNumber();
252  m_eventNumber=evt->eventNumber();
253 
254  HepMC::ConstGenParticlePtr genParticle{nullptr};
255  const Trk::TrackParameters* truePerigee = nullptr;
256  for (unsigned int index = 0; index < truthData.size(); index++) {
257  genParticle = truthData[index].genParticle;
258  truePerigee = truthData[index].truthPerigee;
259  if (genParticle==nullptr || truePerigee==nullptr) {
260  if (genParticle==nullptr) ATH_MSG_WARNING ("NULL pointer to gen particle at index "<<index<<
261  ", problem with truth selection logic?");
262  else ATH_MSG_DEBUG ("NULL pointer perigee from TruthToTrack. Index is "<<index);
264  for (unsigned int trackColIndex = 0; trackColIndex < m_mc_prob.size(); ++trackColIndex ) {
265  (m_mc_prob[trackColIndex])->clear();
266  (m_TrackLinkIndex[trackColIndex])->clear();
267  }
268  //m_classifications->clear(); do not clear! vector needs to be the same
269  m_mc_particleID = 0;
270  m_mc_energy = 0.;
271 
272  m_mc_d0 = 0.;
273  m_mc_z0 = 0.;
274  m_mc_phi0 = 0.;
275  m_mc_theta = 0.;
276  m_mc_qOverP = 0.;
277  m_mc_qOverPt = 0.;
278  m_mc_eta = 0.;
279  m_mc_prodR = 0.;
280  m_mc_prodz = 0.;
281  } else {
282  m_mc_uniqueID = HepMC::uniqueID(genParticle);
283  m_mc_particleID = genParticle->pdg_id();
284  m_mc_energy = genParticle->momentum().e();
285 
286  m_mc_d0 = truePerigee->parameters()[Trk::d0];
287  m_mc_z0 = truePerigee->parameters()[Trk::z0];
288  m_mc_phi0 = truePerigee->parameters()[Trk::phi0];
289  m_mc_theta = truePerigee->parameters()[Trk::theta];
290  m_mc_qOverP = truePerigee->parameters()[Trk::qOverP];
292  m_mc_eta = truePerigee->eta();
293  m_mc_prodR = fabs(genParticle->production_vertex()->position().perp());
294  m_mc_prodz = fabs(genParticle->production_vertex()->position().z());
295 
296  for (unsigned int trackColIndex = 0; trackColIndex < truthData[index].truthToTrackIndices.size(); ++trackColIndex ) {
297  (*(m_TrackLinkIndex[trackColIndex])) = truthData[index].truthToTrackIndices[trackColIndex];
298  (*(m_mc_prob[trackColIndex])) = truthData[index].truthToTrackMatchingProbabilities[trackColIndex];
299  }
300  // get classification
301  m_classifications = truthData[index].classifications;
302 
303  if (m_fillJets)
304  m_mc_jetLinkIndex = truthData[index].truthToJetIndex;
305 
306  // do statistics:
307  for (unsigned int classIndex = 0; classIndex < m_classifications.size(); ++classIndex ) {
308  m_truthTrackCounts[classIndex][m_classifications[classIndex]]->Fill(std::fabs(m_mc_eta));
309  if (!truthData[index].truthToTrackIndices[0].empty()) {
310  // TODO: do statistics for each input track collection
311  m_recoTrackCounts[classIndex][m_classifications[classIndex]]->Fill(std::fabs(m_mc_eta));
312  }
313 
314  }
315 
316  }
317  m_nt->Fill();
319  }
320  ATH_MSG_DEBUG ("filled " << m_numberOfTreeEntries << " entries, returning...");
321  return StatusCode::SUCCESS;
322 }

Member Data Documentation

◆ m_classifications

std::vector<unsigned int> Trk::TruthNtupleTool::m_classifications
private

Definition at line 84 of file TruthNtupleTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_etaBins

std::vector<double> Trk::TruthNtupleTool::m_etaBins
private

Definition at line 70 of file TruthNtupleTool.h.

◆ m_eventNumber

int Trk::TruthNtupleTool::m_eventNumber
private

event number to which this MC truth particle belongs

Definition at line 80 of file TruthNtupleTool.h.

◆ m_evt

SG::ReadHandleKey<xAOD::EventInfo> Trk::TruthNtupleTool::m_evt {this, "EvtInfo", "EventInfo", "EventInfo name"}
private

Definition at line 107 of file TruthNtupleTool.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_fillJets

bool Trk::TruthNtupleTool::m_fillJets
private

jO: jet filling, set from external call

Definition at line 71 of file TruthNtupleTool.h.

◆ m_histSvc

ServiceHandle<ITHistSvc> Trk::TruthNtupleTool::m_histSvc
private

Definition at line 73 of file TruthNtupleTool.h.

◆ m_mc_d0

float Trk::TruthNtupleTool::m_mc_d0
private

d0 of MC truth particle's perigee parameters

Definition at line 86 of file TruthNtupleTool.h.

◆ m_mc_energy

float Trk::TruthNtupleTool::m_mc_energy
private

MC truth particle's energy at production vertex.

Definition at line 96 of file TruthNtupleTool.h.

◆ m_mc_eta

float Trk::TruthNtupleTool::m_mc_eta
private

eta of MC truth particle's perigee parameters

Definition at line 92 of file TruthNtupleTool.h.

◆ m_mc_jetLinkIndex

int Trk::TruthNtupleTool::m_mc_jetLinkIndex
private

link to jet this particle belongs to (if jet tree is ON)

Definition at line 97 of file TruthNtupleTool.h.

◆ m_mc_particleID

int Trk::TruthNtupleTool::m_mc_particleID
private

PDG ID of MC truth particle.

Definition at line 94 of file TruthNtupleTool.h.

◆ m_mc_phi0

float Trk::TruthNtupleTool::m_mc_phi0
private

phi of MC truth particle's perigee parameters

Definition at line 88 of file TruthNtupleTool.h.

◆ m_mc_prob

std::vector< std::vector<float>* > Trk::TruthNtupleTool::m_mc_prob
private

Definition at line 83 of file TruthNtupleTool.h.

◆ m_mc_prodR

float Trk::TruthNtupleTool::m_mc_prodR
private

Rxy of particle's production vertex.

Definition at line 98 of file TruthNtupleTool.h.

◆ m_mc_prodz

float Trk::TruthNtupleTool::m_mc_prodz
private

z coordinate of particle's production vertex

Definition at line 99 of file TruthNtupleTool.h.

◆ m_mc_qOverP

float Trk::TruthNtupleTool::m_mc_qOverP
private

q/p of MC truth particle's perigee parameters

Definition at line 90 of file TruthNtupleTool.h.

◆ m_mc_qOverPt

float Trk::TruthNtupleTool::m_mc_qOverPt
private

q/pT of MC truth particle's perigee parameters

Definition at line 91 of file TruthNtupleTool.h.

◆ m_mc_theta

float Trk::TruthNtupleTool::m_mc_theta
private

theta of MC truth particle's perigee parameters

Definition at line 89 of file TruthNtupleTool.h.

◆ m_mc_uniqueID

int Trk::TruthNtupleTool::m_mc_uniqueID
private

MC truth particle's uniqueID.

Definition at line 95 of file TruthNtupleTool.h.

◆ m_mc_z0

float Trk::TruthNtupleTool::m_mc_z0
private

z of MC truth particle's perigee parameters

Definition at line 87 of file TruthNtupleTool.h.

◆ m_nt

TTree* Trk::TruthNtupleTool::m_nt
private

Pointer to the NTuple tree.

Definition at line 74 of file TruthNtupleTool.h.

◆ m_ntupleFileName

std::string Trk::TruthNtupleTool::m_ntupleFileName
private

jobOption: Ntuple file and dir name

Definition at line 69 of file TruthNtupleTool.h.

◆ m_ntupleTreeName

std::string Trk::TruthNtupleTool::m_ntupleTreeName
private

jobOption: Ntuple tree name

Definition at line 68 of file TruthNtupleTool.h.

◆ m_numberOfTreeEntries

unsigned int Trk::TruthNtupleTool::m_numberOfTreeEntries
private

Definition at line 76 of file TruthNtupleTool.h.

◆ m_recoTrackCounts

std::vector< std::vector<TH1D*> > Trk::TruthNtupleTool::m_recoTrackCounts
private

Definition at line 102 of file TruthNtupleTool.h.

◆ m_runNumber

int Trk::TruthNtupleTool::m_runNumber
private

run number to which this MC truth particle belongs

Definition at line 79 of file TruthNtupleTool.h.

◆ m_TrackLinkIndex

std::vector< std::vector<unsigned int>* > Trk::TruthNtupleTool::m_TrackLinkIndex
private

Definition at line 82 of file TruthNtupleTool.h.

◆ m_trackTruthClassifiers

std::vector<const Trk::ITrackTruthClassifier*> Trk::TruthNtupleTool::m_trackTruthClassifiers
private

the truth classifiers

Definition at line 105 of file TruthNtupleTool.h.

◆ m_truthTrackCounts

std::vector< std::vector<TH1D*> > Trk::TruthNtupleTool::m_truthTrackCounts
private

Definition at line 103 of file TruthNtupleTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
Trk::TruthNtupleTool::m_trackTruthClassifiers
std::vector< const Trk::ITrackTruthClassifier * > m_trackTruthClassifiers
the truth classifiers
Definition: TruthNtupleTool.h:105
Trk::TruthNtupleTool::m_mc_jetLinkIndex
int m_mc_jetLinkIndex
link to jet this particle belongs to (if jet tree is ON)
Definition: TruthNtupleTool.h:97
Trk::TruthNtupleTool::m_mc_particleID
int m_mc_particleID
PDG ID of MC truth particle.
Definition: TruthNtupleTool.h:94
Trk::TruthNtupleTool::m_mc_uniqueID
int m_mc_uniqueID
MC truth particle's uniqueID.
Definition: TruthNtupleTool.h:95
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
Trk::TruthNtupleTool::m_mc_qOverP
float m_mc_qOverP
q/p of MC truth particle's perigee parameters
Definition: TruthNtupleTool.h:90
Trk::TruthNtupleTool::m_mc_d0
float m_mc_d0
d0 of MC truth particle's perigee parameters
Definition: TruthNtupleTool.h:86
Trk::TruthNtupleTool::m_classifications
std::vector< unsigned int > m_classifications
Definition: TruthNtupleTool.h:84
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
index
Definition: index.py:1
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
Trk::TruthNtupleTool::m_eventNumber
int m_eventNumber
event number to which this MC truth particle belongs
Definition: TruthNtupleTool.h:80
Trk::TruthNtupleTool::m_mc_energy
float m_mc_energy
MC truth particle's energy at production vertex.
Definition: TruthNtupleTool.h:96
ConvertOldUJHistosToNewHistos.etaBins
list etaBins
Definition: ConvertOldUJHistosToNewHistos.py:145
Trk::TruthNtupleTool::m_runNumber
int m_runNumber
run number to which this MC truth particle belongs
Definition: TruthNtupleTool.h:79
bin
Definition: BinsDiffFromStripMedian.h:43
Trk::TruthNtupleTool::m_ntupleFileName
std::string m_ntupleFileName
jobOption: Ntuple file and dir name
Definition: TruthNtupleTool.h:69
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
Trk::z0
@ z0
Definition: ParamDefs.h:64
Trk::TruthNtupleTool::m_mc_eta
float m_mc_eta
eta of MC truth particle's perigee parameters
Definition: TruthNtupleTool.h:92
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
empty
bool empty(TH1 *h)
Definition: computils.cxx:294
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
Trk::TruthNtupleTool::m_numberOfTreeEntries
unsigned int m_numberOfTreeEntries
Definition: TruthNtupleTool.h:76
xAOD::etaBin
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap etaBin
Definition: L2StandAloneMuon_v1.cxx:148
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
Trk::TruthNtupleTool::m_TrackLinkIndex
std::vector< std::vector< unsigned int > * > m_TrackLinkIndex
Definition: TruthNtupleTool.h:82
beamspotman.n
n
Definition: beamspotman.py:731
Trk::theta
@ theta
Definition: ParamDefs.h:66
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
xAOD::JetTests::fillJets
void fillJets(JetContainer &jetCont, const std::vector< xAOD::JetFourMom_t > &jet4moms)
Fill input JetContainer with new jets which 4-momentum are given by jet4moms.
Definition: JetFactory.h:78
HepMC::uniqueID
int uniqueID(const T &p)
Definition: MagicNumbers.h:109
Trk::TruthNtupleTool::m_mc_phi0
float m_mc_phi0
phi of MC truth particle's perigee parameters
Definition: TruthNtupleTool.h:88
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
Trk::TruthNtupleTool::m_truthTrackCounts
std::vector< std::vector< TH1D * > > m_truthTrackCounts
Definition: TruthNtupleTool.h:103
Trk::TruthNtupleTool::m_mc_qOverPt
float m_mc_qOverPt
q/pT of MC truth particle's perigee parameters
Definition: TruthNtupleTool.h:91
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
Trk::ParametersBase
Definition: ParametersBase.h:55
Trk::TruthNtupleTool::m_nt
TTree * m_nt
Pointer to the NTuple tree.
Definition: TruthNtupleTool.h:74
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
Trk::TruthNtupleTool::m_mc_z0
float m_mc_z0
z of MC truth particle's perigee parameters
Definition: TruthNtupleTool.h:87
Trk::TruthNtupleTool::m_mc_prob
std::vector< std::vector< float > * > m_mc_prob
Definition: TruthNtupleTool.h:83
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
HepMC::UNDEFINED_ID
constexpr int UNDEFINED_ID
Definition: MagicNumbers.h:55
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
HepMC::ConstGenParticlePtr
const GenParticle * ConstGenParticlePtr
Definition: GenParticle.h:38
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Trk::d0
@ d0
Definition: ParamDefs.h:63
Trk::TruthNtupleTool::m_etaBins
std::vector< double > m_etaBins
Definition: TruthNtupleTool.h:70
Trk::TruthNtupleTool::m_ntupleTreeName
std::string m_ntupleTreeName
jobOption: Ntuple tree name
Definition: TruthNtupleTool.h:68
plotBeamSpotVxVal.bin
int bin
Definition: plotBeamSpotVxVal.py:83
DeMoScan.index
string index
Definition: DeMoScan.py:364
a
TList * a
Definition: liststreamerinfos.cxx:10
VKalVrtAthena::varHolder_detail::clear
void clear(T &var)
Definition: NtupleVars.h:48
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
Trk::TruthNtupleTool::m_mc_prodz
float m_mc_prodz
z coordinate of particle's production vertex
Definition: TruthNtupleTool.h:99
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
Trk::qOverP
@ qOverP
perigee
Definition: ParamDefs.h:67
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
Trk::ParametersBase::eta
double eta() const
Access method for pseudorapidity - from momentum.
Trk::TruthNtupleTool::m_histSvc
ServiceHandle< ITHistSvc > m_histSvc
Definition: TruthNtupleTool.h:73
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
Trk::TruthNtupleTool::m_mc_theta
float m_mc_theta
theta of MC truth particle's perigee parameters
Definition: TruthNtupleTool.h:89
Trk::phi0
@ phi0
Definition: ParamDefs.h:65
Trk::TruthNtupleTool::m_evt
SG::ReadHandleKey< xAOD::EventInfo > m_evt
Definition: TruthNtupleTool.h:107
MuonSegmentReaderConfig.reco
reco
Definition: MuonSegmentReaderConfig.py:133
Trk::TruthNtupleTool::m_mc_prodR
float m_mc_prodR
Rxy of particle's production vertex.
Definition: TruthNtupleTool.h:98
fitman.k
k
Definition: fitman.py:528
Trk::TruthNtupleTool::m_recoTrackCounts
std::vector< std::vector< TH1D * > > m_recoTrackCounts
Definition: TruthNtupleTool.h:102
Trk::TruthNtupleTool::m_fillJets
bool m_fillJets
jO: jet filling, set from external call
Definition: TruthNtupleTool.h:71