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
VertexProcessor.h
Go to the documentation of this file.
1#ifndef __VERTEX_PROCESSOR_H__
2#define __VERTEX_PROCESSOR_H__
3
4//-----------------//
5// C++ StdLib //
6//-----------------//
7#include <iostream>
8#include <string>
9#include <vector>
10
11//----------//
12// LCIO //
13//----------//
14#include <EVENT/LCCollection.h>
15#include <EVENT/TrackerHit.h>
16#include <IMPL/LCGenericObjectImpl.h>
17#include <EVENT/ReconstructedParticle.h>
18#include <IMPL/LCGenericObjectImpl.h>
19#include <UTIL/LCRelationNavigator.h>
20#include <IMPL/MCParticleImpl.h>
21#include <IMPL/SimTrackerHitImpl.h>
22
23//-----------//
24// hpstr //
25//-----------//
26#include "Processor.h"
27#include "Vertex.h"
28#include "Particle.h"
29#include "Event.h"
30#include "TrackerHit.h"
31#include "RawSvtHit.h"
32
33// Forward declarations
34class TTree;
35
40class VertexProcessor : public Processor {
41
42 public:
50 VertexProcessor(const std::string& name, Process& process);
51
54
60 virtual void configure(const ParameterSet& parameters);
61
68 virtual void initialize(TTree* tree);
69
75 virtual bool process(IEvent* ievent);
76
81 virtual void finalize();
82
83 private:
84
86 std::vector<TrackerHit*> hits_{};
87 std::string trkhitCollRoot_{"fspOnTrackHits"};
88 std::vector<RawSvtHit*> rawhits_{};
89 std::string rawhitCollRoot_{"fspOnTrackRawHits"};
90 std::vector<Vertex*> vtxs_{};
91 std::vector<Particle*> parts_{};
92 std::string vtxCollLcio_{"UnconstrainedV0Vertices"};
93 std::string vtxCollRoot_{"UnconstrainedV0Vertices"};
94 std::string partCollRoot_{"ParticlesOnVertices"};
95 std::string kinkRelCollLcio_{"GBLKinkDataRelations"};
96 std::string trkRelCollLcio_{"TrackDataRelations"};
97 std::string hitFitsCollLcio_{"SVTFittedRawTrackerHits"};
98 std::string mcPartRelLcio_{"RotatedHelicalTrackMCRelations"};
99 std::string trackStateLocation_{""};
100
101 double bfield_{-1.};
102
104
105 int debug_{0};
106
107}; // VertexProcessor
108
109#endif // __VERTEX_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.
Class used to encapsulate Vertex information.
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
Insert description here. more details.
std::string mcPartRelLcio_
std::string partCollRoot_
description
std::string trkRelCollLcio_
description
std::string trackStateLocation_
select track state for tracks DEFAULT AtIP
int debug_
Debug Level.
std::string trkhitCollRoot_
double bfield_
magnetic field
int useTrackerHits_
Load hit collections, otherwise get from getSubdetectorHitNumbers.
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::string hitFitsCollLcio_
std::vector< RawSvtHit * > rawhits_
std::vector< Vertex * > vtxs_
description
std::vector< TrackerHit * > hits_
std::vector< Particle * > parts_
description
std::string vtxCollRoot_
description
std::string kinkRelCollLcio_
description
std::string vtxCollLcio_
description
std::string rawhitCollRoot_