hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
Loading...
Searching...
No Matches
TruthVertexMatch2021 Class Reference

#include <TruthVertexMatch2021.h>

Inheritance diagram for TruthVertexMatch2021:
Processor

Public Member Functions

 TruthVertexMatch2021 (const std::string &name, Process &process)
 ~TruthVertexMatch2021 ()=default
virtual void configure (const ParameterSet &parameters) final
 Callback for the Processor to configure itself from the given set of parameters.
virtual void initialize (TTree *tree) final
 Callback for the Processor to take any necessary action when the processing of events starts, such as creating histograms.
virtual void setFile (TFile *out_file) final
 Set output TFile for AnaProcessors.
virtual bool process (IEvent *ievent) final
 Process the event and put new data products into it.
virtual void finalize () final
 Callback for the Processor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities.
Public Member Functions inherited from Processor
 Processor (const std::string &name, Process &process)
 Class constructor.
virtual ~Processor ()
virtual void initialize (std::string inFilename, std::string outFilename)
 Callback for the Processor to take any necessary action when the processing of events starts, such as initializing files.
virtual bool process ()
 Process the histograms and generate analysis output.

Private Attributes

EventBus bus_
std::unique_ptr< TTree > output_tree_
Cutflow event_cf_ {"event", "readout"}
std::shared_ptr< AnaHelpers > _ah
std::string vtxColl_ {"UnconstrainedV0Vertices_KF"}
std::string mcColl_ {"MCParticle"}
std::string trkColl_ {"KalmanFullTracks"}
std::string hitColl_ {"RotatedHelicalTrackHits"}
bool hasTruthHits_ {false}
bool isData_ {false}
bool isApSignal_ {false}
bool isSimpSignal_ {false}
int apPDG_ {622}
int signalMomPDG_ {622}
double calTimeOffset_ {0.0}
double vertexMatchZ_ {5.0}
double massSelect_ {-1.0}
double massWindow_ {0.002}
double vtxZMin_ {-1.0e9}
double vtxZMax_ {1.0e9}
double eleMomCut_ {0.5}
double eleClusEMin_ {0.2}
bool debug_ {false}
long n_truth_ {0}
long n_has_v0_ {0}
long n_matched_z_ {0}
long n_matched_trk_ {0}
long n_matched_z_and_trk_ {0}
long n_matched_trk_ele_ {0}
long n_matched_trk_pos_ {0}
long n_matched_trk_ele_clus_ {0}
long n_matched_trk_pos_clus_ {0}
long n_matched_trk_clus_both_ {0}
long n_matched_trk_clus_pos_only_ {0}
long n_matched_trk_clus_ele_only_ {0}
long n_novtx_both_trk_ {0}
long n_novtx_pos_only_ {0}
long n_novtx_ele_only_ {0}
long n_novtx_neither_ {0}
long n_truth_ehi_ {0}
long n_has_v0_ehi_ {0}
long n_matched_z_ehi_ {0}

Additional Inherited Members

Static Public Member Functions inherited from Processor
static void declare (const std::string &classname, ProcessorMaker *)
 Internal function which is part of the ProcessorFactory machinery.
Protected Attributes inherited from Processor
Process & process_
TFile * outF_ {nullptr}
std::string name_

Detailed Description

Definition at line 27 of file TruthVertexMatch2021.h.

Constructor & Destructor Documentation

◆ TruthVertexMatch2021()

TruthVertexMatch2021 ( const std::string & name,
Process & process )
inline

Definition at line 29 of file TruthVertexMatch2021.h.

◆ ~TruthVertexMatch2021()

~TruthVertexMatch2021 ( )
default

Member Function Documentation

◆ configure()

void configure ( const ParameterSet & parameters)
finalvirtual

Callback for the Processor to configure itself from the given set of parameters.

Parameters
parametersParameterSet for configuration.

Reimplemented from Processor.

Definition at line 13 of file TruthVertexMatch2021.cxx.

◆ finalize()

void finalize ( )
finalvirtual

Callback for the Processor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities.

Implements Processor.

Definition at line 617 of file TruthVertexMatch2021.cxx.

◆ initialize()

void initialize ( TTree * tree)
finalvirtual

Callback for the Processor to take any necessary action when the processing of events starts, such as creating histograms.

Parameters
tree

Implements Processor.

Definition at line 46 of file TruthVertexMatch2021.cxx.

◆ process()

bool process ( IEvent * ievent)
finalvirtual

Process the event and put new data products into it.

Parameters
eventThe Event to process.
Returns
status of the processing, false will move to next event and skip other processes.

Implements Processor.

Definition at line 191 of file TruthVertexMatch2021.cxx.

◆ setFile()

void setFile ( TFile * outFile)
finalvirtual

Set output TFile for AnaProcessors.

Parameters
pointerto output TFile

Reimplemented from Processor.

Definition at line 79 of file TruthVertexMatch2021.cxx.

Member Data Documentation

◆ _ah

std::shared_ptr<AnaHelpers> _ah
private

Definition at line 41 of file TruthVertexMatch2021.h.

◆ apPDG_

int apPDG_ {622}
private

Definition at line 55 of file TruthVertexMatch2021.h.

◆ bus_

EventBus bus_
private

Definition at line 38 of file TruthVertexMatch2021.h.

◆ calTimeOffset_

double calTimeOffset_ {0.0}
private

Definition at line 57 of file TruthVertexMatch2021.h.

