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.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ECalDataProcessor Class Reference

Insert description here. more details. More...

#include <ECalDataProcessor.h>

Inheritance diagram for ECalDataProcessor:
Processor

Public Member Functions

 ECalDataProcessor (const std::string &name, Process &process)
 Class constructor.
 
 ~ECalDataProcessor ()
 
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.
 
virtual bool process (IEvent *event)
 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.
 
- 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 void setFile (TFile *outFile)
 Set output TFile for AnaProcessors.
 
virtual bool process ()
 Process the histograms and generate analysis output.
 

Private Member Functions

UTIL::BitFieldValue getIdentifierFieldValue (std::string field, EVENT::CalorimeterHit *hit)
 Method to unpack field value from a calorimeter hit ID.
 

Private Attributes

std::vector< CalHit * > cal_hits_
 
std::string hitCollLcio_ {"EcalCalHits"}
 description
 
std::string hitCollRoot_ {"RecoEcalHits"}
 description
 
std::vector< CalCluster * > clusters_
 
std::string clusCollLcio_ {"EcalClustersCorr"}
 description
 
std::string clusCollRoot_ {"RecoEcalClusters"}
 description
 
const std::string encoder_string_ {"system:6,layer:2,ix:-8,iy:-6"}
 
int debug_ {0}
 Debug Level.
 

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
Processprocess_
 
TFile * outF_ {nullptr}
 
std::string name_
 

Detailed Description

Insert description here. more details.

Definition at line 46 of file ECalDataProcessor.h.

Constructor & Destructor Documentation

◆ ECalDataProcessor()

ECalDataProcessor ( const std::string &  name,
Process process 
)

Class constructor.

Parameters
nameName for this instance of the class.
processThe Process class associated with Processor, provided by the processing framework.

Definition at line 10 of file ECalDataProcessor.cxx.

◆ ~ECalDataProcessor()

Destructor

Definition at line 14 of file ECalDataProcessor.cxx.

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.

Definition at line 17 of file ECalDataProcessor.cxx.

◆ finalize()

void finalize ( )
virtual

Callback for the Processor to take any necessary action when the processing of events finishes.

Implements Processor.

Definition at line 171 of file ECalDataProcessor.cxx.

◆ getIdentifierFieldValue()

UTIL::BitFieldValue getIdentifierFieldValue ( std::string  field,
EVENT::CalorimeterHit *  hit 
)
private

Method to unpack field value from a calorimeter hit ID.

Parameters
fieldThe field ID to unpack
hitThe CalorimeterHit whose ID will be used to unpack the the field value.

Definition at line 174 of file ECalDataProcessor.cxx.

◆ initialize()

void initialize ( TTree *  tree)
virtual

Callback for the Processor to take any necessary action when the processing of events starts.

Parameters
tree

Implements Processor.

Definition at line 34 of file ECalDataProcessor.cxx.

◆ process()

bool process ( IEvent event)
virtual

Process the event and put new data products into it.

Parameters
eventThe Event to process.

Implements Processor.

Definition at line 40 of file ECalDataProcessor.cxx.

Member Data Documentation

◆ cal_hits_

std::vector<CalHit*> cal_hits_
private

TClonesArray collection containing all ECal hits.

Definition at line 102 of file ECalDataProcessor.h.

◆ clusCollLcio_

std::string clusCollLcio_ {"EcalClustersCorr"}
private

description

Definition at line 108 of file ECalDataProcessor.h.

◆ clusCollRoot_

std::string clusCollRoot_ {"RecoEcalClusters"}
private

description

Definition at line 109 of file ECalDataProcessor.h.

◆ clusters_

std::vector<CalCluster*> clusters_
private

TClonesArray collection containing all ECal clusters.

Definition at line 107 of file ECalDataProcessor.h.

◆ debug_

int debug_ {0}
private

Debug Level.

Definition at line 114 of file ECalDataProcessor.h.

◆ encoder_string_

const std::string encoder_string_ {"system:6,layer:2,ix:-8,iy:-6"}
private

Encoding string describing cell ID.

Definition at line 112 of file ECalDataProcessor.h.

◆ hitCollLcio_

std::string hitCollLcio_ {"EcalCalHits"}
private

description

Definition at line 103 of file ECalDataProcessor.h.

◆ hitCollRoot_

std::string hitCollRoot_ {"RecoEcalHits"}
private

description

Definition at line 104 of file ECalDataProcessor.h.


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