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
FinalStateParticleProcessor.h
Go to the documentation of this file.
1
7#ifndef __FINALSTATEPARTICLE_PROCESSOR_H__
8#define __FINALSTATEPARTICLE_PROCESSOR_H__
9
10//-----------------//
11// C++ StdLib //
12//-----------------//
13#include <iostream>
14#include <string>
15#include <vector>
16
17//----------//
18// LCIO //
19//----------//
20#include <EVENT/LCCollection.h>
21#include <EVENT/ReconstructedParticle.h>
22#include <IMPL/LCGenericObjectImpl.h>
23#include <UTIL/LCRelationNavigator.h>
24#include <EVENT/TrackerHit.h>
25
26//-----------//
27// hpstr //
28//-----------//
29#include "Processor.h"
30#include "Particle.h"
31#include "Event.h"
32#include "TrackerHit.h"
33#include "RawSvtHit.h"
34
35// Forward declarations
36class TTree;
37
43
44 public:
45
53 FinalStateParticleProcessor(const std::string& name, Process& process);
54
57
63 virtual void configure(const ParameterSet& parameters);
64
71 virtual void initialize(TTree* tree);
72
78 virtual bool process(IEvent* ievent);
79
84 virtual void finalize();
85
86 private:
87
89 //std::vector<TrackerHit*> hits_{};
90
91 std::vector<TrackerHit*> hits_{};
92 std::string trkhitCollRoot_{"fspOnTrackHits"};
93
94 std::vector<RawSvtHit*> rawhits_{};
95 std::string rawhitCollRoot_{"fspOnTrackRawHits"};
96
97 std::vector<Particle*> fsps_{};
98 std::string fspCollLcio_{"FinalStateParticles"};
99 std::string fspCollRoot_{"FinalStateParticles"};
100 std::string kinkRelCollLcio_{"GBLKinkDataRelations"};
101 std::string trkRelCollLcio_{"TrackDataRelations"};
102 std::string hitFitsCollLcio_{"SVTFittedRawTrackerHits"};
103
104 double bfield_{-1.};
105
106 int debug_{0};
107
108}; // FinalStateParticleProcessor
109
110#endif // __FINALSTATEPARTICLE_PROCESSOR_H__
Class defining methods used to access event information and data collections.
Class used to encapsulate information about a particle.
Base classes for all user event processing components to extend.
Class used to encapsulate raw svt hit information.
Class used to encapsulate tracker hit information.
Insert description here. 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< RawSvtHit * > rawhits_
std::vector< TrackerHit * > hits_
Definition IEvent.h:7
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