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 StdHep MCParticles to ROOT MCParticle objects. more details. More...
#include <StdhepMCParticleProcessor.h>
Public Member Functions | |
StdhepMCParticleProcessor (const std::string &name, Process &process) | |
Class constructor. | |
~StdhepMCParticleProcessor () | |
virtual bool | process () |
Process the event and put new data products into it. | |
virtual bool | process (IEvent *event) |
Process the event and put new data products into it. | |
virtual void | configure (const ParameterSet ¶meters) |
Configure the 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. | |
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. | |
![]() | |
Processor (const std::string &name, Process &process) | |
Class constructor. | |
virtual | ~Processor () |
virtual void | setFile (TFile *outFile) |
Set output TFile for AnaProcessors. | |
Private Attributes | |
std::string | inFilename_ |
stdhep input file | |
std::string | mcPartCollStdhep_ {"MCParticle"} |
name temporary lcio collection | |
int | maxEvent_ {-1} |
max stdhep event number to convert | |
int | skipEvent_ {0} |
skipped event numbers to convet | |
TFile * | outF_ {nullptr} |
root tuple outfile | |
std::string | mcPartCollRoot_ {"MCParticle"} |
name root collection | |
std::vector< MCParticle * > | mc_particles_ {} |
list of converted MCParticles | |
TTree * | tree_ {nullptr} |
TTree holds converted MCParticles for each event. | |
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 StdHep MCParticles to ROOT MCParticle objects. more details.
Definition at line 47 of file StdhepMCParticleProcessor.h.
StdhepMCParticleProcessor | ( | const std::string & | name, |
Process & | process | ||
) |
Class constructor.
name | Name for this instance of the class. |
process | The Process class associated with the Processor, provided by the processing framework. |
Definition at line 10 of file StdhepMCParticleProcessor.cxx.
Destructor
Definition at line 14 of file StdhepMCParticleProcessor.cxx.
|
virtual |
Configure the Processor.
parameters | The configuration parameters |
Reimplemented from Processor.
Definition at line 17 of file StdhepMCParticleProcessor.cxx.
|
virtual |
Callback for the Processor to take any necessary action when the processing of events finishes.
Implements Processor.
Definition at line 154 of file StdhepMCParticleProcessor.cxx.
|
virtual |
Callback for the Processor to take any necessary action when the processing of events starts.
inFilename | |
outFilename |
Reimplemented from Processor.
Definition at line 32 of file StdhepMCParticleProcessor.cxx.
|
inlinevirtual |
Callback for the Processor to take any necessary action when the processing of events starts.
tree |
Implements Processor.
Definition at line 93 of file StdhepMCParticleProcessor.h.
|
virtual |
Process the event and put new data products into it.
event | The Event to process. |
Reimplemented from Processor.
Definition at line 45 of file StdhepMCParticleProcessor.cxx.
|
inlinevirtual |
Process the event and put new data products into it.
event | The Event to process. |
Implements Processor.
Definition at line 69 of file StdhepMCParticleProcessor.h.
|
private |
stdhep input file
Definition at line 103 of file StdhepMCParticleProcessor.h.
|
private |
max stdhep event number to convert
Definition at line 105 of file StdhepMCParticleProcessor.h.
|
private |
list of converted MCParticles
Definition at line 109 of file StdhepMCParticleProcessor.h.
|
private |
name root collection
Definition at line 108 of file StdhepMCParticleProcessor.h.
|
private |
name temporary lcio collection
Definition at line 104 of file StdhepMCParticleProcessor.h.
|
private |
root tuple outfile
Definition at line 107 of file StdhepMCParticleProcessor.h.
|
private |
skipped event numbers to convet
Definition at line 106 of file StdhepMCParticleProcessor.h.
|
private |
TTree holds converted MCParticles for each event.
Definition at line 110 of file StdhepMCParticleProcessor.h.