35 produces<FEDRawDataCollection>(
"CSCRawData");
64 desc.
add<
unsigned int>(
"useFormatVersion",2005)->
65 setComment(
"Set to 2005 for pre-LS1 CSC data format, 2013 - new post-LS1 CSC data format");
66 desc.
add<
bool>(
"usePreTriggers",
true)->
67 setComment(
"Set to false if CSCCLCTPreTrigger digis are not available");
68 desc.
add<
bool>(
"packEverything",
false)->
69 setComment(
"Set to true to disable trigger-related constraints on readout data");
79 desc.
add<int32_t>(
"alctWindowMin", -3)->
80 setComment(
"If min parameter = -999 always accept");
81 desc.
add<int32_t>(
"alctWindowMax", 3);
82 desc.
add<int32_t>(
"clctWindowMin", -3)->
83 setComment(
"If min parameter = -999 always accept");
84 desc.
add<int32_t>(
"clctWindowMax", 3);
85 desc.
add<int32_t>(
"preTriggerWindowMin", -3)->
86 setComment(
"If min parameter = -999 always accept");
87 desc.
add<int32_t>(
"preTriggerWindowMax", 1);
89 descriptions.
add(
"cscPacker", desc);
99 auto fed_buffers = std::make_unique<FEDRawDataCollection>();
121 *alctDigis, *clctDigis, *preTriggers, *correlatedLCTDigis,
T getParameter(std::string const &) const
edm::EDGetTokenT< CSCCLCTPreTriggerCollection > pr_token
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > co_token
edm::EDGetTokenT< CSCComparatorDigiCollection > cd_token
edm::EDGetTokenT< CSCWireDigiCollection > wd_token
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
unsigned int theFormatVersion
edm::EDGetTokenT< CSCCLCTDigiCollection > cl_token
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< CSCALCTDigiCollection > al_token
CSCDigiToRawModule(const edm::ParameterSet &pset)
Constructor.
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual ~CSCDigiToRawModule()
Destructor.
edm::EDGetTokenT< CSCStripDigiCollection > sd_token
virtual void produce(edm::Event &, const edm::EventSetup &)
void createFedBuffers(const CSCStripDigiCollection &stripDigis, const CSCWireDigiCollection &wireDigis, const CSCComparatorDigiCollection &comparatorDigis, const CSCALCTDigiCollection &alctDigis, const CSCCLCTDigiCollection &clctDigis, const CSCCLCTPreTriggerCollection &preTriggers, const CSCCorrelatedLCTDigiCollection &correlatedLCTDigis, FEDRawDataCollection &fed_buffers, const CSCChamberMap *theMapping, edm::Event &e, uint16_t theFormatVersion=2005, bool usePreTriggers=true, bool packEverything=false)
Take a vector of digis and fill the FEDRawDataCollection.
T const * product() const