-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathTBDataClusterReader.h
More file actions
51 lines (40 loc) · 1.33 KB
/
TBDataClusterReader.h
File metadata and controls
51 lines (40 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef TBDATACLUSTERREADER_H
#define TBDATACLUSTERREADER_H
#include "k4FWCore/DataHandle.h"
#include "GaudiAlg/GaudiAlgorithm.h"
#include "DD4hep/Detector.h"
#include <DDRec/DetectorData.h>
#include <DDRec/CellIDPositionConverter.h>
namespace edm4hep {
class TrackerHitCollection;
}
namespace dd4hep {
namespace rec {
class CellIDPositionConverter;
}
namespace DDSegmentation {
class BitFieldCoder;
}
}
class TBDataClusterReader : public GaudiAlgorithm
{
public :
TBDataClusterReader(const std::string& name, ISvcLocator* svcLoc);
virtual StatusCode initialize();
virtual StatusCode execute();
virtual StatusCode finalize();
private :
DataHandle<edm4hep::TrackerHitCollection> m_hitCol{"TrackerHit", Gaudi::DataHandle::Writer, this};
dd4hep::DDSegmentation::BitFieldCoder m_decoder{"planeID:8,hitsNum:8,hitsNumX:8,hitsNumY:8"};
// dd4hep::DDSegmentation::BitFieldCoder* m_decoder;
int eventid = 0;
TFile *tree_file = NULL;
TTree *tree = NULL;
std::vector<int>* planeID = NULL;
std::vector<int>* hitsNum = NULL;
std::vector<int>* hitsNumX = NULL;
std::vector<int>* hitsNumY = NULL;
std::vector<float>* row = NULL;
std::vector<float>* col = NULL;
};
#endif // TBDATACLUSTERREADER_H