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
MCTrackerHitProcessor.h
Go to the documentation of this file.
1#ifndef __MCTRACKERHIT_PROCESSOR_H__
2#define __MCTRACKERHIT_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/SimTrackerHit.h>
16#include <EVENT/MCParticle.h>
17#include <UTIL/BitField64.h>
18
19//----------//
20// ROOT //
21//----------//
22#include "TClonesArray.h"
23#include "TTree.h"
24
25//-----------//
26// hpstr //
27//-----------//
28#include "Collections.h"
29#include "Processor.h"
30#include "MCTrackerHit.h"
31#include "Event.h"
32
38
39 public:
40
48 MCTrackerHitProcessor(const std::string& name, Process& process);
49
52
58 virtual void configure(const ParameterSet& parameters);
59
66 virtual void initialize(TTree* tree);
67
73 virtual bool process(IEvent* ievent);
74
79 virtual void finalize();
80
81 private:
82
84 std::vector<MCTrackerHit*> trackerhits_;
85 std::string hitCollLcio_{"TrackerHits"};
86 std::string hitCollRoot_{"TrackerHits"};
87
88 int debug_{0};
89
90}; // MCTrackerHitProcessor
91
92#endif // __MCTRACKERHIT_PROCESSOR_H__
Class defining methods used to access event information and data collections.
Class used to encapsulate mc tracker hit information.
Base classes for all user event processing components to extend.
Definition IEvent.h:7
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::string hitCollRoot_
description
std::vector< MCTrackerHit * > trackerhits_
std::string hitCollLcio_
description
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