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
|
#ifndef HcalDigiToRaw_h
#define HcalDigiToRaw_h
/** \class HcalDigiToRaw
*
* HcalDigiToRaw is the EDProducer subclass which runs
* the Hcal Unpack algorithm.
*
* \author Jeremiah Mans
*
* \version 1st Version June 10, 2005
*
************************************************************/
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/ESGetToken.h"
#include "EventFilter/HcalRawToDigi/interface/HcalPacker.h"
#include "DataFormats/HcalDigi/interface/HcalDigiCollections.h"
#include "CalibFormats/HcalObjects/interface/HcalDbService.h"
#include "CalibFormats/HcalObjects/interface/HcalDbRecord.h"
class HcalDigiToRaw : public edm::global::EDProducer<> {
public:
explicit HcalDigiToRaw(const edm::ParameterSet& ps);
~HcalDigiToRaw() override;
void produce(edm::StreamID id, edm::Event& e, const edm::EventSetup& c) const override;
private:
HcalPacker packer_;
const edm::InputTag hbheTag_, hoTag_, hfTag_, zdcTag_, calibTag_, trigTag_;
const edm::EDGetTokenT<HBHEDigiCollection> tok_hbhe_;
const edm::EDGetTokenT<HODigiCollection> tok_ho_;
const edm::EDGetTokenT<HFDigiCollection> tok_hf_;
const edm::EDGetTokenT<HcalCalibDigiCollection> tok_calib_;
const edm::EDGetTokenT<ZDCDigiCollection> tok_zdc_;
const edm::EDGetTokenT<HcalTrigPrimDigiCollection> tok_htp_;
const edm::ESGetToken<HcalDbService, HcalDbRecord> tok_dbService_;
};
#endif
|