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.
Loading...
Searching...
No Matches
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.
virtual void setFile (TFile *outFile)
 Set output TFile and create the output TTree.
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 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}
EventHeader * evth_ {nullptr}
std::vector< CalCluster * > * ecal_ {}
std::string trkCollName_
 Track Collection name.
std::string ecalCollName_ {"RecoEcalClusters"}
 Cluster Collection name.
std::string selectionCfg_
std::shared_ptr< BaseSelector > trkSelector_
 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
TrackHistos * trkHistos_ {nullptr}
 description
TrackHistos * truthHistos_ {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}
double feeClusterEnergyMin_ {2.5}
 time offset
double clusterTimeMin_ {40.0}
 minimum cluster time (data)
double clusterTimeMax_ {70.0}
 maximum cluster time (data)
double clusterTimeMinMC_ {40.0}
 minimum cluster time (MC)
double clusterTimeMaxMC_ {70.0}
 maximum cluster time (MC)
double mcTimeOffset_ {5.0}
 time offset applied to MC tracks
std::shared_ptr< TrackSmearingTool > smearingTool_
std::shared_ptr< TrackSmearingTool > smearingToolRel_
std::string pSmearingFile_ {""}
std::string smearingCfgFile_ {""}
bool doSmearing_ {false}
 Master switch for smearing.
double smearingFactor_ {1.0}
 Factor to multiply smearing parameters by.
bool requireTruthMatch_ {false}
 Require truth match for smearing.
bool smearOmega_ {false}
 Use omega (curvature) smearing instead of p smearing.
std::string smearingVariable_ {""}
 "flat", "nHits", "tanLambda", "phi0" — explicit lookup; "" = JSON default
std::string scaleCorrVariable_ {""}
 if set, omega data-mode scale uses pBinned_ means
std::shared_ptr< AnaHelpers > ah_ {nullptr}
std::unique_ptr< TTree > output_tree_ {nullptr}
Track track_out_
 original (unsmeared) track
Track track_smeared_out_
 smeared track (identical to track_out_ if no smearing)
double p_smear_ratio_out_ {1.0}
 smeared_p / original_p (1 if no smearing)
bool L1_axial_out_ {false}
bool L1_stereo_out_ {false}
bool L2_axial_out_ {false}
bool L2_stereo_out_ {false}
bool L3_axial_out_ {false}
bool L3_stereo_out_ {false}
TH1D * psmear_h_
TH1D * psmear_top_h_
TH1D * psmear_bot_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_
TH1D * z0smear_h_
TH1D * z0smear_top_h_
TH1D * z0smear_bot_h_
TH1D * omega_h_
TH1D * omega_top_h_
TH1D * omega_bot_h_
TH1D * omegasmear_h_
TH1D * omegasmear_top_h_
TH1D * omegasmear_bot_h_
TH2D * omega_vs_p_hh_
TH2D * omega_vs_tanL_hh_
TH2D * omega_vs_tanL_top_hh_
TH2D * omega_vs_tanL_bot_hh_
TH2D * omegasmear_vs_tanL_hh_
TH2D * omegasmear_vs_tanL_top_hh_
TH2D * omegasmear_vs_tanL_bot_hh_
TH2D * omega_vs_phi0_hh_
TH2D * omega_vs_phi0_top_hh_
TH2D * omega_vs_phi0_bot_hh_
TH2D * omegasmear_vs_phi0_hh_
TH2D * omegasmear_vs_phi0_top_hh_
TH2D * omegasmear_vs_phi0_bot_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
Process & process_
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 109 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 5 of file TrackingAnaProcessor.cxx.

◆ ~TrackingAnaProcessor()

Destructor

Definition at line 9 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 12 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 542 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 80 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 233 of file TrackingAnaProcessor.cxx.

◆ setFile()

void setFile ( TFile * outFile)
virtual

Set output TFile and create the output TTree.

Reimplemented from Processor.

Definition at line 66 of file TrackingAnaProcessor.cxx.

Member Data Documentation

◆ ah_

std::shared_ptr<AnaHelpers> ah_ {nullptr}
private

