1#ifndef __FEE_ANAPROCESSOR_H__
2#define __FEE_ANAPROCESSOR_H__
13#include "TClonesArray.h"
92 virtual void setFile(TFile* outFile);
97 std::vector<Particle*>*
fsps_{};
130 typedef std::map<std::string, std::shared_ptr<TrackHistos>>::iterator
reg_it;
190 std::shared_ptr<AnaHelpers>
ah_{
nullptr};
Helper class for hipster analysis.
Class defining methods used to access event information and data collections.
Class used to encapsulate information about a mc particle.
Class used to encapsulate information about a particle.
Base classes for all user event processing components to extend.
Class used to decode TS words.
Class used to encapsulate track information.
Class used to encapsulate tracker hit information.
bool vetoExtraClusters_
veto if extra clusters are in-time with the FEE cluster
TH2D * omegasmear_vs_phi0_bot_hh_
double run_scale_out_
data momentum scale applied to this track (1 if none); raw p = p / scale
TBranch * bfsps_
description
virtual bool process(IEvent *ievent)
Process the event and put new data products into it.
bool hitPatternScaleDataOnly_
only apply the scale on data (MC left untouched)
std::vector< CalCluster * > * ecalClusters_
std::map< int, double > hitPatternScale_
hit_pattern -> scale factor
std::string trkCollName_
Track Collection name (histo/smearing naming).
double hit_pattern_scale_out_
scale factor applied to this track's momentum
std::string selectionCfg_
std::string truthHistCfgFilename_
description
int n_tracks_intime_out_
tracks in-time with the FEE cluster
bool requireCluster_
require an associated FEE cluster passing E/time/(E/p)
double calTimeOffsetMC_
cluster-time offset subtracted before the cut (MC)
TH2D * omegasmear_vs_tanL_top_hh_
virtual void configure(const ParameterSet ¶meters)
Configure the Ana Processor.
Track track_out_
original (unsmeared) track
double clusterTimeMax_
maximum corrected cluster time (data)
TH2D * psmear_vs_nHits_rel_hh_
virtual void finalize()
Callback for the Processor to take any necessary action when the processing of events finishes.
TH2D * omega_vs_tanL_bot_hh_
TH2D * omegasmear_vs_tanL_bot_hh_
std::vector< Track * > * allTracks_
TH2D * omegasmear_vs_phi0_hh_
std::map< std::string, std::shared_ptr< TrackHistos > > reg_histos_
description
bool doSmearing_
MC smearing on/off for this job.
std::vector< std::string > regionSelections_
track selections
double clusterTimeMinMC_
minimum corrected cluster time (MC)
std::vector< Particle * > * fsps_
TH2D * omega_vs_tanL_top_hh_
virtual void initialize(TTree *tree)
Callback for the Processor to take any necessary action when the processing of events starts.
virtual void setFile(TFile *outFile)
Set output TFile and create the output TTree.
std::string fspCollName_
FinalStateParticle collection name.
double hitPatternDefaultScale_
fallback scale for unlisted patterns
double vetoClusterEnergyMin_
only clusters above this energy count toward the cluster veto (GeV)
TH2D * omega_vs_phi0_top_hh_
std::string mcColl_
MCParticle collection name.
std::vector< MCParticle * > * mcParticles_
TH2D * omegasmear_vs_tanL_hh_
Track track_smeared_out_
smeared track (identical to track_out_ if no smearing)
bool vetoExtraTracks_
veto if extra tracks are in-time with the FEE cluster
std::string hitPatternScaleFile_
JSON of per-hit_pattern scale factors.
std::map< std::string, std::shared_ptr< TrackHistos > >::iterator reg_it
description
bool doHitPatternScale_
master switch for the hit-pattern scale correction
double eop_out_
associated cluster E / track p
double clu_E_out_
associated cluster energy
double vetoTrackTimeWindow_
|t_trk - t_FEEclu(corrected)| window for the track veto (ns)
std::string histCfgFilename_
description
TrackHistos * trkHistos_
description
std::shared_ptr< TrackCorrector > corrector_
int n_hits_out_
number of tracker hits on the FEE track
TH2D * psmear_vs_nHits_hh_
FeeAnaProcessor(const std::string &name, Process &process)
Class constructor.
std::map< std::string, std::shared_ptr< BaseSelector > > reg_selectors_
description
int n_clusters_intime_out_
clusters in-time with the FEE cluster (>energy threshold)
TH2D * omegasmear_vs_phi0_top_hh_
double p_smear_ratio_out_
smeared_p / original_p (1 if no smearing)
TH2D * omega_vs_phi0_bot_hh_
bool hit_pattern_scale_isdefault_out_
true if the default (fallback) scale was used
double clusterTimeMin_
minimum corrected cluster time (data)
double calTimeOffset_
cluster-time offset subtracted before the cut (data)
double clu_time_out_
associated cluster time
double feeClusterEnergyMin_
time offset
double clusterTimeMaxMC_
maximum corrected cluster time (MC)
TH2D * psmear_vs_nHits_bot_rel_hh_
bool requireElectron_
require the FSP to be an electron (charge < 0)
double eopMax_
maximum cluster-energy / track-momentum (E/p)
TrackHistos * truthHistos_
description
Track track_corr_out_
momentum-scale-corrected track
int requireTruthMatch_
-1: use the JSON value; 0/1: override it
TH2D * psmear_vs_nHits_bot_hh_
std::shared_ptr< AnaHelpers > ah_
double eopMin_
minimum cluster-energy / track-momentum (E/p)
TH2D * psmear_vs_nHits_top_hh_
std::string trackCorrectionsCfg_
TrackCorrector JSON ("" = no corrections).
double vetoClusterTimeWindow_
|t_clu - t_FEEclu| window for the cluster veto (ns)
TH2D * psmear_vs_nHits_top_rel_hh_
bool requireFeeTrigger_
require the FEE trigger (TSBank FEE_Top||FEE_Bot); data only
std::vector< std::string > regions_
double mcTimeOffset_
time offset applied to MC tracks
std::shared_ptr< BaseSelector > trkSelector_
description
std::unique_ptr< TTree > output_tree_
Processor(const std::string &name, Process &process)
Class constructor.
virtual bool process()
Process the histograms and generate analysis output.