58 std::unique_ptr<const CSCDigiToRaw>
packer_;
90 cham_token = esConsumes<CSCChamberMap, CSCChamberMapRcd>();
97 put_token_ = produces<FEDRawDataCollection>(
"CSCRawData");
103 desc.
add<
unsigned int>(
"formatVersion", 2005)
104 ->setComment(
"Set to 2005 for pre-LS1 CSC data format, 2013 - new post-LS1 CSC data format");
105 desc.
add<
bool>(
"usePreTriggers",
true)->setComment(
"Set to false if CSCCLCTPreTrigger digis are not available");
106 desc.
add<
bool>(
"packEverything",
false)
107 ->setComment(
"Set to true to disable trigger-related constraints on readout data");
108 desc.
add<
bool>(
"packByCFEB",
false)->setComment(
"Pack strip digis using CFEB info");
109 desc.
add<
bool>(
"useGEMs",
false)->setComment(
"Pack GEM trigger data");
110 desc.
add<
bool>(
"useCSCShowers",
false)->setComment(
"Pack CSC shower trigger data");
123 desc.
add<int32_t>(
"alctWindowMin", -3)->setComment(
"If min parameter = -999 always accept");
124 desc.
add<int32_t>(
"alctWindowMax", 3);
125 desc.
add<int32_t>(
"clctWindowMin", -3)->setComment(
"If min parameter = -999 always accept");
126 desc.
add<int32_t>(
"clctWindowMax", 3);
127 desc.
add<int32_t>(
"preTriggerWindowMin", -3)->setComment(
"If min parameter = -999 always accept");
128 desc.
add<int32_t>(
"preTriggerWindowMax", 1);
130 descriptions.
add(
"cscPackerDef", desc);
179 packer_->createFedBuffers(*stripDigis,
edm::EDGetTokenT< CSCCLCTPreTriggerCollection > pr_token
const edm::EventSetup & c
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< CSCCLCTPreTriggerDigiCollection > prdigi_token
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)
edm::EDGetTokenT< CSCCLCTDigiCollection > cl_token
bool get(ProductID const &oid, Handle< PROD > &result) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< GEMPadDigiClusterCollection > gem_token
edm::ESGetToken< CSCChamberMap, CSCChamberMapRcd > cham_token
edm::EDGetTokenT< CSCShowerDigiCollection > shower_token
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
edm::EDGetTokenT< CSCALCTDigiCollection > al_token
CSCDigiToRawModule(const edm::ParameterSet &pset)
Constructor.
T const * product() const
T getParameter(std::string const &) const
std::unique_ptr< const CSCDigiToRaw > packer_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
edm::EDGetTokenT< CSCStripDigiCollection > sd_token
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
A container for a generic type of digis indexed by some index, implemented with a map<IndexType...