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
MCParticleProcessor.h
Go to the documentation of this file.
1
8#ifndef _MCPARTICLE_PROCESSOR_H_
9#define _MCPARTICLE_PROCESSOR_H_
10
11//----------------//
12// C++ StdLib //
13//----------------//
14#include <iostream>
15#include <map>
16#include <vector>
17#include <string>
18
19//----------//
20// LCIO //
21//----------//
22#include <EVENT/LCIO.h>
23#include <EVENT/LCCollection.h>
24#include <IMPL/MCParticleImpl.h>
25//#include <Exceptions.h>
26
27//----------//
28// ROOT //
29//----------//
30#include "TClonesArray.h"
31#include "TTree.h"
32
33//-----------//
34// hpstr //
35//-----------//
36#include "CalCluster.h"
37#include "Collections.h"
38#include "MCParticle.h"
39#include "Processor.h"
40#include "Track.h"
41#include "Event.h"
42
48
49 public:
50
58 MCParticleProcessor(const std::string& name, Process& process);
59
62
68 virtual void configure(const ParameterSet& parameters);
69
76 virtual void initialize(TTree* tree);
77
83 virtual bool process(IEvent* ievent);
84
89 virtual void finalize();
90
91 private:
92
94 std::vector<MCParticle*> mc_particles_{};
95 std::string mcPartCollLcio_{"MCParticle"};
96 std::string mcPartCollRoot_{"MCParticle"};
97
98 int debug_{0};
99
100
101}; // MCParticleProcessor
102
103#endif // _MCPARTICLE_PROCESSOR_H_
Class defining methods used to access event information and data collections.
Class used to encapsulate information about a mc particle.
Base classes for all user event processing components to extend.
Class used to encapsulate track information.
Definition IEvent.h:7
Processor used to translate LCIO MCParticles to DST MCParticle objects. more details.
virtual void configure(const ParameterSet &parameters)
Callback for the Processor to configure itself from the given set of parameters.
virtual void finalize()
Callback for the Processor to take any necessary action when the processing of events finishes.
virtual void initialize(TTree *tree)
Callback for the Processor to take any necessary action when the processing of events starts.
std::vector< MCParticle * > mc_particles_
std::string mcPartCollLcio_
description
std::string mcPartCollRoot_
description
description
Base class for all event processing components.
Definition Processor.h:34
virtual bool process()
Process the histograms and generate analysis output.
Definition Processor.h:95