Definition at line 144 of file TrackingAnaProcessor.h.

◆ becal_

TBranch* becal_ {nullptr}
private

Clusters

Definition at line 94 of file TrackingAnaProcessor.h.

◆ bevth_

TBranch* bevth_ {nullptr}
private

Event header branch.

Definition at line 91 of file TrackingAnaProcessor.h.

◆ btracks_

TBranch* btracks_ {nullptr}
private

description

Definition at line 88 of file TrackingAnaProcessor.h.

◆ clusterTimeMax_

double clusterTimeMax_ {70.0}
private

maximum cluster time (data)

Definition at line 126 of file TrackingAnaProcessor.h.

◆ clusterTimeMaxMC_

double clusterTimeMaxMC_ {70.0}
private

maximum cluster time (MC)

Definition at line 128 of file TrackingAnaProcessor.h.

◆ clusterTimeMin_

double clusterTimeMin_ {40.0}
private

minimum cluster time (data)

Definition at line 125 of file TrackingAnaProcessor.h.

◆ clusterTimeMinMC_

double clusterTimeMinMC_ {40.0}
private

minimum cluster time (MC)

Definition at line 127 of file TrackingAnaProcessor.h.

◆ debug_

int debug_ {0}
private

is data

debug level

Definition at line 121 of file TrackingAnaProcessor.h.

◆ doSmearing_

bool doSmearing_ {false}
private

Master switch for smearing.

Definition at line 136 of file TrackingAnaProcessor.h.

◆ doTruth_

bool doTruth_ {false}
private

description

Definition at line 119 of file TrackingAnaProcessor.h.

◆ ecal_

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

Definition at line 98 of file TrackingAnaProcessor.h.

◆ ecalCollName_

std::string ecalCollName_ {"RecoEcalClusters"}
private

Cluster Collection name.

Definition at line 101 of file TrackingAnaProcessor.h.

◆ evth_

EventHeader* evth_ {nullptr}
private

Definition at line 97 of file TrackingAnaProcessor.h.

◆ feeClusterEnergyMin_

double feeClusterEnergyMin_ {2.5}
private

time offset

minimum cluster energy for FEE selection

Definition at line 124 of file TrackingAnaProcessor.h.

◆ histCfgFilename_

std::string histCfgFilename_
private

description

Definition at line 112 of file TrackingAnaProcessor.h.

◆ isData_

int isData_ {1}
private

Definition at line 120 of file TrackingAnaProcessor.h.

◆ L1_axial_out_

bool L1_axial_out_ {false}
private

Definition at line 152 of file TrackingAnaProcessor.h.

◆ L1_stereo_out_

bool L1_stereo_out_ {false}
private

Definition at line 153 of file TrackingAnaProcessor.h.

◆ L2_axial_out_

bool L2_axial_out_ {false}
private

Definition at line 154 of file TrackingAnaProcessor.h.

◆ L2_stereo_out_

bool L2_stereo_out_ {false}
private

Definition at line 155 of file TrackingAnaProcessor.h.

◆ L3_axial_out_

bool L3_axial_out_ {false}
private

Definition at line 156 of file TrackingAnaProcessor.h.

◆ L3_stereo_out_

bool L3_stereo_out_ {false}
private

Definition at line 157 of file TrackingAnaProcessor.h.

◆ mcTimeOffset_

double mcTimeOffset_ {5.0}
private

time offset applied to MC tracks

Definition at line 129 of file TrackingAnaProcessor.h.

◆ omega_bot_h_

TH1D* omega_bot_h_
private

Definition at line 178 of file TrackingAnaProcessor.h.

◆ omega_h_

TH1D* omega_h_
private

Definition at line 176 of file TrackingAnaProcessor.h.

◆ omega_top_h_

TH1D* omega_top_h_
private

Definition at line 177 of file TrackingAnaProcessor.h.

◆ omega_vs_p_hh_

TH2D* omega_vs_p_hh_
private

Definition at line 182 of file TrackingAnaProcessor.h.

◆ omega_vs_phi0_bot_hh_

TH2D* omega_vs_phi0_bot_hh_
private

Definition at line 194 of file TrackingAnaProcessor.h.

