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

Insert description here. more details. More...

#include <NewVertexAnaProcessor.h>

Inheritance diagram for NewVertexAnaProcessor:
Processor

Public Member Functions

 NewVertexAnaProcessor (const std::string &name, Process &process)
 Constructor.
 
 ~NewVertexAnaProcessor ()
 
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 * 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< 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 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::string pSmearingFile_ {""}
 
std::shared_ptr< TrackSmearingToolsmearingTool_
 
std::string pBiasingFile_ {""}
 
std::shared_ptr< TrackBiasingToolbiasingTool_
 
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
 
double bFieldScaleFactor_ = -1
 
int current_run_number_ {-999}
 track current run number
 

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 47 of file NewVertexAnaProcessor.h.

Member Typedef Documentation

◆ reg_it

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

description

Definition at line 135 of file NewVertexAnaProcessor.h.

◆ reg_mc_it

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

description

Definition at line 136 of file NewVertexAnaProcessor.h.

Constructor & Destructor Documentation

◆ NewVertexAnaProcessor()

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

Constructor.

Parameters
name
process

Definition at line 12 of file NewVertexAnaProcessor.cxx.

◆ ~NewVertexAnaProcessor()

Definition at line 18 of file NewVertexAnaProcessor.cxx.

Member Function Documentation

◆ configure()

void configure ( const ParameterSet parameters)
virtual

description

Parameters
parameters

Reimplemented from Processor.

Definition at line 20 of file NewVertexAnaProcessor.cxx.

◆ finalize()

void finalize ( )
virtual

description

Implements Processor.

Definition at line 1469 of file NewVertexAnaProcessor.cxx.

◆ initialize()

void initialize ( TTree *  tree)
virtual

description

Parameters
tree

Implements Processor.

Definition at line 66 of file NewVertexAnaProcessor.cxx.

◆ process()

bool process ( IEvent ievent)
virtual

description

Parameters
ievent
Returns
true
false

Implements Processor.

Definition at line 265 of file NewVertexAnaProcessor.cxx.

Member Data Documentation

◆ _ah

std::shared_ptr<AnaHelpers> _ah
private

description

Definition at line 145 of file NewVertexAnaProcessor.h.

◆ _mc_vtx_histos

std::shared_ptr<MCAnaHistos> _mc_vtx_histos
private

description

Definition at line 125 of file NewVertexAnaProcessor.h.

◆ _reg_mc_vtx_histos

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

description

Definition at line 130 of file NewVertexAnaProcessor.h.

◆ _reg_tuples

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

description

Definition at line 131 of file NewVertexAnaProcessor.h.

◆ _reg_vtx_histos

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

description

Definition at line 129 of file NewVertexAnaProcessor.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 128 of file NewVertexAnaProcessor.h.

◆ _regions

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

description

Definition at line 133 of file NewVertexAnaProcessor.h.

◆ _vtx_histos

std::shared_ptr<TrackHistos> _vtx_histos
private

description

Definition at line 124 of file NewVertexAnaProcessor.h.

◆ analysis_

std::string analysis_ {"vertex"}
private

description

Definition at line 143 of file NewVertexAnaProcessor.h.

◆ anaName_

std::string anaName_ {"vtxAna"}
private

description

Definition at line 109 of file NewVertexAnaProcessor.h.

◆ beamE_

double beamE_ {2.3}
private

In GeV. Default is 2016 value;.

Definition at line 141 of file NewVertexAnaProcessor.h.

◆ beamPosCfg_

std::string beamPosCfg_ {""}
private

json containing run dep beamspot positions

Definition at line 148 of file NewVertexAnaProcessor.h.

◆ beamPosCorrections_

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

holds beam position corrections

Definition at line 150 of file NewVertexAnaProcessor.h.

◆ becal_

TBranch* becal_ {nullptr}
private

description

Definition at line 100 of file NewVertexAnaProcessor.h.

◆ bevth_

TBranch* bevth_ {nullptr}
private

description

Definition at line 99 of file NewVertexAnaProcessor.h.

◆ bFieldScaleFactor_

double bFieldScaleFactor_ = -1
private

Definition at line 156 of file NewVertexAnaProcessor.h.

◆ bhits_

TBranch* bhits_ {nullptr}
private

description

Definition at line 97 of file NewVertexAnaProcessor.h.

◆ biasingTool_

std::shared_ptr<TrackBiasingTool> biasingTool_
private

Definition at line 122 of file NewVertexAnaProcessor.h.

◆ bmcParts_

TBranch* bmcParts_ {nullptr}
private

description

Definition at line 98 of file NewVertexAnaProcessor.h.

◆ bpc_configs_

