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
ECalDataProcessor.h
Go to the documentation of this file.
1
7#ifndef __ECAL_DATA_PROCESSOR_H__
8#define __ECAL_DATA_PROCESSOR_H__
9
10//----------------//
11// C++ StdLib //
12//----------------//
13#include <string>
14#include <vector>
15
16//----------//
17// LCIO //
18//----------//
19#include <EVENT/CalorimeterHit.h>
20#include <IMPL/CalorimeterHitImpl.h>
21#include <IMPL/ClusterImpl.h>
22#include <UTIL/BitField64.h>
23
24//----------//
25// ROOT //
26//----------//
27#include <TClonesArray.h>
28
29//-----------//
30// hpstr //
31//-----------//
32#include "CalCluster.h"
33#include "CalHit.h"
34#include "Collections.h"
35#include "Processor.h"
36
37typedef long long long64;
38
39// Forward declarations
40class TTree;
41
47
48 public:
49
57 ECalDataProcessor(const std::string& name, Process& process);
58
61
67 virtual void configure(const ParameterSet& parameters);
68
75 virtual void initialize(TTree* tree);
76
82 virtual bool process(IEvent* event);
83
88 virtual void finalize();
89
90 private:
91
99 UTIL::BitFieldValue getIdentifierFieldValue(std::string field, EVENT::CalorimeterHit* hit);
100
102 std::vector<CalHit*> cal_hits_;
103 std::string hitCollLcio_{"EcalCalHits"};
104 std::string hitCollRoot_{"RecoEcalHits"};
105
107 std::vector<CalCluster*> clusters_;
108 std::string clusCollLcio_{"EcalClustersCorr"};
109 std::string clusCollRoot_{"RecoEcalClusters"};
110
112 const std::string encoder_string_{"system:6,layer:2,ix:-8,iy:-6"};
113
114 int debug_{0};
115
116}; // ECalDataProcessor
117
118#endif // __ECAL_DATA_PROCESSOR_H__
Class that encapsulate calorimeter hit information.
long long long64
Base classes for all user event processing components to extend.
Insert description here. more details.
UTIL::BitFieldValue getIdentifierFieldValue(std::string field, EVENT::CalorimeterHit *hit)
Method to unpack field value from a calorimeter hit ID.
int debug_
Debug Level.
std::string clusCollRoot_
description
const std::string encoder_string_
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.
std::vector< CalCluster * > clusters_
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::string clusCollLcio_
description
std::string hitCollLcio_
description
std::vector< CalHit * > cal_hits_
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