CMS 3D CMS Logo

ScCALORawToDigi.h
Go to the documentation of this file.
8 
13 
15 
20 
21 #include <iostream>
22 #include <memory>
23 
25 public:
26  explicit ScCaloRawToDigi(const edm::ParameterSet&);
27  ~ScCaloRawToDigi() override;
28 
29  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
30 
31 private:
32  void produce(edm::Event&, const edm::EventSetup&) override;
33 
34  void unpackOrbit(const unsigned char* buf, size_t len);
35 
36  void unpackLinkJets(uint32_t* dataBlock, int bx);
37  void unpackLinkEGammas(uint32_t* dataBlock, int bx);
38  void unpackLinkTaus(uint32_t* dataBlock, int bx);
39  void unpackEtSums(uint32_t* dataBlock, int bx);
40 
42  // vectors holding data for every bunch crossing
43  // before filling the orbit collection
44  std::vector<std::vector<l1ScoutingRun3::Jet>> orbitBufferJets_;
45  std::vector<std::vector<l1ScoutingRun3::EGamma>> orbitBufferEGammas_;
46  std::vector<std::vector<l1ScoutingRun3::Tau>> orbitBufferTaus_;
47  std::vector<std::vector<l1ScoutingRun3::BxSums>> orbitBufferEtSums_;
48 
49  bool debug_ = false;
50  bool enableAllSums_ = false;
53 };
void unpackOrbit(const unsigned char *buf, size_t len)
void produce(edm::Event &, const edm::EventSetup &) override
void unpackLinkJets(uint32_t *dataBlock, int bx)
~ScCaloRawToDigi() override
std::vector< std::vector< l1ScoutingRun3::Tau > > orbitBufferTaus_
ScCaloRawToDigi(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void unpackEtSums(uint32_t *dataBlock, int bx)
std::vector< std::vector< l1ScoutingRun3::BxSums > > orbitBufferEtSums_
std::vector< std::vector< l1ScoutingRun3::EGamma > > orbitBufferEGammas_
edm::EDGetToken rawToken
edm::InputTag srcInputTag
std::vector< std::vector< l1ScoutingRun3::Jet > > orbitBufferJets_
void unpackLinkTaus(uint32_t *dataBlock, int bx)
void unpackLinkEGammas(uint32_t *dataBlock, int bx)