◆ debug_

bool debug_ {false}
private

Definition at line 75 of file TruthVertexMatch2021.h.

◆ eleClusEMin_

double eleClusEMin_ {0.2}
private

Definition at line 74 of file TruthVertexMatch2021.h.

◆ eleMomCut_

double eleMomCut_ {0.5}
private

Definition at line 71 of file TruthVertexMatch2021.h.

◆ event_cf_

Cutflow event_cf_ {"event", "readout"}
private

Definition at line 40 of file TruthVertexMatch2021.h.

◆ hasTruthHits_

bool hasTruthHits_ {false}
private

Definition at line 50 of file TruthVertexMatch2021.h.

◆ hitColl_

std::string hitColl_ {"RotatedHelicalTrackHits"}
private

Definition at line 49 of file TruthVertexMatch2021.h.

◆ isApSignal_

bool isApSignal_ {false}
private

Definition at line 53 of file TruthVertexMatch2021.h.

◆ isData_

bool isData_ {false}
private

Definition at line 52 of file TruthVertexMatch2021.h.

◆ isSimpSignal_

bool isSimpSignal_ {false}
private

Definition at line 54 of file TruthVertexMatch2021.h.

◆ massSelect_

double massSelect_ {-1.0}
private

Definition at line 62 of file TruthVertexMatch2021.h.

◆ massWindow_

double massWindow_ {0.002}
private

Definition at line 63 of file TruthVertexMatch2021.h.

◆ mcColl_

std::string mcColl_ {"MCParticle"}
private

Definition at line 44 of file TruthVertexMatch2021.h.

◆ n_has_v0_

long n_has_v0_ {0}
private

Definition at line 79 of file TruthVertexMatch2021.h.

◆ n_has_v0_ehi_

long n_has_v0_ehi_ {0}
private

Definition at line 103 of file TruthVertexMatch2021.h.

◆ n_matched_trk_

long n_matched_trk_ {0}
private

Definition at line 84 of file TruthVertexMatch2021.h.

◆ n_matched_trk_clus_both_

long n_matched_trk_clus_both_ {0}
private

Definition at line 93 of file TruthVertexMatch2021.h.

◆ n_matched_trk_clus_ele_only_

long n_matched_trk_clus_ele_only_ {0}
private

Definition at line 95 of file TruthVertexMatch2021.h.

◆ n_matched_trk_clus_pos_only_

long n_matched_trk_clus_pos_only_ {0}
private

Definition at line 94 of file TruthVertexMatch2021.h.

◆ n_matched_trk_ele_

long n_matched_trk_ele_ {0}
private

Definition at line 86 of file TruthVertexMatch2021.h.

◆ n_matched_trk_ele_clus_

long n_matched_trk_ele_clus_ {0}
private

Definition at line 91 of file TruthVertexMatch2021.h.

◆ n_matched_trk_pos_

long n_matched_trk_pos_ {0}
private

Definition at line 87 of file TruthVertexMatch2021.h.

◆ n_matched_trk_pos_clus_

long n_matched_trk_pos_clus_ {0}
private

Definition at line 92 of file TruthVertexMatch2021.h.

◆ n_matched_z_

long n_matched_z_ {0}
private

Definition at line 80 of file TruthVertexMatch2021.h.

◆ n_matched_z_and_trk_

long n_matched_z_and_trk_ {0}
private

Definition at line 85 of file TruthVertexMatch2021.h.

◆ n_matched_z_ehi_

long n_matched_z_ehi_ {0}
private

Definition at line 104 of file TruthVertexMatch2021.h.

◆ n_novtx_both_trk_

long n_novtx_both_trk_ {0}
private

Definition at line 97 of file TruthVertexMatch2021.h.

◆ n_novtx_ele_only_

long n_novtx_ele_only_ {0}
private

Definition at line 99 of file TruthVertexMatch2021.h.

◆ n_novtx_neither_

long n_novtx_neither_ {0}
private

Definition at line 100 of file TruthVertexMatch2021.h.

◆ n_novtx_pos_only_

long n_novtx_pos_only_ {0}
private

Definition at line 98 of file TruthVertexMatch2021.h.

◆ n_truth_

long n_truth_ {0}
private

Definition at line 78 of file TruthVertexMatch2021.h.

◆ n_truth_ehi_

long n_truth_ehi_ {0}
private

Definition at line 102 of file TruthVertexMatch2021.h.

◆ output_tree_

std::unique_ptr<TTree> output_tree_
private

Definition at line 39 of file TruthVertexMatch2021.h.

◆ signalMomPDG_

int signalMomPDG_ {622}
private

Definition at line 56 of file TruthVertexMatch2021.h.

◆ trkColl_

std::string trkColl_ {"KalmanFullTracks"}
private

Definition at line 45 of file TruthVertexMatch2021.h.

◆ vertexMatchZ_

double vertexMatchZ_ {5.0}
private

Definition at line 58 of file TruthVertexMatch2021.h.

◆ vtxColl_

std::string vtxColl_ {"UnconstrainedV0Vertices_KF"}
private

Definition at line 43 of file TruthVertexMatch2021.h.

◆ vtxZMax_

double vtxZMax_ {1.0e9}
private

Definition at line 68 of file TruthVertexMatch2021.h.

◆ vtxZMin_

double vtxZMin_ {-1.0e9}
private

Definition at line 67 of file TruthVertexMatch2021.h.


The documentation for this class was generated from the following files: