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

Insert description here. more details. More...

#include <TrackingAnaProcessor.h>

Inheritance diagram for TrackingAnaProcessor:
Processor

Public Member Functions

 TrackingAnaProcessor (const std::string &name, Process &process)
 Class constructor.
 
 ~TrackingAnaProcessor ()
 
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
 
TBranch * bevth_ {nullptr}
 
TBranch * becal_ {nullptr}
 
EventHeaderevth_ {nullptr}
 
std::vector< CalCluster * > * ecal_ {}
 
std::string trkCollName_
 Track Collection name.
 
std::string ecalCollName_ {"RecoEcalClusters"}
 Cluster Collection name.
 
std::string selectionCfg_
 
std::shared_ptr< BaseSelectortrkSelector_
 description
 
std::vector< std::string > regionSelections_
 track selections
 
std::map< std::string, std::shared_ptr< BaseSelector > > reg_selectors_
 description
 
std::map< std::string, std::shared_ptr< TrackHistos > > reg_histos_
 description
 
std::string histCfgFilename_
 description
 
std::string truthHistCfgFilename_
 description
 
TrackHistostrkHistos_ {nullptr}
 description
 
TrackHistostruthHistos_ {nullptr}
 description
 
std::vector< std::string > regions_
 
bool doTruth_ {false}
 description
 
int isData_ {1}
 
int debug_ {0}
 is data
 
int seed_ {0}
 seed
 
float time_offset_ {0}
 
std::shared_ptr< TrackSmearingToolsmearingTool_
 time offset
 
std::shared_ptr< TrackSmearingToolsmearingToolRel_
 
std::string pSmearingFile_ {""}
 
TH1D * psmear_h_
 
TH2D * psmear_vs_nHits_hh_
 
TH2D * psmear_vs_nHits_top_hh_
 
TH2D * psmear_vs_nHits_bot_hh_
 
TH1D * psmear_rel_h_
 
TH2D * psmear_vs_nHits_rel_hh_
 
TH2D * psmear_vs_nHits_top_rel_hh_
 
TH2D * psmear_vs_nHits_bot_rel_hh_
 

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 36 of file TrackingAnaProcessor.h.

Member Typedef Documentation

◆ reg_it

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

description

Definition at line 104 of file TrackingAnaProcessor.h.

Constructor & Destructor Documentation

◆ TrackingAnaProcessor()

TrackingAnaProcessor ( 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 6 of file TrackingAnaProcessor.cxx.

◆ ~TrackingAnaProcessor()

Destructor

Definition at line 10 of file TrackingAnaProcessor.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 13 of file TrackingAnaProcessor.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 336 of file TrackingAnaProcessor.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 42 of file TrackingAnaProcessor.cxx.

◆ process()

bool process ( IEvent ievent)
virtual

Process the event and put new data products into it.

Parameters
ieventThe Event to process.

Implements Processor.

Definition at line 145 of file TrackingAnaProcessor.cxx.

Member Data Documentation

◆ becal_

TBranch* becal_ {nullptr}
private

Clusters

Definition at line 89 of file TrackingAnaProcessor.h.

◆ bevth_

TBranch* bevth_ {nullptr}
private

Event header branch.

Definition at line 86 of file TrackingAnaProcessor.h.

◆ btracks_

TBranch* btracks_ {nullptr}
private

description

Definition at line 83 of file TrackingAnaProcessor.h.

◆ debug_

int debug_ {0}
private

is data

debug level

Definition at line 116 of file TrackingAnaProcessor.h.

◆ doTruth_

bool doTruth_ {false}
private

description

Definition at line 114 of file TrackingAnaProcessor.h.

◆ ecal_

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

Definition at line 93 of file TrackingAnaProcessor.h.

◆ ecalCollName_

std::string ecalCollName_ {"RecoEcalClusters"}
private

Cluster Collection name.

Definition at line 96 of file TrackingAnaProcessor.h.

◆ evth_

EventHeader* evth_ {nullptr}
private

Definition at line 92 of file TrackingAnaProcessor.h.

◆ histCfgFilename_

std::string histCfgFilename_
private

description

Definition at line 107 of file TrackingAnaProcessor.h.

◆ isData_

int isData_ {1}
private

Definition at line 115 of file TrackingAnaProcessor.h.

◆ psmear_h_

TH1D* psmear_h_
private

Definition at line 124 of file TrackingAnaProcessor.h.

◆ psmear_rel_h_

TH1D* psmear_rel_h_
private

Definition at line 129 of file TrackingAnaProcessor.h.

◆ psmear_vs_nHits_bot_hh_

TH2D* psmear_vs_nHits_bot_hh_
private

Definition at line 127 of file TrackingAnaProcessor.h.

◆ psmear_vs_nHits_bot_rel_hh_

TH2D* psmear_vs_nHits_bot_rel_hh_
private

Definition at line 132 of file TrackingAnaProcessor.h.

◆ psmear_vs_nHits_hh_

TH2D* psmear_vs_nHits_hh_
private

Definition at line 125 of file TrackingAnaProcessor.h.

◆ psmear_vs_nHits_rel_hh_

TH2D* psmear_vs_nHits_rel_hh_
private

Definition at line 130 of file TrackingAnaProcessor.h.

◆ psmear_vs_nHits_top_hh_

TH2D* psmear_vs_nHits_top_hh_
private

Definition at line 126 of file TrackingAnaProcessor.h.

◆ psmear_vs_nHits_top_rel_hh_

TH2D* psmear_vs_nHits_top_rel_hh_
private

Definition at line 131 of file TrackingAnaProcessor.h.

◆ pSmearingFile_

std::string pSmearingFile_ {""}
private

Definition at line 123 of file TrackingAnaProcessor.h.

◆ reg_histos_

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

description

Definition at line 103 of file TrackingAnaProcessor.h.

◆ reg_selectors_

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

description

Definition at line 102 of file TrackingAnaProcessor.h.

◆ regions_

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

Definition at line 112 of file TrackingAnaProcessor.h.

◆ regionSelections_

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

track selections

Definition at line 101 of file TrackingAnaProcessor.h.

◆ seed_

int seed_ {0}
private

seed

Definition at line 117 of file TrackingAnaProcessor.h.

◆ selectionCfg_

std::string selectionCfg_
private

Definition at line 99 of file TrackingAnaProcessor.h.

◆ smearingTool_

std::shared_ptr<TrackSmearingTool> smearingTool_
private

time offset

Definition at line 121 of file TrackingAnaProcessor.h.

◆ smearingToolRel_

std::shared_ptr<TrackSmearingTool> smearingToolRel_
private

Definition at line 122 of file TrackingAnaProcessor.h.

◆ time_offset_

float time_offset_ {0}
private

Definition at line 118 of file TrackingAnaProcessor.h.

◆ tracks_

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

Container to hold all Track objects.

Definition at line 82 of file TrackingAnaProcessor.h.

◆ trkCollName_

std::string trkCollName_
private

Track Collection name.

Definition at line 95 of file TrackingAnaProcessor.h.

◆ trkHistos_

TrackHistos* trkHistos_ {nullptr}
private

description

Definition at line 109 of file TrackingAnaProcessor.h.

◆ trkSelector_

std::shared_ptr<BaseSelector> trkSelector_
private

description

Definition at line 100 of file TrackingAnaProcessor.h.

◆ truthHistCfgFilename_

std::string truthHistCfgFilename_
private

description

Definition at line 108 of file TrackingAnaProcessor.h.

◆ truthHistos_

TrackHistos* truthHistos_ {nullptr}
private

description

Definition at line 110 of file TrackingAnaProcessor.h.


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