|
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.
|
Select Full Energy Electron (FEE) events for the momentum-smearing calibration. More...
#include <FeeAnaProcessor.h>
Public Member Functions | |
| FeeAnaProcessor (const std::string &name, Process &process) | |
| Class constructor. | |
| ~FeeAnaProcessor () | |
| virtual void | configure (const ParameterSet ¶meters) |
| 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< Particle * > * | fsps_ {} |
| TBranch * | bfsps_ {nullptr} |
| description | |
| TBranch * | bevth_ {nullptr} |
| EventHeader * | evth_ {nullptr} |
| TSData * | tsdata_ {nullptr} |
| TBranch * | btsdata_ {nullptr} |
| std::vector< CalCluster * > * | ecalClusters_ {nullptr} |
| TBranch * | becalClusters_ {nullptr} |
| std::vector< Track * > * | allTracks_ {nullptr} |
| TBranch * | ballTracks_ {nullptr} |
| std::string | mcColl_ {"MCParticle"} |
| MCParticle collection name. | |
| std::vector< MCParticle * > * | mcParticles_ {nullptr} |
| TBranch * | bmcParticles_ {nullptr} |
| std::string | trkCollName_ |
| Track Collection name (histo/smearing naming). | |
| std::string | fspCollName_ {"FinalStateParticles_KF"} |
| FinalStateParticle 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_ {-6.0} |
| minimum corrected cluster time (data) | |
| double | clusterTimeMax_ { 6.0} |
| maximum corrected cluster time (data) | |
| double | clusterTimeMinMC_ {-6.0} |
| minimum corrected cluster time (MC) | |
| double | clusterTimeMaxMC_ { 6.0} |
| maximum corrected cluster time (MC) | |
| double | calTimeOffset_ {0.0} |
| cluster-time offset subtracted before the cut (data) | |
| double | calTimeOffsetMC_ {0.0} |
| cluster-time offset subtracted before the cut (MC) | |
| double | mcTimeOffset_ {5.0} |
| time offset applied to MC tracks | |
| bool | requireElectron_ {true} |
| require the FSP to be an electron (charge < 0) | |
| bool | requireCluster_ {true} |
| require an associated FEE cluster passing E/time/(E/p) | |
| bool | requireFeeTrigger_ {false} |
| require the FEE trigger (TSBank FEE_Top||FEE_Bot); data only | |
| double | eopMin_ {0.0} |
| minimum cluster-energy / track-momentum (E/p) | |
| double | eopMax_ {99.0} |
| maximum cluster-energy / track-momentum (E/p) | |
| bool | vetoExtraClusters_ {false} |
| veto if extra clusters are in-time with the FEE cluster | |
| bool | vetoExtraTracks_ {false} |
| veto if extra tracks are in-time with the FEE cluster | |
| double | vetoClusterTimeWindow_ {8.0} |
| |t_clu - t_FEEclu| window for the cluster veto (ns) | |
| double | vetoTrackTimeWindow_ {8.0} |
| |t_trk - t_FEEclu(corrected)| window for the track veto (ns) | |
| double | vetoClusterEnergyMin_ {0.5} |
| only clusters above this energy count toward the cluster veto (GeV) | |
| std::string | trackCorrectionsCfg_ {""} |
| TrackCorrector JSON ("" = no corrections). | |
| std::shared_ptr< TrackCorrector > | corrector_ |
| bool | doSmearing_ {false} |
| MC smearing on/off for this job. | |
| int | requireTruthMatch_ {-1} |
| -1: use the JSON value; 0/1: override it | |
| double | run_scale_out_ {1.0} |
| data momentum scale applied to this track (1 if none); raw p = p / scale | |
| std::string | hitPatternScaleFile_ {""} |
| JSON of per-hit_pattern scale factors. | |
| bool | doHitPatternScale_ {false} |
| master switch for the hit-pattern scale correction | |
| bool | hitPatternScaleDataOnly_ {true} |
| only apply the scale on data (MC left untouched) | |
| std::map< int, double > | hitPatternScale_ |
| hit_pattern -> scale factor | |
| double | hitPatternDefaultScale_ {1.0} |
| fallback scale for unlisted patterns | |
| 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) | |
| double | clu_E_out_ {-9999.0} |
| associated cluster energy | |
| double | clu_time_out_ {-9999.0} |
| associated cluster time | |
| double | eop_out_ {-1.0} |
| associated cluster E / track p | |
| int | n_clusters_intime_out_ {0} |
| clusters in-time with the FEE cluster (>energy threshold) | |
| int | n_tracks_intime_out_ {0} |
| tracks in-time with the FEE cluster | |
| 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} |
| bool | L4_axial_out_ {false} |
| bool | L4_stereo_out_ {false} |
| bool | L1_out_ {false} |
| bool | L2_out_ {false} |
| bool | L3_out_ {false} |
| bool | L4_out_ {false} |
| bool | is_L1_out_ {false} |
| bool | is_L2_out_ {false} |
| bool | is_L3_out_ {false} |
| int | hit_pattern_out_ {0} |
| int | n_hits_out_ {0} |
| number of tracker hits on the FEE track | |
| Track | track_corr_out_ |
| momentum-scale-corrected track | |
| double | hit_pattern_scale_out_ {1.0} |
| scale factor applied to this track's momentum | |
| bool | hit_pattern_scale_isdefault_out_ {false} |
| true if the default (fallback) scale was used | |
| bool | truth_matched_out_ {false} |
| bool | has_truth_link_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_ |
Select Full Energy Electron (FEE) events for the momentum-smearing calibration.
Unlike TrackingAnaProcessor (which loops over a bare Track collection), this processor loops over the FinalStateParticles, where each Track is already associated to its ECal cluster at the LCIO stage. An FEE candidate is an electron (charge < 0) whose associated cluster looks like a full-energy electron (energy / time / E-over-p), passing the usual track-quality cuts.
Definition at line 46 of file FeeAnaProcessor.h.
|
private |
description
Definition at line 130 of file FeeAnaProcessor.h.
| FeeAnaProcessor | ( | const std::string & | name, |
| Process & | process ) |
Class constructor.
| name | Name for this instance of the class. |
| process | The Process class associated with Processor, provided by the processing framework. |
Definition at line 8 of file FeeAnaProcessor.cxx.
| ~FeeAnaProcessor | ( | ) |
Destructor
Definition at line 12 of file FeeAnaProcessor.cxx.
|
virtual |
Configure the Ana Processor.
| parameters | The configuration parameters |
Reimplemented from Processor.
Definition at line 15 of file FeeAnaProcessor.cxx.
|
virtual |
Callback for the Processor to take any necessary action when the processing of events finishes.
Implements Processor.
Definition at line 744 of file FeeAnaProcessor.cxx.
|
virtual |
Callback for the Processor to take any necessary action when the processing of events starts.
| tree |
Implements Processor.
Definition at line 139 of file FeeAnaProcessor.cxx.
|
virtual |
Process the event and put new data products into it.
| ievent | The Event to process. |
Implements Processor.
Definition at line 289 of file FeeAnaProcessor.cxx.
|
virtual |
Set output TFile and create the output TTree.
Reimplemented from Processor.
Definition at line 103 of file FeeAnaProcessor.cxx.
|
private |
Definition at line 190 of file FeeAnaProcessor.h.
|
private |
Definition at line 113 of file FeeAnaProcessor.h.
|
private |
Definition at line 114 of file FeeAnaProcessor.h.
|
private |
Definition at line 112 of file FeeAnaProcessor.h.
|
private |
Event header branch.
Definition at line 101 of file FeeAnaProcessor.h.
|
private |
description
Definition at line 98 of file FeeAnaProcessor.h.
|
private |
Definition at line 119 of file FeeAnaProcessor.h.
|
private |
Definition at line 108 of file FeeAnaProcessor.h.
|
private |
cluster-time offset subtracted before the cut (data)
Definition at line 154 of file FeeAnaProcessor.h.
|
private |
cluster-time offset subtracted before the cut (MC)
Definition at line 155 of file FeeAnaProcessor.h.
|
private |
associated cluster energy
Definition at line 198 of file FeeAnaProcessor.h.
|
private |
associated cluster time
Definition at line 199 of file FeeAnaProcessor.h.
|
private |
maximum corrected cluster time (data)
Definition at line 151 of file FeeAnaProcessor.h.
|
private |
maximum corrected cluster time (MC)
Definition at line 153 of file FeeAnaProcessor.h.
|
private |
minimum corrected cluster time (data)
Definition at line 150 of file FeeAnaProcessor.h.
|
private |
minimum corrected cluster time (MC)
Definition at line 152 of file FeeAnaProcessor.h.
|
private |
Definition at line 175 of file FeeAnaProcessor.h.
|
private |
|
private |
master switch for the hit-pattern scale correction
Definition at line 184 of file FeeAnaProcessor.h.
|
private |
MC smearing on/off for this job.
Definition at line 176 of file FeeAnaProcessor.h.
|
private |
description
Definition at line 140 of file FeeAnaProcessor.h.
|
private |
Definition at line 111 of file FeeAnaProcessor.h.
|
private |
associated cluster E / track p
Definition at line 200 of file FeeAnaProcessor.h.
|
private |
maximum cluster-energy / track-momentum (E/p)
Definition at line 161 of file FeeAnaProcessor.h.
|
private |
minimum cluster-energy / track-momentum (E/p)
Definition at line 160 of file FeeAnaProcessor.h.
|
private |
Definition at line 104 of file FeeAnaProcessor.h.
|
private |
time offset
minimum energy of the associated FEE cluster
Definition at line 147 of file FeeAnaProcessor.h.
|
private |
FinalStateParticle collection name.
Definition at line 122 of file FeeAnaProcessor.h.
|
private |
Container to hold all FinalStateParticle objects (track + associated cluster).
Definition at line 97 of file FeeAnaProcessor.h.
|
private |
Definition at line 239 of file FeeAnaProcessor.h.
|
private |
description
Definition at line 133 of file FeeAnaProcessor.h.
|
private |
Definition at line 225 of file FeeAnaProcessor.h.
|
private |
true if the default (fallback) scale was used
Definition at line 233 of file FeeAnaProcessor.h.
|
private |
scale factor applied to this track's momentum
Definition at line 232 of file FeeAnaProcessor.h.
|
private |
fallback scale for unlisted patterns
Definition at line 187 of file FeeAnaProcessor.h.
|
private |
hit_pattern -> scale factor
Definition at line 186 of file FeeAnaProcessor.h.
|
private |
only apply the scale on data (MC left untouched)
Definition at line 185 of file FeeAnaProcessor.h.
|
private |
JSON of per-hit_pattern scale factors.
Definition at line 183 of file FeeAnaProcessor.h.
|
private |
Definition at line 219 of file FeeAnaProcessor.h.
|
private |
Definition at line 220 of file FeeAnaProcessor.h.
|
private |
Definition at line 221 of file FeeAnaProcessor.h.
|
private |
Definition at line 141 of file FeeAnaProcessor.h.
|
private |
Definition at line 205 of file FeeAnaProcessor.h.
|
private |
Definition at line 214 of file FeeAnaProcessor.h.
|
private |
Definition at line 206 of file FeeAnaProcessor.h.
|
private |
Definition at line 207 of file FeeAnaProcessor.h.
|
private |
Definition at line 215 of file FeeAnaProcessor.h.
|
private |
Definition at line 208 of file FeeAnaProcessor.h.
|
private |
Definition at line 209 of file FeeAnaProcessor.h.
|
private |
Definition at line 216 of file FeeAnaProcessor.h.
|
private |
Definition at line 210 of file FeeAnaProcessor.h.
|
private |
Definition at line 211 of file FeeAnaProcessor.h.
|
private |
Definition at line 217 of file FeeAnaProcessor.h.
|
private |
Definition at line 212 of file FeeAnaProcessor.h.
|
private |
MCParticle collection name.
Definition at line 117 of file FeeAnaProcessor.h.
|
private |
Definition at line 118 of file FeeAnaProcessor.h.
|
private |
time offset applied to MC tracks
Definition at line 156 of file FeeAnaProcessor.h.
|
private |
clusters in-time with the FEE cluster (>energy threshold)
Definition at line 202 of file FeeAnaProcessor.h.
|
private |
number of tracker hits on the FEE track
Definition at line 226 of file FeeAnaProcessor.h.
|
private |
tracks in-time with the FEE cluster
Definition at line 203 of file FeeAnaProcessor.h.
|
private |
Definition at line 260 of file FeeAnaProcessor.h.
|
private |
Definition at line 258 of file FeeAnaProcessor.h.
|
private |
Definition at line 259 of file FeeAnaProcessor.h.
|
private |
Definition at line 264 of file FeeAnaProcessor.h.
|
private |
Definition at line 276 of file FeeAnaProcessor.h.
|
private |
Definition at line 274 of file FeeAnaProcessor.h.
|
private |
Definition at line 275 of file FeeAnaProcessor.h.
|
private |
Definition at line 269 of file FeeAnaProcessor.h.
|
private |
Definition at line 267 of file FeeAnaProcessor.h.
|
private |
Definition at line 268 of file FeeAnaProcessor.h.
|
private |
Definition at line 263 of file FeeAnaProcessor.h.
|
private |
Definition at line 261 of file FeeAnaProcessor.h.
|
private |
Definition at line 262 of file FeeAnaProcessor.h.
|
private |
Definition at line 279 of file FeeAnaProcessor.h.
|
private |
Definition at line 277 of file FeeAnaProcessor.h.
|
private |
Definition at line 278 of file FeeAnaProcessor.h.
|
private |
Definition at line 272 of file FeeAnaProcessor.h.
|
private |
Definition at line 270 of file FeeAnaProcessor.h.
|
private |
Definition at line 271 of file FeeAnaProcessor.h.
|
private |
Definition at line 193 of file FeeAnaProcessor.h.
|
private |
smeared_p / original_p (1 if no smearing)
Definition at line 196 of file FeeAnaProcessor.h.
|
private |
Definition at line 242 of file FeeAnaProcessor.h.
|
private |
Definition at line 240 of file FeeAnaProcessor.h.
|
private |
Definition at line 247 of file FeeAnaProcessor.h.
|
private |
Definition at line 241 of file FeeAnaProcessor.h.
|
private |
Definition at line 245 of file FeeAnaProcessor.h.
|
private |
Definition at line 250 of file FeeAnaProcessor.h.
|
private |
Definition at line 243 of file FeeAnaProcessor.h.
|
private |
Definition at line 248 of file FeeAnaProcessor.h.
|
private |
Definition at line 244 of file FeeAnaProcessor.h.
|
private |
Definition at line 249 of file FeeAnaProcessor.h.
|
private |
description
Definition at line 129 of file FeeAnaProcessor.h.
|
private |
description
Definition at line 128 of file FeeAnaProcessor.h.
|
private |
Definition at line 138 of file FeeAnaProcessor.h.
|
private |
track selections
Definition at line 127 of file FeeAnaProcessor.h.
|
private |
require an associated FEE cluster passing E/time/(E/p)
Definition at line 158 of file FeeAnaProcessor.h.
|
private |
require the FSP to be an electron (charge < 0)
Definition at line 157 of file FeeAnaProcessor.h.
|
private |
require the FEE trigger (TSBank FEE_Top||FEE_Bot); data only
Definition at line 159 of file FeeAnaProcessor.h.
|
private |
-1: use the JSON value; 0/1: override it
Definition at line 177 of file FeeAnaProcessor.h.
|
private |
data momentum scale applied to this track (1 if none); raw p = p / scale
Definition at line 178 of file FeeAnaProcessor.h.
|
private |
seed
Definition at line 143 of file FeeAnaProcessor.h.
|
private |
Definition at line 125 of file FeeAnaProcessor.h.
|
private |
Definition at line 144 of file FeeAnaProcessor.h.
|
private |
momentum-scale-corrected track
Definition at line 231 of file FeeAnaProcessor.h.
|
private |
original (unsmeared) track
Definition at line 194 of file FeeAnaProcessor.h.
|
private |
smeared track (identical to track_out_ if no smearing)
Definition at line 195 of file FeeAnaProcessor.h.
|
private |
TrackCorrector JSON ("" = no corrections).
Definition at line 174 of file FeeAnaProcessor.h.
|
private |
Track Collection name (histo/smearing naming).
Definition at line 121 of file FeeAnaProcessor.h.
|
private |
description
Definition at line 135 of file FeeAnaProcessor.h.
|
private |
description
Definition at line 126 of file FeeAnaProcessor.h.
|
private |
Definition at line 238 of file FeeAnaProcessor.h.
|
private |
description
Definition at line 134 of file FeeAnaProcessor.h.
|
private |
description
Definition at line 136 of file FeeAnaProcessor.h.
|
private |
Definition at line 107 of file FeeAnaProcessor.h.
|
private |
only clusters above this energy count toward the cluster veto (GeV)
Definition at line 170 of file FeeAnaProcessor.h.
|
private |
|t_clu - t_FEEclu| window for the cluster veto (ns)
Definition at line 168 of file FeeAnaProcessor.h.
|
private |
veto if extra clusters are in-time with the FEE cluster
Definition at line 166 of file FeeAnaProcessor.h.
|
private |
veto if extra tracks are in-time with the FEE cluster
Definition at line 167 of file FeeAnaProcessor.h.
|
private |
|t_trk - t_FEEclu(corrected)| window for the track veto (ns)
Definition at line 169 of file FeeAnaProcessor.h.
|
private |
Definition at line 255 of file FeeAnaProcessor.h.
|
private |
Definition at line 253 of file FeeAnaProcessor.h.
|
private |
Definition at line 254 of file FeeAnaProcessor.h.