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
SvtRawDataProcessor.h
Go to the documentation of this file.
1#ifndef __SVT_RAW_DATA_PROCESSOR_H__
2#define __SVT_RAW_DATA_PROCESSOR_H__
3
4//-----------------//
5// C++ StdLib //
6//-----------------//
7#include <iostream>
8#include <algorithm>
9#include <string>
10
11//----------//
12// LCIO //
13//----------//
14#include <EVENT/LCCollection.h>
15#include <EVENT/TrackerRawData.h>
16#include <IMPL/LCGenericObjectImpl.h>
17#include <UTIL/BitField64.h>
18#include <IMPL/LCGenericObjectImpl.h>
19#include <UTIL/LCRelationNavigator.h>
20
21//----------//
22// ROOT //
23//----------//
24#include "TClonesArray.h"
25
26//-----------//
27// hpstr //
28//-----------//
29#include "Collections.h"
30#include "Processor.h"
31#include "RawSvtHit.h"
32#include "Event.h"
33
34class TTree;
35
37
38 public:
46 SvtRawDataProcessor(const std::string& name, Process& process);
47
50
56 virtual void configure(const ParameterSet& parameters);
57
64 virtual void initialize(TTree* tree);
65
71 virtual bool process(IEvent* ievent);
72
77 virtual void finalize();
78
79 private:
80 std::vector<RawSvtHit*> rawhits_;
81 std::string hitCollLcio_{"SVTRawTrackerHits"};
82 std::string hitfitCollLcio_{"SVTFittedRawTrackerHits"};
83 std::string hitCollRoot_{"SVTRawTrackerHits"};
84
85 int debug_{0};
86
87}; // SvtRawDataProcessor
88
89#endif // __SVT_RAW_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 raw svt 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
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 hitfitCollLcio_
collection name
std::vector< RawSvtHit * > rawhits_
Container to hold all TrackerHit objects.
std::string hitCollRoot_
collection name
std::string hitCollLcio_
collection name