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

Insert description here. more details. More...

#include <TrackHitAnaProcessor.h>

Inheritance diagram for TrackHitAnaProcessor:
Processor

Public Member Functions

 TrackHitAnaProcessor (const std::string &name, Process &process)
 Class constructor.
 
 ~TrackHitAnaProcessor ()
 
virtual void configure (const ParameterSet &parameters)
 Configure the Ana Processor.
 
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.
 
virtual void finalize ()
 Callback for the Processor to take any necessary action when the processing of events finishes.
 
- 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
 description
 

Private Attributes

std::vector< Track * > * tracks_ {}
 
TBranch * btracks_ {nullptr}
 description
 
std::string trkCollName_
 Track Collection name.
 
std::string selectionCfg_
 
std::shared_ptr< BaseSelectortrkSelector_
 description
 
std::vector< std::string > regionSelections_
 description
 
std::map< std::string, std::shared_ptr< BaseSelector > > reg_selectors_
 description
 
std::map< std::string, std::shared_ptr< TrackHistos > > reg_histos_
 description
 
std::vector< std::string > regions_
 description
 
std::string histCfgFilename_
 description
 
std::string truthHistCfgFilename_
 description
 
TrackHistostrkHistos_ {nullptr}
 description
 
TrackHistostruthHistos_ {nullptr}
 description
 
bool doTruth_ {false}
 description
 
int debug_ {0}
 debug level
 

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

Insert description here. more details.

Definition at line 35 of file TrackHitAnaProcessor.h.

Member Typedef Documentation

◆ reg_it

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

description

Definition at line 93 of file TrackHitAnaProcessor.h.

Constructor & Destructor Documentation

◆ TrackHitAnaProcessor()

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

Class constructor.

Parameters
nameName for this instance of the class.
processThe Process class associated with Processor, provided by the processing framework.

Definition at line 5 of file TrackHitAnaProcessor.cxx.

◆ ~TrackHitAnaProcessor()

Destructor

Definition at line 9 of file TrackHitAnaProcessor.cxx.

Member Function Documentation

◆ configure()

void configure ( const ParameterSet parameters)
virtual

Configure the Ana Processor.

Parameters
parametersThe configuration parameters

Reimplemented from Processor.

Definition at line 12 of file TrackHitAnaProcessor.cxx.

◆ finalize()

void finalize ( )
virtual

Callback for the Processor to take any necessary action when the processing of events finishes.

Implements Processor.

Definition at line 192 of file TrackHitAnaProcessor.cxx.

◆ initialize()

void initialize ( TTree *  tree)
virtual

Callback for the Processor to take any necessary action when the processing of events starts.

Parameters
tree

Implements Processor.

Definition at line 32 of file TrackHitAnaProcessor.cxx.

◆ process()

bool process ( IEvent ievent)
virtual

Process the event and put new data products into it.

Parameters
eventThe Event to process.

Implements Processor.

Definition at line 80 of file TrackHitAnaProcessor.cxx.

Member Data Documentation

◆ btracks_

TBranch* btracks_ {nullptr}
private

description

Definition at line 81 of file TrackHitAnaProcessor.h.

◆ debug_

int debug_ {0}
private

debug level

Definition at line 103 of file TrackHitAnaProcessor.h.

◆ doTruth_

bool doTruth_ {false}
private

description

Definition at line 102 of file TrackHitAnaProcessor.h.

◆ histCfgFilename_

std::string histCfgFilename_
private

description

Definition at line 98 of file TrackHitAnaProcessor.h.

◆ reg_histos_

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

description

Definition at line 92 of file TrackHitAnaProcessor.h.

◆ reg_selectors_

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

description

Definition at line 90 of file TrackHitAnaProcessor.h.

◆ regions_

std::vector<std::string> regions_
private

description

Definition at line 95 of file TrackHitAnaProcessor.h.

◆ regionSelections_

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

description

Definition at line 88 of file TrackHitAnaProcessor.h.

◆ selectionCfg_

std::string selectionCfg_
private

Definition at line 86 of file TrackHitAnaProcessor.h.

◆ tracks_

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

Container to hold all Track objects.

Definition at line 80 of file TrackHitAnaProcessor.h.

◆ trkCollName_

std::string trkCollName_
private

Track Collection name.

Definition at line 83 of file TrackHitAnaProcessor.h.

◆ trkHistos_

TrackHistos* trkHistos_ {nullptr}
private

description

Definition at line 100 of file TrackHitAnaProcessor.h.

◆ trkSelector_

std::shared_ptr<BaseSelector> trkSelector_
private

description

Definition at line 87 of file TrackHitAnaProcessor.h.

◆ truthHistCfgFilename_

std::string truthHistCfgFilename_
private

description

Definition at line 99 of file TrackHitAnaProcessor.h.

◆ truthHistos_

TrackHistos* truthHistos_ {nullptr}
private

description

Definition at line 101 of file TrackHitAnaProcessor.h.


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