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
SvtDataProcessor.h
Go to the documentation of this file.
1#ifndef __SVT_DATA_PROCESSOR_H__
2#define __SVT_DATA_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/Track.h>
16#include <EVENT/TrackerHit.h>
17#include <EVENT/TrackState.h>
18#include <IMPL/LCGenericObjectImpl.h>
19#include <IMPL/TrackerHitImpl.h>
20#include <UTIL/LCRelationNavigator.h>
21
22//-----------//
23// hpstr //
24//-----------//
25#include "Collections.h"
26#include "Processor.h"
27#include "Track.h"
28#include "TrackerHit.h"
29#include "Event.h"
30
31// Forward declarations
32class TTree;
33
38class SvtDataProcessor : public Processor {
39
40 public:
41
49 SvtDataProcessor(const std::string& name, Process& process);
50
53
59 virtual bool process(IEvent* ievent);
60
67 virtual void initialize(TTree* tree);
68
73 virtual void finalize();
74
75 private:
76
78 std::vector<TrackerHit*> hits_;
79
81 std::vector<Track*> tracks_;
82
83
84}; // SvtDataProcessor
85
86#endif // __SVT_DATA_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 track information.
Class used to encapsulate tracker hit information.
Definition IEvent.h:7
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.
virtual void finalize()
Callback for the Processor to take any necessary action when the processing of events finishes.
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::vector< TrackerHit * > hits_