LDMX Software
TrackSummaryReader Struct Reference

Struct used for reading track summary info written out by the RootTrackSummaryWriter. More...

#include <TreeReader.h>

Public Member Functions

 TrackSummaryReader (TTree *tree_, bool sortEvents)
 
- Public Member Functions inherited from TreeReader
 TreeReader (TTree *tree_)
 
void getEntry (unsigned int i) const
 

Public Attributes

std::uint32_t eventId = 0
 
std::vector< unsigned int > * nStates = new std::vector<unsigned int>
 
std::vector< unsigned int > * nMeasurements = new std::vector<unsigned int>
 
std::vector< unsigned int > * nOutliers = new std::vector<unsigned int>
 
std::vector< unsigned int > * nHoles = new std::vector<unsigned int>
 
std::vector< unsigned int > * nSharedHits = new std::vector<unsigned int>
 
std::vector< float > * chi2Sum = new std::vector<float>
 
std::vector< unsigned int > * NDF = new std::vector<unsigned int>
 
std::vector< std::vector< double > > * measurementChi2
 
std::vector< std::vector< double > > * outlierChi2
 
std::vector< std::vector< double > > * measurementVolume
 
std::vector< std::vector< double > > * measurementLayer
 
std::vector< std::vector< double > > * outlierVolume
 
std::vector< std::vector< double > > * outlierLayer
 
std::vector< unsigned int > * nMajorityHits = new std::vector<unsigned int>
 
std::vector< std::uint64_t > * majorityParticleId = new std::vector<std::uint64_t>
 
std::vector< bool > * hasFittedParams = new std::vector<bool>
 
std::vector< float > * t_d0 = new std::vector<float>
 
std::vector< float > * t_z0 = new std::vector<float>
 
std::vector< float > * t_phi = new std::vector<float>
 
std::vector< float > * t_theta = new std::vector<float>
 
std::vector< float > * t_eta = new std::vector<float>
 
std::vector< float > * t_p = new std::vector<float>
 
std::vector< float > * t_pT = new std::vector<float>
 
std::vector< float > * t_time = new std::vector<float>
 
std::vector< int > * t_charge = new std::vector<int>
 
std::vector< float > * eLOC0_fit = new std::vector<float>
 
std::vector< float > * eLOC1_fit = new std::vector<float>
 
std::vector< float > * ePHI_fit = new std::vector<float>
 
std::vector< float > * eTHETA_fit = new std::vector<float>
 
std::vector< float > * eQOP_fit = new std::vector<float>
 
std::vector< float > * eT_fit = new std::vector<float>
 
std::vector< float > * err_eLOC0_fit = new std::vector<float>
 
std::vector< float > * err_eLOC1_fit = new std::vector<float>
 
std::vector< float > * err_ePHI_fit = new std::vector<float>
 
std::vector< float > * err_eTHETA_fit = new std::vector<float>
 
std::vector< float > * err_eQOP_fit = new std::vector<float>
 
std::vector< float > * err_eT_fit = new std::vector<float>
 
- Public Attributes inherited from TreeReader
TTree * tree = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from TreeReader
std::vector< long long > entryNumbers = {}
 The entry numbers for accessing events in increased order (there could be multiple entries corresponding to one event number)
 

Detailed Description

Struct used for reading track summary info written out by the RootTrackSummaryWriter.

Definition at line 291 of file TreeReader.h.

Constructor & Destructor Documentation

◆ TrackSummaryReader()

TrackSummaryReader::TrackSummaryReader ( TTree * tree_,
bool sortEvents )
inline

Definition at line 296 of file TreeReader.h.

