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

Insert description here. more details. More...

#include <VertexAnaProcessor.h>

Inheritance diagram for VertexAnaProcessor:
Processor

Public Member Functions

 VertexAnaProcessor (const std::string &name, Process &process)
 Constructor.
 
 ~VertexAnaProcessor ()
 
virtual bool process (IEvent *ievent)
 description
 
virtual void initialize (TTree *tree)
 description
 
virtual void finalize ()
 description
 
virtual void configure (const ParameterSet &parameters)
 description
 
- 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
 
typedef std::map< std::string, std::shared_ptr< MCAnaHistos > >::iterator reg_mc_it
 description
 

Private Attributes

std::shared_ptr< BaseSelectorvtxSelector
 description
 
std::vector< std::string > regionSelections_
 description
 
std::string selectionCfg_
 description
 
std::map< const char *, int, char_cmpbrMap_
 description
 
TBranch * bts_ {nullptr}
 description
 
TBranch * bvtxs_ {nullptr}
 description
 
TBranch * bhits_ {nullptr}
 description
 
TBranch * btrks_ {nullptr}
 description
 
TBranch * bmcParts_ {nullptr}
 description
 
TBranch * bevth_ {nullptr}
 description
 
TBranch * becal_ {nullptr}
 description
 
EventHeaderevth_ {nullptr}
 description
 
TSDatats_ {nullptr}
 description
 
std::vector< CalCluster * > * ecal_ {}
 description
 
std::vector< Vertex * > * vtxs_ {}
 description
 
std::vector< Track * > * trks_ {}
 description
 
std::vector< TrackerHit * > * hits_ {}
 description
 
std::vector< MCParticle * > * mcParts_ {}
 description
 
std::string anaName_ {"vtxAna"}
 description
 
std::string tsColl_ {"TSBank"}
 description
 
std::string vtxColl_ {"Vertices"}
 description
 
std::string hitColl_ {"RotatedHelicalTrackHits"}
 description
 
std::string trkColl_ {"GBLTracks"}
 description
 
std::string ecalColl_ {"RecoEcalClusters"}
 description
 
std::string mcColl_ {"MCParticle"}
 description
 
int isRadPDG_ {622}
 description
 
int makeFlatTuple_ {0}
 make true in config to save flat tuple
 
TTree * tree_ {nullptr}
 description
 
std::shared_ptr< TrackHistos_vtx_histos
 description
 
std::shared_ptr< MCAnaHistos_mc_vtx_histos
 description
 
std::map< std::string, std::shared_ptr< BaseSelector > > _reg_vtx_selectors
 description
 
std::map< std::string, std::shared_ptr< TrackHistos > > _reg_vtx_histos
 description
 
std::map< std::string, std::shared_ptr< MCAnaHistos > > _reg_mc_vtx_histos
 description
 
std::map< std::string, std::shared_ptr< FlatTupleMaker > > _reg_tuples
 description
 
std::vector< std::string > _regions
 description
 
std::string histoCfg_ {""}
 description
 
std::string mcHistoCfg_ {""}
 description
 
double timeOffset_ {-999}
 description
 
double beamE_ {2.3}
 In GeV. Default is 2016 value;.
 
int isData_ {0}
 description
 
std::string analysis_ {"vertex"}
 description
 
std::shared_ptr< AnaHelpers_ah
 description
 
int debug_ {0}
 Debug level.
 
std::string beamPosCfg_ {""}
 json containing run dep beamspot positions
 
json bpc_configs_
 json object
 
std::vector< double > beamPosCorrections_ = {0.0,0.0,0.0}
 holds beam position corrections
 
std::string v0ProjectionFitsCfg_ {""}
 json file w run dependent v0 projection fits
 
json v0proj_fits_
 json object v0proj
 
double eleTrackTimeBias_ = 0.0
 
double posTrackTimeBias_ = 0.0
 
int current_run_number_ {-999}
 track current run number
 
bool mc_reg_on_ = false
 

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 45 of file VertexAnaProcessor.h.

Member Typedef Documentation

◆ reg_it

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

description

Definition at line 131 of file VertexAnaProcessor.h.

◆ reg_mc_it

