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
|
#ifndef DataFormats_Scouting_Run3ScoutingEBRecHit_h
#define DataFormats_Scouting_Run3ScoutingEBRecHit_h
#include <vector>
#include <stdint.h>
// Updated Run 3 HLT-Scouting data format to include calo recHits information:
// - EBRecHits collection (ECAL Barrel)
// Saved information is specific to each hit type: energy, time, flags, and detId are available for EB recHits
//
// IMPORTANT: any changes to Run3ScoutingEBRecHit must be backward-compatible!
class Run3ScoutingEBRecHit {
public:
Run3ScoutingEBRecHit(float energy, float time, unsigned int detId, uint32_t flags)
: energy_{energy}, time_{time}, detId_{detId}, flags_{flags} {}
Run3ScoutingEBRecHit() : energy_{0}, time_{0}, detId_{0}, flags_{0} {}
float energy() const { return energy_; }
float time() const { return time_; }
unsigned int detId() const { return detId_; }
uint32_t flags() const { return flags_; }
private:
float energy_;
float time_;
unsigned int detId_;
uint32_t flags_;
// NOTE: types are kept the same as in the origin of the data in reco::PFRecHit
};
using Run3ScoutingEBRecHitCollection = std::vector<Run3ScoutingEBRecHit>;
#endif
|