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
TrackingProcessor.h
Go to the documentation of this file.
1#ifndef __TRACKING_PROCESSOR_H__
2#define __TRACKING_PROCESSOR_H__
3
4//-----------------//
5// C++ StdLib //
6//-----------------//
7#include <iostream>
8#include <string>
9
10//----------//
11// LCIO //
12//----------//
13#include <EVENT/LCCollection.h>
14#include <EVENT/Track.h>
15#include <EVENT/TrackerHit.h>
16#include <EVENT/TrackState.h>
17#include <EVENT/TrackerRawData.h>
18#include <IMPL/ClusterImpl.h>
19#include <IMPL/LCGenericObjectImpl.h>
20#include <IMPL/TrackerHitImpl.h>
21#include <UTIL/LCRelationNavigator.h>
22#include <UTIL/BitField64.h>
23
24//----------//
25// ROOT //
26//----------//
27#include "TClonesArray.h"
28
29//-----------//
30// hpstr //
31//-----------//
32#include "Collections.h"
33#include "Processor.h"
34#include "Track.h"
35#include "TrackerHit.h"
36#include "Event.h"
37#include "RawSvtHit.h"
38#include "TrackHistos.h"
39
40
41// Forward declarations
42class TTree;
43
49
50 public:
58 TrackingProcessor(const std::string& name, Process& process);
59
62
68 virtual bool process(IEvent* ievent);
69
75 virtual void configure(const ParameterSet& parameters);
76
83 virtual void initialize(TTree* tree);
84
89 virtual void finalize();
90
91 private:
92
94 std::vector<TrackerHit*> hits_{};
95 std::string trkhitCollRoot_{"RotatedHelicalOnTrackHits"};
96
98 std::vector<Track*> tracks_{};
99 std::string trkCollLcio_{"GBLTracks"};
100 std::string kinkRelCollLcio_{"GBLKinkDataRelations"};
101 std::string trkRelCollLcio_{"TrackDataRelations"};
102 std::string trkCollRoot_{"GBLTracks"};
103
105 std::vector<RawSvtHit*> rawhits_{};
106 std::string hitFitsCollLcio_{"SVTFittedRawTrackerHits"};
107 std::string rawhitCollRoot_{"SVTRawHitsOnTrack"};
108
110 std::vector<Track*> truthTracks_{};
111 std::string truthTracksCollRoot_{""};
112 std::string truthTracksCollLcio_{""};
113
114 //Specify trackstate location used for tracks
115 std::string trackStateLocation_{""};
116
117 int debug_{false};
118
120 std::string trackResDataLcio_{""};
122 std::string resCfgFilename_{""};
123 std::string resoutname_{""};
124
125 double bfield_{-1.};
126
128
129}; // Tracking Processor
130
131#endif // __TRACKING_PROCESSOR_H__
Class defining methods used to access event information and data collections.
Base classes for all user event processing components to extend.
Class used to encapsulate raw svt hit information.
Class used to encapsulate track information.
Class used to encapsulate tracker hit 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
description
Definition TrackHistos.h:17
Insert description here. more details.
std::string truthTracksCollRoot_
description
std::string trkRelCollLcio_
collection name
std::string trackStateLocation_
Specify track state used for track collection DEFAULT AtIP.
int debug_
Debug Level.
std::string trkhitCollRoot_
description
double bfield_
magnetic field
std::string trkCollRoot_
collection name
int useTrackerHits_
Load hit collections, otherwise get from getSubdetectorHitNumbers.
virtual void configure(const ParameterSet &parameters)
Configure the Processor.
virtual void finalize()
Callback for the Processor to take any necessary action when the processing of events finishes.
std::string trackResDataLcio_
description
std::vector< Track * > tracks_
virtual void initialize(TTree *tree)
Callback for the Processor to take any necessary action when the processing of events starts.
std::string hitFitsCollLcio_
collection name
std::string resoutname_
description
std::vector< RawSvtHit * > rawhits_
std::vector< TrackerHit * > hits_
std::vector< Track * > truthTracks_
std::string truthTracksCollLcio_
description
std::string resCfgFilename_
description
std::string trkCollLcio_
collection name
int doResiduals_
do Residuals
std::string kinkRelCollLcio_
collection name
TrackHistos * trkResHistos_
description
std::string rawhitCollRoot_
collection name