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 | Public Attributes | List of all members
HodoDataProcessor Class Reference

Processor for the Hodoscope, to convert LCIO to the HodoCluster and HodoHit classes in event. more details. More...

#include <HodoDataProcessor.h>

Inheritance diagram for HodoDataProcessor:
Processor

Public Member Functions

 HodoDataProcessor (const std::string &name, Process &process)
 Class constructor.
 
 ~HodoDataProcessor ()
 
virtual void configure (const ParameterSet &parameters)
 Callback from ConfigurePython step for the Processor to configure itself from the given set of parameters.
 
virtual bool process (IEvent *event)
 Process the event and put new data products into it.
 
virtual void initialize (TTree *tree)
 Callback for the Processor to take any necessary action when the processing of events starts.
 
virtual void finalize ()
 Callback for the Processor to take any necessary action when the processing of events finishes.
 
UTIL::BitFieldValue getIdentifierFieldValue (std::string field, EVENT::CalorimeterHit *hit)
 Method to unpack field value from a hodoscope hit ID from the ID string.
 
- 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.
 

Public Attributes

std::vector< HodoHit * > hits_
 
std::vector< HodoCluster * > clusters_
 
const std::string encoder_string_ {"system:6,barrel:3,layer:4,ix:4,iy:-3,hole:-3"}
 
int debug_ {1}
 Debug level. 0 is very quiet, 1 info, 2 debug.
 
std::string hitCollLcio_ {"HodoCalHits"}
 description
 
std::string hitCollLcio_Generic_ {"HodoGenericHits"}
 description
 
std::string hitCollRoot_ {"HodoHits"}
 description
 
std::string clusCollLcio_ {"HodoGenericClusters"}
 description
 
std::string clusCollRoot_ {"HodoClusters"}
 description
 

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

Processor for the Hodoscope, to convert LCIO to the HodoCluster and HodoHit classes in event. more details.

Definition at line 34 of file HodoDataProcessor.h.

Constructor & Destructor Documentation

◆ HodoDataProcessor()

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

Class constructor.

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

Definition at line 45 of file HodoDataProcessor.h.

◆ ~HodoDataProcessor()

~HodoDataProcessor ( )
inline

Destructor

Definition at line 48 of file HodoDataProcessor.h.

Member Function Documentation

◆ configure()

void configure ( const ParameterSet parameters)
virtual

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

Parameters are set in the Python configuration file as: hodo.parameters["debug"] = 0 where "debug" is the name of the parameter.

Parameters
parametersParameterSet for configuration.

Reimplemented from Processor.

Definition at line 15 of file HodoDataProcessor.cxx.

◆ finalize()

virtual void finalize ( )
inlinevirtual

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

Implements Processor.

Definition at line 84 of file HodoDataProcessor.h.

◆ getIdentifierFieldValue()

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

Method to unpack field value from a hodoscope hit ID from the ID string.

The string itself comes from the detector description (in hps-java/detector-data/...), and should be identical to that one.

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

Definition at line 99 of file HodoDataProcessor.cxx.

◆ initialize()

void initialize ( TTree *  tree)
virtual

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

Sets up the branch addresses for the TTree.

Parameters
tree

Implements Processor.

Definition at line 9 of file HodoDataProcessor.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 32 of file HodoDataProcessor.cxx.

Member Data Documentation

◆ clusCollLcio_

std::string clusCollLcio_ {"HodoGenericClusters"}

description

Definition at line 120 of file HodoDataProcessor.h.

◆ clusCollRoot_

std::string clusCollRoot_ {"HodoClusters"}

description

Definition at line 121 of file HodoDataProcessor.h.

◆ clusters_

std::vector<HodoCluster*> clusters_

vector containing all ECal clusters.

Definition at line 104 of file HodoDataProcessor.h.

◆ debug_

int debug_ {1}

Debug level. 0 is very quiet, 1 info, 2 debug.

Configurable parameters. Defaults are passed to the "configure" step, so can be set here as defaults.

Definition at line 114 of file HodoDataProcessor.h.

◆ encoder_string_

const std::string encoder_string_ {"system:6,barrel:3,layer:4,ix:4,iy:-3,hole:-3"}

Encoding string describing cell ID.

Definition at line 107 of file HodoDataProcessor.h.

◆ hitCollLcio_

std::string hitCollLcio_ {"HodoCalHits"}

description

Definition at line 116 of file HodoDataProcessor.h.

◆ hitCollLcio_Generic_

std::string hitCollLcio_Generic_ {"HodoGenericHits"}

description

Definition at line 117 of file HodoDataProcessor.h.

◆ hitCollRoot_

std::string hitCollRoot_ {"HodoHits"}

description

Definition at line 118 of file HodoDataProcessor.h.

◆ hits_

std::vector<HodoHit*> hits_

vector containing all ECal hits.

Definition at line 101 of file HodoDataProcessor.h.


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