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
|
#ifndef _ESRAWTODIGI_H_
#define _ESRAWTODIGI_H_
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "EventFilter/ESRawToDigi/interface/ESUnpacker.h"
#include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
#include "DataFormats/EcalRawData/interface/ESListOfFEDS.h"
class ESRawToDigi : public edm::stream::EDProducer<> {
public:
ESRawToDigi(const edm::ParameterSet& ps);
~ESRawToDigi() override;
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
void produce(edm::Event& e, const edm::EventSetup& es) override;
private:
std::string ESdigiCollection_;
edm::EDGetTokenT<FEDRawDataCollection> dataToken_;
edm::EDGetTokenT<ESListOfFEDS> fedsToken_;
bool regional_;
bool debug_;
ESUnpacker* ESUnpacker_;
};
#endif
|