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
HodoDataProcessor.h
Go to the documentation of this file.
1
7#ifndef HodoDataProcessor_h
8#define HodoDataProcessor_h
9
10#include <stdio.h>
11#include "Event.h"
12
13#include "Processor.h"
14#include "HodoHit.h"
15#include "HodoCluster.h"
16
17//----------//
18// LCIO //
19//----------//
20#include "EVENT/CalorimeterHit.h"
21
22#include "IMPL/LCGenericObjectImpl.h"
23#include "IMPL/CalorimeterHitImpl.h"
24#include "IMPL/ClusterImpl.h"
25#include "UTIL/BitField64.h"
26
27// Forward declarations
28class TTree;
29
35
36 public:
37
45 HodoDataProcessor(const std::string& name, Process& process): Processor(name, process) {};
46
49
60 virtual void configure(const ParameterSet& parameters);
61
62
68 virtual bool process(IEvent* event);
69
78 virtual void initialize(TTree* tree);
79
84 virtual void finalize(){};
85
86 // private:
87
98 UTIL::BitFieldValue getIdentifierFieldValue(std::string field, EVENT::CalorimeterHit* hit);
99
101 std::vector<HodoHit*> hits_;
102
104 std::vector<HodoCluster*> clusters_;
105
107 const std::string encoder_string_{"system:6,barrel:3,layer:4,ix:4,iy:-3,hole:-3"};
108
114 int debug_{1};
115
116 std::string hitCollLcio_{"HodoCalHits"};
117 std::string hitCollLcio_Generic_{"HodoGenericHits"};
118 std::string hitCollRoot_{"HodoHits"};
119
120 std::string clusCollLcio_{"HodoGenericClusters"};
121 std::string clusCollRoot_{"HodoClusters"};
122};
123
124#endif /* HodoDataProcessor_h */
Class defining methods used to access event information and data collections.
Class that encapsulates hodoscope hit information.
Base classes for all user event processing components to extend.
Processor for the Hodoscope, to convert LCIO to the HodoCluster and HodoHit classes in event....
UTIL::BitFieldValue getIdentifierFieldValue(std::string field, EVENT::CalorimeterHit *hit)
Method to unpack field value from a hodoscope hit ID from the ID string.
int debug_
Debug level. 0 is very quiet, 1 info, 2 debug.
std::string clusCollRoot_
description
const std::string encoder_string_
virtual void configure(const ParameterSet &parameters)
Callback from ConfigurePython step for the Processor to configure itself from the given set of parame...
std::vector< HodoHit * > hits_
virtual void initialize(TTree *tree)
Callback for the Processor to take any necessary action when the processing of events starts.
virtual void finalize()
Callback for the Processor to take any necessary action when the processing of events finishes.
std::string hitCollLcio_Generic_
description
std::string hitCollRoot_
description
std::vector< HodoCluster * > clusters_
std::string clusCollLcio_
description
HodoDataProcessor(const std::string &name, Process &process)
Class constructor.
std::string hitCollLcio_
description
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