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 used to translate LCIO MCParticles to DST MCParticle objects. more details. More...
#include <MCParticleProcessor.h>
Public Member Functions | |
MCParticleProcessor (const std::string &name, Process &process) | |
Class constructor. | |
~MCParticleProcessor () | |
virtual void | configure (const ParameterSet ¶meters) |
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 *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. | |
![]() | |
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 Attributes | |
std::vector< MCParticle * > | mc_particles_ {} |
std::string | mcPartCollLcio_ {"MCParticle"} |
description | |
std::string | mcPartCollRoot_ {"MCParticle"} |
description | |
int | debug_ {0} |
Debug level. | |
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 used to translate LCIO MCParticles to DST MCParticle objects. more details.
Definition at line 47 of file MCParticleProcessor.h.
MCParticleProcessor | ( | const std::string & | name, |
Process & | process | ||
) |
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 10 of file MCParticleProcessor.cxx.
~MCParticleProcessor | ( | ) |
Destructor
Definition at line 14 of file MCParticleProcessor.cxx.
|
virtual |
Callback for the Processor to configure itself from the given set of parameters.
parameters | ParameterSet for configuration. |
Reimplemented from Processor.
Definition at line 17 of file MCParticleProcessor.cxx.
|
virtual |
Callback for the Processor to take any necessary action when the processing of events finishes.
Implements Processor.
Definition at line 198 of file MCParticleProcessor.cxx.
|
virtual |
Callback for the Processor to take any necessary action when the processing of events starts.
tree |
Implements Processor.
Definition at line 34 of file MCParticleProcessor.cxx.
|
virtual |
Process the event and put new data products into it.
event | The Event to process. |
Implements Processor.
Definition at line 40 of file MCParticleProcessor.cxx.
|
private |
Debug level.
Definition at line 98 of file MCParticleProcessor.h.
|
private |
Map to hold all particle collections.
Definition at line 94 of file MCParticleProcessor.h.
|
private |
description
Definition at line 95 of file MCParticleProcessor.h.
|
private |
description
Definition at line 96 of file MCParticleProcessor.h.