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.
|
Processor for the Hodoscope, to convert LCIO to the HodoCluster and HodoHit classes in event. more details. More...
#include <HodoDataProcessor.h>
Public Member Functions | |
HodoDataProcessor (const std::string &name, Process &process) | |
Class constructor. | |
~HodoDataProcessor () | |
virtual void | configure (const ParameterSet ¶meters) |
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. | |
![]() | |
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 void | declare (const std::string &classname, ProcessorMaker *) |
Internal function which is part of the ProcessorFactory machinery. | |
![]() | |
Process & | process_ |
TFile * | outF_ {nullptr} |
std::string | name_ |
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.
|
inline |
Class constructor.
name | Name for this instance of the class. |
process | The Process class associated with Processor, provided by the processing framework. |
Definition at line 45 of file HodoDataProcessor.h.
|
inline |
Destructor
Definition at line 48 of file HodoDataProcessor.h.
|
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 | ParameterSet for configuration. |
Reimplemented from Processor.
Definition at line 15 of file HodoDataProcessor.cxx.
|
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.
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.
field | The field ID to unpack |
hit | The CalorimeterHit whose ID will be used to unpack the the field value. |
Definition at line 99 of file HodoDataProcessor.cxx.
|
virtual |
Callback for the Processor to take any necessary action when the processing of events starts.
Sets up the branch addresses for the TTree.
tree |
Implements Processor.
Definition at line 9 of file HodoDataProcessor.cxx.
|
virtual |
Process the event and put new data products into it.
event | The Event to process. |
Implements Processor.
Definition at line 32 of file HodoDataProcessor.cxx.
std::string clusCollLcio_ {"HodoGenericClusters"} |
description
Definition at line 120 of file HodoDataProcessor.h.
std::string clusCollRoot_ {"HodoClusters"} |
description
Definition at line 121 of file HodoDataProcessor.h.
std::vector<HodoCluster*> clusters_ |
vector containing all ECal clusters.
Definition at line 104 of file HodoDataProcessor.h.
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.
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.
std::string hitCollLcio_ {"HodoCalHits"} |
description
Definition at line 116 of file HodoDataProcessor.h.
std::string hitCollLcio_Generic_ {"HodoGenericHits"} |
description
Definition at line 117 of file HodoDataProcessor.h.
std::string hitCollRoot_ {"HodoHits"} |
description
Definition at line 118 of file HodoDataProcessor.h.
std::vector<HodoHit*> hits_ |
vector containing all ECal hits.
Definition at line 101 of file HodoDataProcessor.h.