296 : TreeReader(tree_) {
297 tree->SetBranchAddress("event_nr", &eventId);
298 tree->SetBranchAddress("nStates", &nStates);
299 tree->SetBranchAddress("nMeasurements", &nMeasurements);
300 tree->SetBranchAddress("nOutliers", &nOutliers);
301 tree->SetBranchAddress("nHoles", &nHoles);
302 tree->SetBranchAddress("chi2Sum", &chi2Sum);
303 tree->SetBranchAddress("measurementChi2", &measurementChi2);
304 tree->SetBranchAddress("NDF", &NDF);
305 tree->SetBranchAddress("measurementVolume", &measurementVolume);
306 tree->SetBranchAddress("measurementLayer", &measurementLayer);
307 tree->SetBranchAddress("outlierVolume", &outlierVolume);
308 tree->SetBranchAddress("outlierLayer", &outlierLayer);
309 tree->SetBranchAddress("nMajorityHits", &nMajorityHits);
310 tree->SetBranchAddress("nSharedHits", &nSharedHits);
311 tree->SetBranchAddress("majorityParticleId", &majorityParticleId);
312
313 tree->SetBranchAddress("hasFittedParams", &hasFittedParams);
314
315 tree->SetBranchAddress("t_theta", &t_theta);
316 tree->SetBranchAddress("t_phi", &t_phi);
317 tree->SetBranchAddress("t_eta", &t_eta);
318 tree->SetBranchAddress("t_p", &t_p);
319 tree->SetBranchAddress("t_pT", &t_pT);
320 tree->SetBranchAddress("t_d0", &t_d0);
321 tree->SetBranchAddress("t_z0", &t_z0);
322 tree->SetBranchAddress("t_charge", &t_charge);
323 tree->SetBranchAddress("t_time", &t_time);
324
325 tree->SetBranchAddress("eLOC0_fit", &eLOC0_fit);
326 tree->SetBranchAddress("eLOC1_fit", &eLOC1_fit);
327 tree->SetBranchAddress("ePHI_fit", &ePHI_fit);
328 tree->SetBranchAddress("eTHETA_fit", &eTHETA_fit);
329 tree->SetBranchAddress("eQOP_fit", &eQOP_fit);
330 tree->SetBranchAddress("eT_fit", &eT_fit);
331 tree->SetBranchAddress("err_eLOC0_fit", &err_eLOC0_fit);
332 tree->SetBranchAddress("err_eLOC1_fit", &err_eLOC1_fit);
333 tree->SetBranchAddress("err_ePHI_fit", &err_ePHI_fit);
334 tree->SetBranchAddress("err_eTHETA_fit", &err_eTHETA_fit);
335 tree->SetBranchAddress("err_eQOP_fit", &err_eQOP_fit);
336 tree->SetBranchAddress("err_eT_fit", &err_eT_fit);
337
338 // It's not necessary if you just need to read one file, but please do it to
339 // synchronize events if multiple root files are read
340 if (sortEvents) {
341 entryNumbers.resize(tree->GetEntries());
342 tree->Draw("event_nr", "", "goff");
343 // Sort to get the entry numbers of the ordered events
344 TMath::Sort(tree->GetEntries(), tree->GetV1(), entryNumbers.data(),
345 false);
346 }
347 }
Helper for reading tree.
Definition TreeReader.h:37
std::vector< long long > entryNumbers
The entry numbers for accessing events in increased order (there could be multiple entries correspond...
Definition TreeReader.h:56

Member Data Documentation

◆ chi2Sum

std::vector<float>* TrackSummaryReader::chi2Sum = new std::vector<float>

Definition at line 356 of file TreeReader.h.

◆ eLOC0_fit

std::vector<float>* TrackSummaryReader::eLOC0_fit = new std::vector<float>

Definition at line 387 of file TreeReader.h.

◆ eLOC1_fit

std::vector<float>* TrackSummaryReader::eLOC1_fit = new std::vector<float>

Definition at line 388 of file TreeReader.h.

◆ ePHI_fit

std::vector<float>* TrackSummaryReader::ePHI_fit = new std::vector<float>

Definition at line 389 of file TreeReader.h.

◆ eQOP_fit

std::vector<float>* TrackSummaryReader::eQOP_fit = new std::vector<float>

Definition at line 391 of file TreeReader.h.

◆ err_eLOC0_fit

std::vector<float>* TrackSummaryReader::err_eLOC0_fit = new std::vector<float>

Definition at line 394 of file TreeReader.h.

◆ err_eLOC1_fit

std::vector<float>* TrackSummaryReader::err_eLOC1_fit = new std::vector<float>

Definition at line 395 of file TreeReader.h.

◆ err_ePHI_fit

std::vector<float>* TrackSummaryReader::err_ePHI_fit = new std::vector<float>

Definition at line 396 of file TreeReader.h.

◆ err_eQOP_fit

std::vector<float>* TrackSummaryReader::err_eQOP_fit = new std::vector<float>

Definition at line 398 of file TreeReader.h.

◆ err_eT_fit

std::vector<float>* TrackSummaryReader::err_eT_fit = new std::vector<float>

Definition at line 399 of file TreeReader.h.

◆ err_eTHETA_fit

std::vector<float>* TrackSummaryReader::err_eTHETA_fit = new std::vector<float>

Definition at line 397 of file TreeReader.h.

◆ eT_fit

std::vector<float>* TrackSummaryReader::eT_fit = new std::vector<float>

Definition at line 392 of file TreeReader.h.

◆ eTHETA_fit

std::vector<float>* TrackSummaryReader::eTHETA_fit = new std::vector<float>

Definition at line 390 of file TreeReader.h.

◆ eventId

std::uint32_t TrackSummaryReader::eventId = 0

Definition at line 350 of file TreeReader.h.

◆ hasFittedParams

std::vector<bool>* TrackSummaryReader::hasFittedParams = new std::vector<bool>

Definition at line 373 of file TreeReader.h.

◆ majorityParticleId

std::vector<std::uint64_t>* TrackSummaryReader::majorityParticleId = new std::vector<std::uint64_t>

Definition at line 371 of file TreeReader.h.

◆ measurementChi2

std::vector<std::vector<double> >* TrackSummaryReader::measurementChi2
Initial value:
=
new std::vector<std::vector<double>>

Definition at line 358 of file TreeReader.h.

◆ measurementLayer

std::vector<std::vector<double> >* TrackSummaryReader::measurementLayer
Initial value:
=
new std::vector<std::vector<double>>

Definition at line 364 of file TreeReader.h.

◆ measurementVolume

std::vector<std::vector<double> >* TrackSummaryReader::measurementVolume
Initial value:
=
new std::vector<std::vector<double>>

Definition at line 362 of file TreeReader.h.

◆ NDF

std::vector<unsigned int>* TrackSummaryReader::NDF = new std::vector<unsigned int>

Definition at line 357 of file TreeReader.h.

◆ nHoles

std::vector<unsigned int>* TrackSummaryReader::nHoles = new std::vector<unsigned int>

Definition at line 354 of file TreeReader.h.

◆ nMajorityHits

std::vector<unsigned int>* TrackSummaryReader::nMajorityHits = new std::vector<unsigned int>

Definition at line 370 of file TreeReader.h.

◆ nMeasurements

std::vector<unsigned int>* TrackSummaryReader::nMeasurements = new std::vector<unsigned int>

Definition at line 352 of file TreeReader.h.

◆ nOutliers

std::vector<unsigned int>* TrackSummaryReader::nOutliers = new std::vector<unsigned int>

Definition at line 353 of file TreeReader.h.

◆ nSharedHits

std::vector<unsigned int>* TrackSummaryReader::nSharedHits = new std::vector<unsigned int>

Definition at line 355 of file TreeReader.h.

◆ nStates

std::vector<unsigned int>* TrackSummaryReader::nStates = new std::vector<unsigned int>

Definition at line 351 of file TreeReader.h.

◆ outlierChi2

std::vector<std::vector<double> >* TrackSummaryReader::outlierChi2
Initial value:
=
new std::vector<std::vector<double>>

Definition at line 360 of file TreeReader.h.

◆ outlierLayer

std::vector<std::vector<double> >* TrackSummaryReader::outlierLayer
Initial value:
=
new std::vector<std::vector<double>>

Definition at line 368 of file TreeReader.h.

◆ outlierVolume

std::vector<std::vector<double> >* TrackSummaryReader::outlierVolume
Initial value:
=
new std::vector<std::vector<double>>

Definition at line 366 of file TreeReader.h.

◆ t_charge

std::vector<int>* TrackSummaryReader::t_charge = new std::vector<int>

Definition at line 384 of file TreeReader.h.

◆ t_d0

std::vector<float>* TrackSummaryReader::t_d0 = new std::vector<float>

Definition at line 376 of file TreeReader.h.

◆ t_eta

std::vector<float>* TrackSummaryReader::t_eta = new std::vector<float>

Definition at line 380 of file TreeReader.h.

◆ t_p

std::vector<float>* TrackSummaryReader::t_p = new std::vector<float>

Definition at line 381 of file TreeReader.h.

◆ t_phi

std::vector<float>* TrackSummaryReader::t_phi = new std::vector<float>

Definition at line 378 of file TreeReader.h.

◆ t_pT

std::vector<float>* TrackSummaryReader::t_pT = new std::vector<float>

Definition at line 382 of file TreeReader.h.

◆ t_theta

std::vector<float>* TrackSummaryReader::t_theta = new std::vector<float>

Definition at line 379 of file TreeReader.h.

◆ t_time

std::vector<float>* TrackSummaryReader::t_time = new std::vector<float>

Definition at line 383 of file TreeReader.h.

◆ t_z0

std::vector<float>* TrackSummaryReader::t_z0 = new std::vector<float>

Definition at line 377 of file TreeReader.h.


The documentation for this struct was generated from the following file: