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

#include <PreselectAndCategorize.h>

Inheritance diagram for PreselectAndCategorize:
Processor PreselectAndCategorize2021 PreselectAndCategorizeSimp2016

Public Member Functions

 PreselectAndCategorize (const std::string &name, Process &process)
 ~PreselectAndCategorize ()=default
virtual void configure (const ParameterSet &parameters)
 Callback for the Processor to configure itself from the given set of parameters.
virtual void initialize (TTree *tree)
 Callback for the Processor to take any necessary action when the processing of events starts, such as creating histograms.
virtual void setFile (TFile *out_file)
 Set output TFile for AnaProcessors.
virtual bool process (IEvent *ievent)
 Process the event and put new data products into it.
virtual void finalize ()
 Callback for the Processor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities.
virtual void setVtxColl (std::string vtx_coll)
virtual void setMCColl (std::string mc_coll)
json preselect_json_load (const std::string &filepath)
bool getIsSignal () const
bool getIsData () const
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.

Protected Attributes

EventBus bus_
std::unique_ptr< TTree > output_tree_
std::string vtxColl_ {"UnconstrainedV0Vertices_KF"}
std::string mcColl_ {"MCParticle"}
 description
bool isData_ {false}
bool isSignal_ {false}
double calTimeOffset_ {0.0}
Cutflow vertex_cf_ {"vertex", "reconstructed"}
Cutflow event_cf_ {"event", "readout"}
std::unique_ptr< TH2F > n_vertices_h_
std::shared_ptr< TrackSmearingTool > smearingTool_
std::shared_ptr< AnaHelpers > _ah
 description
std::map< int, std::vector< double > > beamspot_corrections_
json v0proj_fits_
std::map< std::string, double > track_corrections_
Protected Attributes inherited from Processor
Process & process_
TFile * outF_ {nullptr}
std::string name_

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.

Detailed Description

Definition at line 253 of file PreselectAndCategorize.h.

Constructor & Destructor Documentation

◆ PreselectAndCategorize()

PreselectAndCategorize ( const std::string & name,
Process & process )
inline

Definition at line 255 of file PreselectAndCategorize.h.

◆ ~PreselectAndCategorize()

~PreselectAndCategorize ( )
default

Member Function Documentation

◆ configure()

void configure ( const ParameterSet & parameters)
virtual

Callback for the Processor to configure itself from the given set of parameters.

Parameters
parametersParameterSet for configuration.

Reimplemented from Processor.

Reimplemented in PreselectAndCategorize2021, and PreselectAndCategorizeSimp2016.

Definition at line 12 of file PreselectAndCategorize.cxx.

◆ finalize()

void finalize ( )
virtual

Callback for the Processor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities.

Implements Processor.

Reimplemented in PreselectAndCategorize2021, and PreselectAndCategorizeSimp2016.

Definition at line 178 of file PreselectAndCategorize.cxx.

◆ getIsData()

bool getIsData ( ) const
inline

Definition at line 283 of file PreselectAndCategorize.h.

◆ getIsSignal()

bool getIsSignal ( ) const
inline

Definition at line 279 of file PreselectAndCategorize.h.

◆ initialize()

void initialize ( TTree * tree)
virtual

Callback for the Processor to take any necessary action when the processing of events starts, such as creating histograms.

Parameters
tree

Implements Processor.

Reimplemented in PreselectAndCategorize2021, and PreselectAndCategorizeSimp2016.

Definition at line 23 of file PreselectAndCategorize.cxx.

◆ preselect_json_load()

json preselect_json_load ( const std::string & filepath)
inline

Definition at line 271 of file PreselectAndCategorize.h.

◆ process()

bool process ( IEvent * ievent)
virtual

Process the event and put new data products into it.

Parameters
eventThe Event to process.
Returns
status of the processing, false will move to next event and skip other processes.

Implements Processor.

Reimplemented in PreselectAndCategorize2021, and PreselectAndCategorizeSimp2016.

Definition at line 76 of file PreselectAndCategorize.cxx.

◆ setFile()

void setFile ( TFile * outFile)
virtual

Set output TFile for AnaProcessors.

Parameters
pointerto output TFile

Reimplemented from Processor.

Reimplemented in PreselectAndCategorize2021, and PreselectAndCategorizeSimp2016.

Definition at line 51 of file PreselectAndCategorize.cxx.

◆ setMCColl()

virtual void setMCColl ( std::string mc_coll)
inlinevirtual

Definition at line 267 of file PreselectAndCategorize.h.

◆ setVtxColl()

virtual void setVtxColl ( std::string vtx_coll)
inlinevirtual

Definition at line 264 of file PreselectAndCategorize.h.

Member Data Documentation

◆ _ah

std::shared_ptr<AnaHelpers> _ah
protected

description

Definition at line 301 of file PreselectAndCategorize.h.

◆ beamspot_corrections_

std::map<int,std::vector<double> > beamspot_corrections_
protected

Map of beamspot by run, currently not used but available I guess??

Definition at line 306 of file PreselectAndCategorize.h.

◆ bus_

EventBus bus_
protected

Definition at line 288 of file PreselectAndCategorize.h.

◆ calTimeOffset_

double calTimeOffset_ {0.0}
protected

Definition at line 295 of file PreselectAndCategorize.h.

◆ event_cf_

Cutflow event_cf_ {"event", "readout"}
protected

Definition at line 298 of file PreselectAndCategorize.h.

◆ isData_

bool isData_ {false}
protected

Definition at line 293 of file PreselectAndCategorize.h.

◆ isSignal_

bool isSignal_ {false}
protected

Definition at line 294 of file PreselectAndCategorize.h.

◆ mcColl_

std::string mcColl_ {"MCParticle"}
protected

description

Definition at line 292 of file PreselectAndCategorize.h.

◆ n_vertices_h_

std::unique_ptr<TH2F> n_vertices_h_
protected

Definition at line 299 of file PreselectAndCategorize.h.

◆ output_tree_

std::unique_ptr<TTree> output_tree_
protected

Definition at line 289 of file PreselectAndCategorize.h.

◆ smearingTool_

std::shared_ptr<TrackSmearingTool> smearingTool_
protected

Definition at line 300 of file PreselectAndCategorize.h.

◆ track_corrections_

std::map<std::string,double> track_corrections_
protected

Map of correction name to correction value for analysis-level corrections on tracks.

Definition at line 315 of file PreselectAndCategorize.h.

◆ v0proj_fits_

json v0proj_fits_
protected

Definition at line 309 of file PreselectAndCategorize.h.

◆ vertex_cf_

Cutflow vertex_cf_ {"vertex", "reconstructed"}
protected

Definition at line 297 of file PreselectAndCategorize.h.

◆ vtxColl_

std::string vtxColl_ {"UnconstrainedV0Vertices_KF"}
protected

Definition at line 291 of file PreselectAndCategorize.h.


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