1#ifndef __TRACKING_ANAPROCESSOR_H__
2#define __TRACKING_ANAPROCESSOR_H__
13#include "TClonesArray.h"
82 virtual void setFile(TFile* outFile);
98 std::vector<CalCluster*>*
ecal_{};
109 typedef std::map<std::string, std::shared_ptr<TrackHistos>>::iterator
reg_it;
144 std::shared_ptr<AnaHelpers>
ah_{
nullptr};
Helper class for hipster analysis.
Class defining methods used to access event information and data collections.
Base classes for all user event processing components to extend.
Class used to encapsulate track information.
Processor(const std::string &name, Process &process)
Class constructor.
virtual bool process()
Process the histograms and generate analysis output.
bool smearOmega_
Use omega (curvature) smearing instead of p smearing.
TH2D * omegasmear_vs_phi0_bot_hh_
std::shared_ptr< TrackSmearingTool > smearingTool_
virtual bool process(IEvent *ievent)
Process the event and put new data products into it.
std::string ecalCollName_
Cluster Collection name.
std::string smearingCfgFile_
std::string trkCollName_
Track Collection name.
std::string selectionCfg_
std::string truthHistCfgFilename_
description
std::shared_ptr< TrackSmearingTool > smearingToolRel_
TH2D * omegasmear_vs_tanL_top_hh_
virtual void configure(const ParameterSet ¶meters)
Configure the Ana Processor.
bool requireTruthMatch_
Require truth match for smearing.
Track track_out_
original (unsmeared) track
double clusterTimeMax_
maximum 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_
TH2D * omegasmear_vs_phi0_hh_
std::map< std::string, std::shared_ptr< TrackHistos > > reg_histos_
description
double smearingFactor_
Factor to multiply smearing parameters by.
std::string scaleCorrVariable_
if set, omega data-mode scale uses pBinned_ means
bool doSmearing_
Master switch for smearing.
std::vector< std::string > regionSelections_
track selections
double clusterTimeMinMC_
minimum cluster time (MC)
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.
TH2D * omega_vs_phi0_top_hh_
TH2D * omegasmear_vs_tanL_hh_
Track track_smeared_out_
smeared track (identical to track_out_ if no smearing)
std::map< std::string, std::shared_ptr< TrackHistos > >::iterator reg_it
description
std::vector< CalCluster * > * ecal_
std::string smearingVariable_
"flat", "nHits", "tanLambda", "phi0" — explicit lookup; "" = JSON default
TrackingAnaProcessor(const std::string &name, Process &process)
Class constructor.
std::string histCfgFilename_
description
TrackHistos * trkHistos_
description
TH2D * psmear_vs_nHits_hh_
std::string pSmearingFile_
std::map< std::string, std::shared_ptr< BaseSelector > > reg_selectors_
description
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_
double clusterTimeMin_
minimum cluster time (data)
double feeClusterEnergyMin_
time offset
TBranch * btracks_
description
double clusterTimeMaxMC_
maximum cluster time (MC)
TH2D * psmear_vs_nHits_bot_rel_hh_
TrackHistos * truthHistos_
description
TH2D * psmear_vs_nHits_bot_hh_
std::shared_ptr< AnaHelpers > ah_
TH2D * psmear_vs_nHits_top_hh_
TH2D * psmear_vs_nHits_top_rel_hh_
std::vector< Track * > * tracks_
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_