typedef std::map<std::string,std::shared_ptr<MCAnaHistos>>::iterator reg_mc_it
private

description

Definition at line 132 of file VertexAnaProcessor.h.

Constructor & Destructor Documentation

◆ VertexAnaProcessor()

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

Constructor.

Parameters
name
process

Definition at line 12 of file VertexAnaProcessor.cxx.

◆ ~VertexAnaProcessor()

Definition at line 18 of file VertexAnaProcessor.cxx.

Member Function Documentation

◆ configure()

void configure ( const ParameterSet parameters)
virtual

description

Parameters
parameters

Reimplemented from Processor.

Definition at line 20 of file VertexAnaProcessor.cxx.

◆ finalize()

void finalize ( )
virtual

description

Implements Processor.

Definition at line 1394 of file VertexAnaProcessor.cxx.

◆ initialize()

void initialize ( TTree *  tree)
virtual

description

Parameters
tree

Implements Processor.

Definition at line 62 of file VertexAnaProcessor.cxx.

◆ process()

bool process ( IEvent ievent)
virtual

description

Parameters
ievent
Returns
true
false

Implements Processor.

Definition at line 245 of file VertexAnaProcessor.cxx.

Member Data Documentation

◆ _ah

std::shared_ptr<AnaHelpers> _ah
private

description

Definition at line 141 of file VertexAnaProcessor.h.

◆ _mc_vtx_histos

std::shared_ptr<MCAnaHistos> _mc_vtx_histos
private

description

Definition at line 121 of file VertexAnaProcessor.h.

◆ _reg_mc_vtx_histos

std::map<std::string, std::shared_ptr<MCAnaHistos> > _reg_mc_vtx_histos
private

description

Definition at line 126 of file VertexAnaProcessor.h.

◆ _reg_tuples

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

description

Definition at line 127 of file VertexAnaProcessor.h.

◆ _reg_vtx_histos

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

description

Definition at line 125 of file VertexAnaProcessor.h.

◆ _reg_vtx_selectors

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

description

Todo:
Duplicate.. We can make a single class.. ?

Definition at line 124 of file VertexAnaProcessor.h.

◆ _regions

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

description

Definition at line 129 of file VertexAnaProcessor.h.

◆ _vtx_histos

std::shared_ptr<TrackHistos> _vtx_histos
private

description

Definition at line 120 of file VertexAnaProcessor.h.

◆ analysis_

std::string analysis_ {"vertex"}
private

description

Definition at line 139 of file VertexAnaProcessor.h.

◆ anaName_

std::string anaName_ {"vtxAna"}
private

description

Definition at line 109 of file VertexAnaProcessor.h.

◆ beamE_

double beamE_ {2.3}
private

In GeV. Default is 2016 value;.

Definition at line 137 of file VertexAnaProcessor.h.

◆ beamPosCfg_

std::string beamPosCfg_ {""}
private

json containing run dep beamspot positions

Definition at line 144 of file VertexAnaProcessor.h.

◆ beamPosCorrections_

std::vector<double> beamPosCorrections_ = {0.0,0.0,0.0}
private

holds beam position corrections

Definition at line 146 of file VertexAnaProcessor.h.

◆ becal_

TBranch* becal_ {nullptr}
private

description

Definition at line 99 of file VertexAnaProcessor.h.

◆ bevth_

TBranch* bevth_ {nullptr}
private

description

Definition at line 98 of file VertexAnaProcessor.h.

◆ bhits_

TBranch* bhits_ {nullptr}
private

description

Definition at line 95 of file VertexAnaProcessor.h.

◆ bmcParts_

TBranch* bmcParts_ {nullptr}
private

description

Definition at line 97 of file VertexAnaProcessor.h.

◆ bpc_configs_

json bpc_configs_
private

json object

Definition at line 145 of file VertexAnaProcessor.h.

◆ brMap_

std::map<const char*, int, char_cmp> brMap_
private

description

Definition at line 92 of file VertexAnaProcessor.h.

◆ btrks_

TBranch* btrks_ {nullptr}
private

description

Definition at line 96 of file VertexAnaProcessor.h.

◆ bts_

TBranch* bts_ {nullptr}
private

description

Definition at line 93 of file VertexAnaProcessor.h.

