File indexing completed on 2023-03-17 10:59:17
0001 #ifndef CastorDigiToRaw_h
0002 #define CastorDigiToRaw_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include "FWCore/Framework/interface/global/EDProducer.h"
0016 #include "FWCore/Framework/interface/Event.h"
0017 #include "DataFormats/Common/interface/Handle.h"
0018
0019 #include "FWCore/Framework/interface/EventSetup.h"
0020 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0021 #include "FWCore/Utilities/interface/ESGetToken.h"
0022
0023 #include "EventFilter/CastorRawToDigi/interface/CastorPacker.h"
0024 #include "EventFilter/CastorRawToDigi/interface/CastorCtdcPacker.h"
0025 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h"
0026 #include "CalibFormats/CastorObjects/interface/CastorDbService.h"
0027 #include "CalibFormats/CastorObjects/interface/CastorDbRecord.h"
0028
0029 class CastorDigiToRaw : public edm::global::EDProducer<> {
0030 public:
0031 explicit CastorDigiToRaw(const edm::ParameterSet& ps);
0032 void produce(edm::StreamID, edm::Event& e, const edm::EventSetup& c) const override;
0033
0034 private:
0035 const edm::InputTag castorTag_;
0036 const bool usingctdc_;
0037 const edm::EDGetTokenT<CastorDigiCollection> tok_input_;
0038 const edm::EDPutTokenT<FEDRawDataCollection> tok_put_;
0039 const edm::ESGetToken<CastorDbService, CastorDbRecord> tok_pSetup_;
0040 };
0041
0042 #endif