◆ omega_vs_phi0_hh_

TH2D* omega_vs_phi0_hh_
private

Definition at line 192 of file TrackingAnaProcessor.h.

◆ omega_vs_phi0_top_hh_

TH2D* omega_vs_phi0_top_hh_
private

Definition at line 193 of file TrackingAnaProcessor.h.

◆ omega_vs_tanL_bot_hh_

TH2D* omega_vs_tanL_bot_hh_
private

Definition at line 187 of file TrackingAnaProcessor.h.

◆ omega_vs_tanL_hh_

TH2D* omega_vs_tanL_hh_
private

Definition at line 185 of file TrackingAnaProcessor.h.

◆ omega_vs_tanL_top_hh_

TH2D* omega_vs_tanL_top_hh_
private

Definition at line 186 of file TrackingAnaProcessor.h.

◆ omegasmear_bot_h_

TH1D* omegasmear_bot_h_
private

Definition at line 181 of file TrackingAnaProcessor.h.

◆ omegasmear_h_

TH1D* omegasmear_h_
private

Definition at line 179 of file TrackingAnaProcessor.h.

◆ omegasmear_top_h_

TH1D* omegasmear_top_h_
private

Definition at line 180 of file TrackingAnaProcessor.h.

◆ omegasmear_vs_phi0_bot_hh_

TH2D* omegasmear_vs_phi0_bot_hh_
private

Definition at line 197 of file TrackingAnaProcessor.h.

◆ omegasmear_vs_phi0_hh_

TH2D* omegasmear_vs_phi0_hh_
private

Definition at line 195 of file TrackingAnaProcessor.h.

◆ omegasmear_vs_phi0_top_hh_

TH2D* omegasmear_vs_phi0_top_hh_
private

Definition at line 196 of file TrackingAnaProcessor.h.

◆ omegasmear_vs_tanL_bot_hh_

TH2D* omegasmear_vs_tanL_bot_hh_
private

Definition at line 190 of file TrackingAnaProcessor.h.

◆ omegasmear_vs_tanL_hh_

TH2D* omegasmear_vs_tanL_hh_
private

Definition at line 188 of file TrackingAnaProcessor.h.

◆ omegasmear_vs_tanL_top_hh_

TH2D* omegasmear_vs_tanL_top_hh_
private

Definition at line 189 of file TrackingAnaProcessor.h.

◆ output_tree_

std::unique_ptr<TTree> output_tree_ {nullptr}
private

Definition at line 147 of file TrackingAnaProcessor.h.

◆ p_smear_ratio_out_

double p_smear_ratio_out_ {1.0}
private

smeared_p / original_p (1 if no smearing)

Definition at line 150 of file TrackingAnaProcessor.h.

◆ psmear_bot_h_

TH1D* psmear_bot_h_
private

Definition at line 160 of file TrackingAnaProcessor.h.

◆ psmear_h_

TH1D* psmear_h_
private

Definition at line 158 of file TrackingAnaProcessor.h.

◆ psmear_rel_h_

TH1D* psmear_rel_h_
private

Definition at line 165 of file TrackingAnaProcessor.h.

◆ psmear_top_h_

TH1D* psmear_top_h_
private

Definition at line 159 of file TrackingAnaProcessor.h.

◆ psmear_vs_nHits_bot_hh_

TH2D* psmear_vs_nHits_bot_hh_
private

Definition at line 163 of file TrackingAnaProcessor.h.

◆ psmear_vs_nHits_bot_rel_hh_

TH2D* psmear_vs_nHits_bot_rel_hh_
private

Definition at line 168 of file TrackingAnaProcessor.h.

◆ psmear_vs_nHits_hh_

TH2D* psmear_vs_nHits_hh_
private

Definition at line 161 of file TrackingAnaProcessor.h.

◆ psmear_vs_nHits_rel_hh_

TH2D* psmear_vs_nHits_rel_hh_
private

Definition at line 166 of file TrackingAnaProcessor.h.

◆ psmear_vs_nHits_top_hh_

TH2D* psmear_vs_nHits_top_hh_
private