◆ bvtxs_

TBranch* bvtxs_ {nullptr}
private

description

Definition at line 94 of file VertexAnaProcessor.h.

◆ current_run_number_

int current_run_number_ {-999}
private

track current run number

Definition at line 151 of file VertexAnaProcessor.h.

◆ debug_

int debug_ {0}
private

Debug level.

Definition at line 143 of file VertexAnaProcessor.h.

◆ ecal_

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

description

Definition at line 103 of file VertexAnaProcessor.h.

◆ ecalColl_

std::string ecalColl_ {"RecoEcalClusters"}
private

description

Definition at line 114 of file VertexAnaProcessor.h.

◆ eleTrackTimeBias_

double eleTrackTimeBias_ = 0.0
private

Definition at line 149 of file VertexAnaProcessor.h.

◆ evth_

EventHeader* evth_ {nullptr}
private

description

Definition at line 101 of file VertexAnaProcessor.h.

◆ histoCfg_

std::string histoCfg_ {""}
private

description

Definition at line 134 of file VertexAnaProcessor.h.

◆ hitColl_

std::string hitColl_ {"RotatedHelicalTrackHits"}
private

description

Definition at line 112 of file VertexAnaProcessor.h.

◆ hits_

std::vector<TrackerHit*>* hits_ {}
private

description

Definition at line 106 of file VertexAnaProcessor.h.

◆ isData_

int isData_ {0}
private

description

Definition at line 138 of file VertexAnaProcessor.h.

◆ isRadPDG_

int isRadPDG_ {622}
private

description

Definition at line 116 of file VertexAnaProcessor.h.

◆ makeFlatTuple_

int makeFlatTuple_ {0}
private

make true in config to save flat tuple

Definition at line 117 of file VertexAnaProcessor.h.

◆ mc_reg_on_

bool mc_reg_on_ = false
private

Definition at line 153 of file VertexAnaProcessor.h.

◆ mcColl_

std::string mcColl_ {"MCParticle"}
private

description

Definition at line 115 of file VertexAnaProcessor.h.

◆ mcHistoCfg_

std::string mcHistoCfg_ {""}
private

description

Definition at line 135 of file VertexAnaProcessor.h.

◆ mcParts_

std::vector<MCParticle*>* mcParts_ {}
private

description

Definition at line 107 of file VertexAnaProcessor.h.

◆ posTrackTimeBias_

double posTrackTimeBias_ = 0.0
private

Definition at line 150 of file VertexAnaProcessor.h.

◆ regionSelections_

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

description

Definition at line 89 of file VertexAnaProcessor.h.

◆ selectionCfg_

std::string selectionCfg_
private

description

Definition at line 91 of file VertexAnaProcessor.h.

◆ timeOffset_

double timeOffset_ {-999}
private

description

Definition at line 136 of file VertexAnaProcessor.h.

◆ tree_

TTree* tree_ {nullptr}
private

description

Definition at line 118 of file VertexAnaProcessor.h.

◆ trkColl_

std::string trkColl_ {"GBLTracks"}
private

description

Definition at line 113 of file VertexAnaProcessor.h.

◆ trks_

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

description

Definition at line 105 of file VertexAnaProcessor.h.

◆ ts_

TSData* ts_ {nullptr}
private

description

Definition at line 102 of file VertexAnaProcessor.h.

◆ tsColl_

std::string tsColl_ {"TSBank"}
private

description

Definition at line 110 of file VertexAnaProcessor.h.

◆ v0proj_fits_

json v0proj_fits_
private

json object v0proj

Definition at line 148 of file VertexAnaProcessor.h.

◆ v0ProjectionFitsCfg_

std::string v0ProjectionFitsCfg_ {""}
private

json file w run dependent v0 projection fits

Definition at line 147 of file VertexAnaProcessor.h.

◆ vtxColl_

std::string vtxColl_ {"Vertices"}
private

description

Definition at line 111 of file VertexAnaProcessor.h.

◆ vtxs_

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

description

Definition at line 104 of file VertexAnaProcessor.h.

◆ vtxSelector

std::shared_ptr<BaseSelector> vtxSelector
private

description

Definition at line 88 of file VertexAnaProcessor.h.


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