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
MCEcalHitProcessor.h
Go to the documentation of this file.
1
7#ifndef __MCECALHIT_PROCESSOR_H__
8#define __MCECALHIT_PROCESSOR_H__
9
10//-----------------//
11// C++ StdLib //
12//-----------------//
13#include <iostream>
14#include <algorithm>
15#include <string>
16
17//----------//
18// LCIO //
19//----------//
20#include <EVENT/LCCollection.h>
21#include <EVENT/SimCalorimeterHit.h>
22#include <UTIL/BitField64.h>
23
24//----------//
25// ROOT //
26//----------//
27#include "TClonesArray.h"
28#include "TTree.h"
29
30//-----------//
31// hpstr //
32//-----------//
33#include "Collections.h"
34#include "Processor.h"
35#include "MCEcalHit.h"
36#include "Event.h"
37
43
44 public:
45
53 MCEcalHitProcessor(const std::string& name, Process& process);
54
57
63 virtual void configure(const ParameterSet& parameters);
64
71 virtual void initialize(TTree* tree);
72
78 virtual bool process(IEvent* ievent);
79
84 virtual void finalize();
85
86 private:
87
89 std::vector<MCEcalHit*> ecalhits_;
90 std::string hitCollLcio_{"EcalHits"};
91 std::string hitCollRoot_{"EcalHits"};
92
93 int debug_{0};
94
95}; // MCEcalHitProcessor
96
97#endif // __MCECALHIT_PROCESSOR_H__
Class defining methods used to access event information and data collections.
Class used to encapsulate mc Ecal hit information.
Base classes for all user event processing components to extend.
Definition IEvent.h:7
Processor used to add simulated ecal hits to the event more details.
int debug_
Debug Level.
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::vector< MCEcalHit * > ecalhits_
std::string hitCollRoot_
description
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