Definition at line 162 of file TrackingAnaProcessor.h.

◆ psmear_vs_nHits_top_rel_hh_

TH2D* psmear_vs_nHits_top_rel_hh_
private

Definition at line 167 of file TrackingAnaProcessor.h.

◆ pSmearingFile_

std::string pSmearingFile_ {""}
private

Definition at line 134 of file TrackingAnaProcessor.h.

◆ reg_histos_

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

description

Definition at line 108 of file TrackingAnaProcessor.h.

◆ reg_selectors_

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

description

Definition at line 107 of file TrackingAnaProcessor.h.

◆ regions_

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

Definition at line 117 of file TrackingAnaProcessor.h.

◆ regionSelections_

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

track selections

Definition at line 106 of file TrackingAnaProcessor.h.

◆ requireTruthMatch_

bool requireTruthMatch_ {false}
private

Require truth match for smearing.

Definition at line 138 of file TrackingAnaProcessor.h.

◆ scaleCorrVariable_

std::string scaleCorrVariable_ {""}
private

if set, omega data-mode scale uses pBinned_ means

Definition at line 141 of file TrackingAnaProcessor.h.

◆ seed_

int seed_ {0}
private

seed

Definition at line 122 of file TrackingAnaProcessor.h.

◆ selectionCfg_

std::string selectionCfg_
private

Definition at line 104 of file TrackingAnaProcessor.h.

◆ smearingCfgFile_

std::string smearingCfgFile_ {""}
private

Definition at line 135 of file TrackingAnaProcessor.h.

◆ smearingFactor_

double smearingFactor_ {1.0}
private

Factor to multiply smearing parameters by.

Definition at line 137 of file TrackingAnaProcessor.h.

◆ smearingTool_

std::shared_ptr<TrackSmearingTool> smearingTool_
private

Definition at line 132 of file TrackingAnaProcessor.h.

◆ smearingToolRel_

std::shared_ptr<TrackSmearingTool> smearingToolRel_
private

Definition at line 133 of file TrackingAnaProcessor.h.

◆ smearingVariable_

std::string smearingVariable_ {""}
private

"flat", "nHits", "tanLambda", "phi0" — explicit lookup; "" = JSON default

Definition at line 140 of file TrackingAnaProcessor.h.

◆ smearOmega_

bool smearOmega_ {false}
private

Use omega (curvature) smearing instead of p smearing.

Definition at line 139 of file TrackingAnaProcessor.h.

◆ time_offset_

float time_offset_ {0}
private

Definition at line 123 of file TrackingAnaProcessor.h.

◆ track_out_

Track track_out_
private

original (unsmeared) track

Definition at line 148 of file TrackingAnaProcessor.h.

◆ track_smeared_out_

Track track_smeared_out_
private

smeared track (identical to track_out_ if no smearing)

Definition at line 149 of file TrackingAnaProcessor.h.

◆ tracks_

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

Container to hold all Track objects.

Definition at line 87 of file TrackingAnaProcessor.h.

◆ trkCollName_

std::string trkCollName_
private

Track Collection name.

Definition at line 100 of file TrackingAnaProcessor.h.

◆ trkHistos_

TrackHistos* trkHistos_ {nullptr}
private

description

Definition at line 114 of file TrackingAnaProcessor.h.

◆ trkSelector_

std::shared_ptr<BaseSelector> trkSelector_
private

description

Definition at line 105 of file TrackingAnaProcessor.h.

◆ truthHistCfgFilename_

std::string truthHistCfgFilename_
private

description

Definition at line 113 of file TrackingAnaProcessor.h.

◆ truthHistos_

TrackHistos* truthHistos_ {nullptr}
private

description

Definition at line 115 of file TrackingAnaProcessor.h.

◆ z0smear_bot_h_

TH1D* z0smear_bot_h_
private

Definition at line 173 of file TrackingAnaProcessor.h.

◆ z0smear_h_

TH1D* z0smear_h_
private

Definition at line 171 of file TrackingAnaProcessor.h.

◆ z0smear_top_h_

TH1D* z0smear_top_h_
private

Definition at line 172 of file TrackingAnaProcessor.h.


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