55 std::unique_ptr<const CSCDigiToRaw>
packer_;
89 put_token_ = produces<FEDRawDataCollection>(
"CSCRawData");
114 desc.
add<
unsigned int>(
"useFormatVersion",2005)->
115 setComment(
"Set to 2005 for pre-LS1 CSC data format, 2013 - new post-LS1 CSC data format");
116 desc.
add<
bool>(
"usePreTriggers",
true)->
117 setComment(
"Set to false if CSCCLCTPreTrigger digis are not available");
118 desc.
add<
bool>(
"packEverything",
false)->
119 setComment(
"Set to true to disable trigger-related constraints on readout data");
129 desc.
add<int32_t>(
"alctWindowMin", -3)->
130 setComment(
"If min parameter = -999 always accept");
131 desc.
add<int32_t>(
"alctWindowMax", 3);
132 desc.
add<int32_t>(
"clctWindowMin", -3)->
133 setComment(
"If min parameter = -999 always accept");
134 desc.
add<int32_t>(
"clctWindowMax", 3);
135 desc.
add<int32_t>(
"preTriggerWindowMin", -3)->
136 setComment(
"If min parameter = -999 always accept");
137 desc.
add<int32_t>(
"preTriggerWindowMax", 1);
139 descriptions.
add(
"cscPacker", desc);
170 packer_->createFedBuffers(*stripDigis, *wireDigis, *comparatorDigis,
171 *alctDigis, *clctDigis, *preTriggers, *correlatedLCTDigis,
T getParameter(std::string const &) const
edm::EDGetTokenT< CSCCLCTPreTriggerCollection > pr_token
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDPutTokenT< FEDRawDataCollection > put_token_
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > co_token
edm::EDGetTokenT< CSCComparatorDigiCollection > cd_token
edm::EDGetTokenT< CSCWireDigiCollection > wd_token
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
unsigned int theFormatVersion
edm::EDGetTokenT< CSCCLCTDigiCollection > cl_token
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
edm::EDGetTokenT< CSCALCTDigiCollection > al_token
CSCDigiToRawModule(const edm::ParameterSet &pset)
Constructor.
std::unique_ptr< const CSCDigiToRaw > packer_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< CSCStripDigiCollection > sd_token
T const * product() const