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.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Types | Private Attributes | List of all members
TridentAnaProcessor Class Reference

#include <TridentAnaProcessor.h>

Inheritance diagram for TridentAnaProcessor:
Processor

Public Member Functions

 TridentAnaProcessor (const std::string &name, Process &process)
 
 ~TridentAnaProcessor ()
 
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< TrackHistos > >::iterator reg_it
 

Private Attributes

std::shared_ptr< BaseSelectorvtxSelector
 
std::shared_ptr< BaseSelectortrkSelector
 
std::vector< std::string > regionSelections_
 
std::string selectionCfg_
 
std::string trkSelCfg_
 
TBranch * bfspart_ {nullptr}
 
TBranch * bvtxs_ {nullptr}
 
TBranch * btrks_ {nullptr}
 
TBranch * bevth_ {nullptr}
 
std::vector< Vertex * > * vtxs_ {}
 
std::vector< Particle * > * fspart_ {}
 
std::vector< Track * > * trks_ {}
 
EventHeaderevth_ {nullptr}
 
std::string anaName_ {"vtxAna"}
 
std::string vtxColl_ {"Vertices"}
 
std::string fspartColl_ {"FinalStateParticles"}
 
std::string trkColl_ {"GBLTracks"}
 
TTree * tree_ {nullptr}
 
std::shared_ptr< TrackHistos_vtx_histos
 
std::map< std::string, std::shared_ptr< BaseSelector > > _reg_vtx_selectors
 
std::map< std::string, std::shared_ptr< TrackHistos > > _reg_vtx_histos
 
std::map< std::string, std::shared_ptr< FlatTupleMaker > > _reg_tuples
 
std::vector< std::string > _regions
 
std::string histoCfg_ {""}
 
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
Processprocess_
 
TFile * outF_ {nullptr}
 
std::string name_
 

Detailed Description

Definition at line 29 of file TridentAnaProcessor.h.

Member Typedef Documentation

◆ reg_it

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

Definition at line 78 of file TridentAnaProcessor.h.

Constructor & Destructor Documentation

◆ TridentAnaProcessor()

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

◆ ~TridentAnaProcessor()

Member Function Documentation

◆ configure()

virtual 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.

◆ finalize()

virtual 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.

◆ initialize()

virtual 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.

◆ process()

virtual 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.

Member Data Documentation

◆ _ah

std::shared_ptr<AnaHelpers> _ah
private

Definition at line 85 of file TridentAnaProcessor.h.

◆ _reg_tuples

std::map<std::string, std::shared_ptr<FlatTupleMaker> > _reg_tuples
private

Definition at line 73 of file TridentAnaProcessor.h.

◆ _reg_vtx_histos

std::map<std::string, std::shared_ptr<TrackHistos> > _reg_vtx_histos
private

Definition at line 72 of file TridentAnaProcessor.h.

◆ _reg_vtx_selectors

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

Definition at line 71 of file TridentAnaProcessor.h.

◆ _regions

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

Definition at line 75 of file TridentAnaProcessor.h.

◆ _vtx_histos

std::shared_ptr<TrackHistos> _vtx_histos
private

Definition at line 68 of file TridentAnaProcessor.h.

◆ anaName_

std::string anaName_ {"vtxAna"}
private

Definition at line 62 of file TridentAnaProcessor.h.

◆ beamE_

double beamE_ {2.3}
private

Definition at line 83 of file TridentAnaProcessor.h.

◆ bevth_

TBranch* bevth_ {nullptr}
private

Definition at line 55 of file TridentAnaProcessor.h.

◆ bfspart_

TBranch* bfspart_ {nullptr}
private

Definition at line 52 of file TridentAnaProcessor.h.

◆ btrks_

TBranch* btrks_ {nullptr}
private

Definition at line 54 of file TridentAnaProcessor.h.

◆ bvtxs_

TBranch* bvtxs_ {nullptr}
private

Definition at line 53 of file TridentAnaProcessor.h.

◆ debug_

int debug_ {0}
private

Definition at line 90 of file TridentAnaProcessor.h.

◆ evth_

EventHeader* evth_ {nullptr}
private

Definition at line 60 of file TridentAnaProcessor.h.

◆ fspart_

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

Definition at line 58 of file TridentAnaProcessor.h.

◆ fspartColl_

std::string fspartColl_ {"FinalStateParticles"}
private

Definition at line 64 of file TridentAnaProcessor.h.

◆ histoCfg_

std::string histoCfg_ {""}
private

Definition at line 80 of file TridentAnaProcessor.h.

◆ isData

int isData {0}
private

Definition at line 84 of file TridentAnaProcessor.h.

◆ regionSelections_

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

Definition at line 46 of file TridentAnaProcessor.h.

◆ selectionCfg_

std::string selectionCfg_
private

Definition at line 48 of file TridentAnaProcessor.h.

◆ timeOffset_

double timeOffset_ {-999}
private

Definition at line 81 of file TridentAnaProcessor.h.

◆ tree_

TTree* tree_ {nullptr}
private

Definition at line 66 of file TridentAnaProcessor.h.

◆ trkColl_

std::string trkColl_ {"GBLTracks"}
private

Definition at line 65 of file TridentAnaProcessor.h.

◆ trks_

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

Definition at line 59 of file TridentAnaProcessor.h.

◆ trkSelCfg_

std::string trkSelCfg_
private

Definition at line 49 of file TridentAnaProcessor.h.

◆ trkSelector

std::shared_ptr<BaseSelector> trkSelector
private

Definition at line 45 of file TridentAnaProcessor.h.

◆ vtxColl_

std::string vtxColl_ {"Vertices"}
private

Definition at line 63 of file TridentAnaProcessor.h.

◆ vtxs_

std::vector<Vertex*>* vtxs_ {}
private

Definition at line 57 of file TridentAnaProcessor.h.

◆ vtxSelector

std::shared_ptr<BaseSelector> vtxSelector
private

Definition at line 44 of file TridentAnaProcessor.h.


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