json bpc_configs_
private

json object

Definition at line 149 of file NewVertexAnaProcessor.h.

◆ brMap_

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

description

Definition at line 94 of file NewVertexAnaProcessor.h.

◆ bts_

TBranch* bts_ {nullptr}
private

description

Definition at line 95 of file NewVertexAnaProcessor.h.

◆ bvtxs_

TBranch* bvtxs_ {nullptr}
private

description

Definition at line 96 of file NewVertexAnaProcessor.h.

◆ current_run_number_

int current_run_number_ {-999}
private

track current run number

Definition at line 157 of file NewVertexAnaProcessor.h.

◆ debug_

int debug_ {0}
private

Debug level.

Definition at line 147 of file NewVertexAnaProcessor.h.

◆ ecal_

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

description

Definition at line 104 of file NewVertexAnaProcessor.h.

◆ ecalColl_

std::string ecalColl_ {"RecoEcalClusters"}
private

description

Definition at line 113 of file NewVertexAnaProcessor.h.

◆ eleTrackTimeBias_

double eleTrackTimeBias_ = 0.0
private

Definition at line 153 of file NewVertexAnaProcessor.h.

◆ evth_

EventHeader* evth_ {nullptr}
private

description

Definition at line 102 of file NewVertexAnaProcessor.h.

◆ histoCfg_

std::string histoCfg_ {""}
private

description

Definition at line 138 of file NewVertexAnaProcessor.h.

◆ hitColl_

std::string hitColl_ {"RotatedHelicalTrackHits"}
private

description

Definition at line 112 of file NewVertexAnaProcessor.h.

◆ hits_

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

description

Definition at line 106 of file NewVertexAnaProcessor.h.

◆ isData_

int isData_ {0}
private

description

Definition at line 142 of file NewVertexAnaProcessor.h.

◆ isRadPDG_

int isRadPDG_ {622}
private

description

Definition at line 115 of file NewVertexAnaProcessor.h.

◆ makeFlatTuple_

int makeFlatTuple_ {0}
private

make true in config to save flat tuple

Definition at line 116 of file NewVertexAnaProcessor.h.

◆ mcColl_

std::string mcColl_ {"MCParticle"}
private

description

Definition at line 114 of file NewVertexAnaProcessor.h.

◆ mcHistoCfg_

std::string mcHistoCfg_ {""}
private

description

Definition at line 139 of file NewVertexAnaProcessor.h.

◆ mcParts_

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

description

Definition at line 107 of file NewVertexAnaProcessor.h.

◆ pBiasingFile_

std::string pBiasingFile_ {""}
private

Definition at line 121 of file NewVertexAnaProcessor.h.

◆ posTrackTimeBias_

double posTrackTimeBias_ = 0.0
private

Definition at line 154 of file NewVertexAnaProcessor.h.

◆ pSmearingFile_

std::string pSmearingFile_ {""}
private

Definition at line 119 of file NewVertexAnaProcessor.h.

◆ regionSelections_

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

description

Definition at line 91 of file NewVertexAnaProcessor.h.

◆ selectionCfg_

std::string selectionCfg_
private

description

Definition at line 93 of file NewVertexAnaProcessor.h.

◆ smearingTool_

std::shared_ptr<TrackSmearingTool> smearingTool_
private

Definition at line 120 of file NewVertexAnaProcessor.h.

◆ timeOffset_

double timeOffset_ {-999}
private

description

Definition at line 140 of file NewVertexAnaProcessor.h.

◆ tree_

TTree* tree_ {nullptr}
private

description

Definition at line 117 of file NewVertexAnaProcessor.h.

◆ ts_

TSData* ts_ {nullptr}
private

description

Definition at line 103 of file NewVertexAnaProcessor.h.

◆ tsColl_

std::string tsColl_ {"TSBank"}
private

description

Definition at line 110 of file NewVertexAnaProcessor.h.

◆ v0proj_fits_

json v0proj_fits_
private

json object v0proj

Definition at line 152 of file NewVertexAnaProcessor.h.

◆ v0ProjectionFitsCfg_

std::string v0ProjectionFitsCfg_ {""}
private

json file w run dependent v0 projection fits

Definition at line 151 of file NewVertexAnaProcessor.h.

◆ vtxColl_

std::string vtxColl_ {"Vertices"}
private

description

Definition at line 111 of file NewVertexAnaProcessor.h.

◆ vtxs_

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

description

Definition at line 105 of file NewVertexAnaProcessor.h.

◆ vtxSelector

std::shared_ptr<BaseSelector> vtxSelector
private

description

Definition at line 90 of file NewVertexAnaProcessor.h.


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