File indexing completed on 2023-03-17 10:59:32
0001 #ifndef CTPPS_CTPPSPixelRawToDigi_CTPPSPixelRawToDigi_h
0002 #define CTPPS_CTPPSPixelRawToDigi_CTPPSPixelRawToDigi_h
0003
0004
0005
0006
0007
0008 #include "FWCore/Framework/interface/MakerMacros.h"
0009 #include "FWCore/Framework/interface/ESWatcher.h"
0010 #include "FWCore/Framework/interface/stream/EDProducer.h"
0011 #include "FWCore/Framework/interface/EventSetup.h"
0012 #include "FWCore/Framework/interface/Event.h"
0013 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0014 #include "FWCore/Utilities/interface/ESGetToken.h"
0015
0016 #include "CondFormats/DataRecord/interface/CTPPSPixelDAQMappingRcd.h"
0017 #include "CondFormats/PPSObjects/interface/CTPPSPixelDAQMapping.h"
0018
0019 #include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
0020 #include "FWCore/Framework/interface/ConsumesCollector.h"
0021
0022 class CTPPSPixelRawToDigi : public edm::stream::EDProducer<> {
0023 public:
0024 explicit CTPPSPixelRawToDigi(const edm::ParameterSet&);
0025
0026 ~CTPPSPixelRawToDigi() override;
0027
0028 static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0029
0030
0031 void produce(edm::Event&, const edm::EventSetup&) override;
0032
0033 private:
0034 edm::ParameterSet config_;
0035
0036 edm::EDGetTokenT<FEDRawDataCollection> FEDRawDataCollection_;
0037
0038 edm::ESGetToken<CTPPSPixelDAQMapping, CTPPSPixelDAQMappingRcd> CTPPSPixelDAQMapping_;
0039
0040 std::set<unsigned int> fedIds_;
0041
0042 edm::InputTag label_;
0043
0044 std::string mappingLabel_;
0045
0046 bool includeErrors_;
0047 bool isRun3_;
0048 };
0049 #endif