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

#include <ClusterEfficiency2021.h>

Inheritance diagram for ClusterEfficiency2021:
Processor

Public Member Functions

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

EventBus bus_
std::unique_ptr< TTree > output_tree_
Cutflow event_cf_ {"event", "readout"}
std::shared_ptr< AnaHelpers > _ah
std::string vtxColl_ {"UnconstrainedV0Vertices_KF"}
std::string mcColl_ {"MCParticle"}
std::string trkColl_ {"KalmanFullTracks"}
bool isData_ {false}
bool isApSignal_ {false}
bool isSimpSignal_ {false}
int apPDG_ {622}
int signalMomPDG_ {622}
double calTimeOffset_ {0.0}
double clusterEnergyThresh_ {0.0}
double eventClusterThresh_ {0.2}
double drMatch_ {30.0}
bool debug_ {false}
long n_triggered_ {0}
long n_event_has_cluster_ {0}
long n_has_v0_ {0}
long n_multi_v0_ {0}
long n_first_pos_matched_ {0}
long n_first_ele_matched_ {0}
long n_any_pos_matched_ {0}
long n_any_ele_matched_ {0}
long n_trk_pos_matched_ {0}
long n_trk_ele_matched_ {0}
long n_trkpos_no_v0pos_ {0}
int n_printed_ {0}

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

Definition at line 26 of file ClusterEfficiency2021.h.

Constructor & Destructor Documentation

◆ ClusterEfficiency2021()

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

Definition at line 28 of file ClusterEfficiency2021.h.

◆ ~ClusterEfficiency2021()

~ClusterEfficiency2021 ( )
default

Member Function Documentation

◆ configure()

void configure ( const ParameterSet & parameters)
finalvirtual

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

Parameters
parametersParameterSet for configuration.

Reimplemented from Processor.

Definition at line 14 of file ClusterEfficiency2021.cxx.

◆ finalize()

void finalize ( )
finalvirtual

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

Implements Processor.

Definition at line 473 of file ClusterEfficiency2021.cxx.

◆ initialize()

void initialize ( TTree * tree)
finalvirtual

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

Parameters
tree

Implements Processor.

Definition at line 36 of file ClusterEfficiency2021.cxx.

◆ process()

bool process ( IEvent * ievent)
finalvirtual

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.

Definition at line 119 of file ClusterEfficiency2021.cxx.

◆ setFile()

void setFile ( TFile * outFile)
finalvirtual

Set output TFile for AnaProcessors.

Parameters
pointerto output TFile

Reimplemented from Processor.

Definition at line 57 of file ClusterEfficiency2021.cxx.

Member Data Documentation

◆ _ah

std::shared_ptr<AnaHelpers> _ah
private

Definition at line 40 of file ClusterEfficiency2021.h.

◆ apPDG_

int apPDG_ {622}
private

Definition at line 49 of file ClusterEfficiency2021.h.

◆ bus_

EventBus bus_
private

Definition at line 37 of file ClusterEfficiency2021.h.

◆ calTimeOffset_

double calTimeOffset_ {0.0}
private

Definition at line 51 of file ClusterEfficiency2021.h.

◆ clusterEnergyThresh_

double clusterEnergyThresh_ {0.0}
private

Definition at line 52 of file ClusterEfficiency2021.h.

◆ debug_

bool debug_ {false}
private

Definition at line 56 of file ClusterEfficiency2021.h.

◆ drMatch_

double drMatch_ {30.0}
private

Definition at line 55 of file ClusterEfficiency2021.h.

◆ event_cf_

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

Definition at line 39 of file ClusterEfficiency2021.h.

◆ eventClusterThresh_

double eventClusterThresh_ {0.2}
private

Definition at line 53 of file ClusterEfficiency2021.h.

◆ isApSignal_

bool isApSignal_ {false}
private

Definition at line 47 of file ClusterEfficiency2021.h.

◆ isData_

bool isData_ {false}
private

Definition at line 46 of file ClusterEfficiency2021.h.

◆ isSimpSignal_

bool isSimpSignal_ {false}
private

Definition at line 48 of file ClusterEfficiency2021.h.

◆ mcColl_

std::string mcColl_ {"MCParticle"}
private

Definition at line 43 of file ClusterEfficiency2021.h.

◆ n_any_ele_matched_

long n_any_ele_matched_ {0}
private

Definition at line 66 of file ClusterEfficiency2021.h.

◆ n_any_pos_matched_

long n_any_pos_matched_ {0}
private

Definition at line 65 of file ClusterEfficiency2021.h.

◆ n_event_has_cluster_

long n_event_has_cluster_ {0}
private

Definition at line 60 of file ClusterEfficiency2021.h.

◆ n_first_ele_matched_

long n_first_ele_matched_ {0}
private

Definition at line 64 of file ClusterEfficiency2021.h.

◆ n_first_pos_matched_

long n_first_pos_matched_ {0}
private

Definition at line 63 of file ClusterEfficiency2021.h.

◆ n_has_v0_

long n_has_v0_ {0}
private

Definition at line 61 of file ClusterEfficiency2021.h.

◆ n_multi_v0_

long n_multi_v0_ {0}
private

Definition at line 62 of file ClusterEfficiency2021.h.

◆ n_printed_

int n_printed_ {0}
private

Definition at line 71 of file ClusterEfficiency2021.h.

◆ n_triggered_

long n_triggered_ {0}
private

Definition at line 59 of file ClusterEfficiency2021.h.

◆ n_trk_ele_matched_

long n_trk_ele_matched_ {0}
private

Definition at line 69 of file ClusterEfficiency2021.h.

◆ n_trk_pos_matched_

long n_trk_pos_matched_ {0}
private

Definition at line 68 of file ClusterEfficiency2021.h.

◆ n_trkpos_no_v0pos_

long n_trkpos_no_v0pos_ {0}
private

Definition at line 70 of file ClusterEfficiency2021.h.

◆ output_tree_

std::unique_ptr<TTree> output_tree_
private

Definition at line 38 of file ClusterEfficiency2021.h.

◆ signalMomPDG_

int signalMomPDG_ {622}
private

Definition at line 50 of file ClusterEfficiency2021.h.

◆ trkColl_

std::string trkColl_ {"KalmanFullTracks"}
private

Definition at line 44 of file ClusterEfficiency2021.h.

◆ vtxColl_

std::string vtxColl_ {"UnconstrainedV0Vertices_KF"}
private

Definition at line 42 of file ClusterEfficiency2021.h.


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