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
TrackEfficiencyProcessor Class Reference

#include <TrackEfficiencyProcessor.h>

Inheritance diagram for TrackEfficiencyProcessor:
Processor

Classes

struct  TridentCand
struct  ThreeProngCand

Public Member Functions

 TrackEfficiencyProcessor (const std::string &name, Process &process)
 ~TrackEfficiencyProcessor ()
virtual bool process (IEvent *ievent)
 Process the event and put new data products into it.
virtual void initialize (TTree *tree)
 Callback for the Processor to take any necessary action when the processing of events starts, such as creating histograms.
virtual void finalize ()
 Callback for the Processor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities.
virtual void configure (const ParameterSet &parameters)
 Callback for the Processor to configure itself from the given set of parameters.
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 void setFile (TFile *outFile)
 Set output TFile for AnaProcessors.
virtual bool process ()
 Process the histograms and generate analysis output.

Private Types

typedef std::map< std::string, std::shared_ptr< TrackEfficHistos > >::iterator reg_it
typedef std::map< std::string, std::shared_ptr< ThreeProngHistos > >::iterator three_prong_reg_it

Private Attributes

std::shared_ptr< BaseSelector > cluSelector
std::shared_ptr< BaseSelector > trkSelector
std::vector< std::string > regionSelections_
std::vector< std::string > threeProngSelections_
std::string selectionCfg_
std::string trkSelCfg_
std::string cluSelCfg_
TBranch * bfspart_ {nullptr}
TBranch * bclus_ {nullptr}
TBranch * btrks_ {nullptr}
TBranch * bevth_ {nullptr}
std::vector< CalCluster * > * clus_ {}
std::vector< Particle * > * fspart_ {}
std::vector< Track * > * trks_ {}
EventHeader * evth_ {nullptr}
std::string anaName_ {"trkEffAna"}
std::string cluColl_ {"ECalClusters"}
std::string fspartColl_ {"FinalStateParticles"}
std::string trkColl_ {"GBLTracks"}
TTree * tree_ {nullptr}
std::shared_ptr< TrackEfficHistos > _trkeff_histos
std::map< std::string, std::shared_ptr< BaseSelector > > _reg_trkeff_selectors
std::map< std::string, std::shared_ptr< TrackEfficHistos > > _reg_trkeff_histos
std::vector< std::string > _regions
std::map< std::string, std::shared_ptr< BaseSelector > > _reg_three_prong_trkeff_selectors
std::map< std::string, std::shared_ptr< ThreeProngHistos > > _reg_three_prong_trkeff_histos
std::vector< std::string > _three_prong_regions
std::string histoCfg_ {""}
std::string thrProngCfg_ {""}
std::string cluHistoCfg_ {""}
double timeOffset_ {-999}
double beamE_ {2.3}
int isData {0}
std::shared_ptr< AnaHelpers > _ah
int debug_ {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 31 of file TrackEfficiencyProcessor.h.

Member Typedef Documentation

◆ reg_it

typedef std::map<std::string,std::shared_ptr<TrackEfficHistos>>::iterator reg_it
private

Definition at line 83 of file TrackEfficiencyProcessor.h.

◆ three_prong_reg_it

typedef std::map<std::string,std::shared_ptr<ThreeProngHistos>>::iterator three_prong_reg_it
private

Definition at line 84 of file TrackEfficiencyProcessor.h.

Constructor & Destructor Documentation

◆ TrackEfficiencyProcessor()

TrackEfficiencyProcessor ( const std::string & name,
Process & process )

Definition at line 11 of file TrackEfficiencyProcessor.cxx.

◆ ~TrackEfficiencyProcessor()

Definition at line 17 of file TrackEfficiencyProcessor.cxx.

Member Function Documentation

◆ configure()

void configure ( const ParameterSet & parameters)
virtual

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

Parameters
parametersParameterSet for configuration.

Reimplemented from Processor.

Definition at line 19 of file TrackEfficiencyProcessor.cxx.

◆ finalize()

void finalize ( )
virtual

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 379 of file TrackEfficiencyProcessor.cxx.

◆ initialize()

void initialize ( TTree * tree)
virtual

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 49 of file TrackEfficiencyProcessor.cxx.

◆ process()

bool process ( IEvent * ievent)
virtual

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 112 of file TrackEfficiencyProcessor.cxx.

Member Data Documentation

◆ _ah

std::shared_ptr<AnaHelpers> _ah
private

Definition at line 93 of file TrackEfficiencyProcessor.h.

◆ _reg_three_prong_trkeff_histos

std::map<std::string, std::shared_ptr<ThreeProngHistos> > _reg_three_prong_trkeff_histos
private

Definition at line 79 of file TrackEfficiencyProcessor.h.

◆ _reg_three_prong_trkeff_selectors

std::map<std::string, std::shared_ptr<BaseSelector> > _reg_three_prong_trkeff_selectors
private

Definition at line 78 of file TrackEfficiencyProcessor.h.

◆ _reg_trkeff_histos

std::map<std::string, std::shared_ptr<TrackEfficHistos> > _reg_trkeff_histos
private

Definition at line 75 of file TrackEfficiencyProcessor.h.

◆ _reg_trkeff_selectors

std::map<std::string, std::shared_ptr<BaseSelector> > _reg_trkeff_selectors
private

Definition at line 74 of file TrackEfficiencyProcessor.h.

◆ _regions

std::vector<std::string> _regions
private

Definition at line 76 of file TrackEfficiencyProcessor.h.

◆ _three_prong_regions

std::vector<std::string> _three_prong_regions
private

Definition at line 80 of file TrackEfficiencyProcessor.h.

◆ _trkeff_histos

std::shared_ptr<TrackEfficHistos> _trkeff_histos
private

Definition at line 72 of file TrackEfficiencyProcessor.h.

◆ anaName_

std::string anaName_ {"trkEffAna"}
private

Definition at line 66 of file TrackEfficiencyProcessor.h.

◆ bclus_

TBranch* bclus_ {nullptr}
private

Definition at line 57 of file TrackEfficiencyProcessor.h.

◆ beamE_

double beamE_ {2.3}
private

Definition at line 91 of file TrackEfficiencyProcessor.h.

◆ bevth_

TBranch* bevth_ {nullptr}
private

Definition at line 59 of file TrackEfficiencyProcessor.h.

◆ bfspart_

TBranch* bfspart_ {nullptr}
private

Definition at line 56 of file TrackEfficiencyProcessor.h.

◆ btrks_

TBranch* btrks_ {nullptr}
private

Definition at line 58 of file TrackEfficiencyProcessor.h.

◆ cluColl_

std::string cluColl_ {"ECalClusters"}
private

Definition at line 67 of file TrackEfficiencyProcessor.h.

◆ cluHistoCfg_

std::string cluHistoCfg_ {""}
private

Definition at line 88 of file TrackEfficiencyProcessor.h.

◆ clus_

std::vector<CalCluster*>* clus_ {}
private

Definition at line 61 of file TrackEfficiencyProcessor.h.

◆ cluSelCfg_

std::string cluSelCfg_
private

Definition at line 53 of file TrackEfficiencyProcessor.h.

◆ cluSelector

std::shared_ptr<BaseSelector> cluSelector
private

Definition at line 46 of file TrackEfficiencyProcessor.h.

◆ debug_

int debug_ {0}
private

Definition at line 112 of file TrackEfficiencyProcessor.h.

◆ evth_

EventHeader* evth_ {nullptr}
private

Definition at line 64 of file TrackEfficiencyProcessor.h.

◆ fspart_

std::vector<Particle*>* fspart_ {}
private

Definition at line 62 of file TrackEfficiencyProcessor.h.

◆ fspartColl_

std::string fspartColl_ {"FinalStateParticles"}
private

Definition at line 68 of file TrackEfficiencyProcessor.h.

◆ histoCfg_

std::string histoCfg_ {""}
private

Definition at line 86 of file TrackEfficiencyProcessor.h.

◆ isData

int isData {0}
private

Definition at line 92 of file TrackEfficiencyProcessor.h.

◆ regionSelections_

std::vector<std::string> regionSelections_
private

Definition at line 48 of file TrackEfficiencyProcessor.h.

◆ selectionCfg_

std::string selectionCfg_
private

Definition at line 51 of file TrackEfficiencyProcessor.h.

◆ threeProngSelections_

std::vector<std::string> threeProngSelections_
private

Definition at line 49 of file TrackEfficiencyProcessor.h.

◆ thrProngCfg_

std::string thrProngCfg_ {""}
private

Definition at line 87 of file TrackEfficiencyProcessor.h.

◆ timeOffset_

double timeOffset_ {-999}
private

Definition at line 89 of file TrackEfficiencyProcessor.h.

◆ tree_

TTree* tree_ {nullptr}
private

Definition at line 70 of file TrackEfficiencyProcessor.h.

◆ trkColl_

std::string trkColl_ {"GBLTracks"}
private

Definition at line 69 of file TrackEfficiencyProcessor.h.

◆ trks_

std::vector<Track*>* trks_ {}
private

Definition at line 63 of file TrackEfficiencyProcessor.h.

◆ trkSelCfg_

std::string trkSelCfg_
private

Definition at line 52 of file TrackEfficiencyProcessor.h.

◆ trkSelector

std::shared_ptr<BaseSelector> trkSelector
private

Definition at line 47 of file TrackEfficiencyProcessor.h.


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