|
void | beginJob () override |
|
| EcalDCCTB07UnpackingModule (const edm::ParameterSet &pset) |
| Constructor. More...
|
|
void | endJob (void) override |
|
void | produce (edm::Event &e, const edm::EventSetup &c) override |
| Produce digis out of raw data. More...
|
|
| ~EcalDCCTB07UnpackingModule () override |
| Destructor. More...
|
|
| EDProducer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducer () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
std::vector< bool > const & | recordProvenanceList () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducer | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsInputProcessBlocks () |
|
static bool | wantsProcessBlocks () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
| declare what type of product will make and with which optional label More...
|
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
ProducesCollector | producesCollector () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 25 of file EcalDCC07UnpackingModule.h.
EcalDCCTB07UnpackingModule::EcalDCCTB07UnpackingModule |
( |
const edm::ParameterSet & |
pset | ) |
|
Constructor.
Definition at line 40 of file EcalDCC07UnpackingModule.cc.
48 std::vector<int>
ics =
pset.getUntrackedParameter<std::vector<int> >(
"ics", std::vector<int>());
49 std::vector<int>
towerIDs =
pset.getUntrackedParameter<std::vector<int> >(
"towerIDs", std::vector<int>());
50 std::vector<int>
stripIDs =
pset.getUntrackedParameter<std::vector<int> >(
"stripIDs", std::vector<int>());
51 std::vector<int>
channelIDs =
pset.getUntrackedParameter<std::vector<int> >(
"channelIDs", std::vector<int>());
54 std::vector<int>
statusIDs =
pset.getUntrackedParameter<std::vector<int> >(
"statusIDs", std::vector<int>());
55 std::vector<int>
ccuIDs =
pset.getUntrackedParameter<std::vector<int> >(
"ccuIDs", std::vector<int>());
56 std::vector<int>
positionIDs =
pset.getUntrackedParameter<std::vector<int> >(
"positionIDs", std::vector<int>());
61 <<
"Some of the mapping info is missing! Check config files! "
62 <<
" Size of IC vector is " <<
ics.size() <<
" Size of Tower ID vector is " <<
towerIDs.size()
63 <<
" Size of Strip ID vector is " <<
stripIDs.size() <<
" Size of Channel ID vector is " <<
channelIDs.size();
67 <<
"Some of the mapping info is missing! Check config files! "
68 <<
" Size of status ID vector is " <<
statusIDs.size() <<
" Size of ccu ID vector is " <<
ccuIDs.size()
77 <<
"Mapping information is corrupted. "
78 <<
"Tower/DQM position/strip/channel vectors are of different size! Check cfi files! \n"
79 <<
" Size of IC vector is " <<
ics.size() <<
" Size of Tower ID vector is " <<
towerIDs.size()
80 <<
" Size of Strip ID vector is " <<
stripIDs.size() <<
" Size of Channel ID vector is " <<
channelIDs.size();
85 <<
"Mapping information is corrupted. "
86 <<
"Status/CCU ID/DQM position vectors are of different size! Check cfi files! \n"
87 <<
" Size of status ID vector is " <<
statusIDs.size() <<
" Size of ccu ID vector is " <<
ccuIDs.size()
90 int cryIcMap[68][5][5];
91 int tbStatusToLocation[71];
92 int tbTowerIDToLocation[201];
93 for (
unsigned it = 1; it <= 68; ++it)
94 for (
unsigned is = 1; is <= 5; ++is)
95 for (
unsigned ic = 1; ic <= 5; ++ic)
96 cryIcMap[it - 1][is - 1][ic - 1] = 1700;
98 for (
unsigned it = 1; it <= 71; ++it)
99 tbStatusToLocation[it - 1] = it - 1;
101 for (
unsigned it = 1; it <= 201; ++it)
102 tbTowerIDToLocation[it - 1] = it - 1;
105 for (
unsigned int i = 0;
i <
ics.size(); ++
i) {
110 cryIcMap[
tower - 1][
strip - 1][channel - 1] = ic;
117 tbStatusToLocation[is] = itEB;
118 tbTowerIDToLocation[it] = itEB;
128 produces<EBDigiCollection>(
"ebDigis");
129 produces<EEDigiCollection>(
"eeDigis");
130 produces<EcalMatacqDigiCollection>();
131 produces<EcalPnDiodeDigiCollection>();
132 produces<EcalRawDataCollection>();
133 produces<EcalTrigPrimDigiCollection>(
"EBTT");
136 produces<EcalTBHodoscopeRawInfo>();
137 produces<EcalTBTDCRawInfo>();
138 produces<EcalTBEventHeader>();
141 produces<EBDetIdCollection>(
"EcalIntegrityDCCSizeErrors");
142 produces<EcalElectronicsIdCollection>(
"EcalIntegrityTTIdErrors");
143 produces<EcalElectronicsIdCollection>(
"EcalIntegrityBlockSizeErrors");
144 produces<EBDetIdCollection>(
"EcalIntegrityChIdErrors");
145 produces<EBDetIdCollection>(
"EcalIntegrityGainErrors");
146 produces<EBDetIdCollection>(
"EcalIntegrityGainSwitchErrors");
149 produces<EcalElectronicsIdCollection>(
"EcalIntegrityMemTtIdErrors");
150 produces<EcalElectronicsIdCollection>(
"EcalIntegrityMemBlockSize");
151 produces<EcalElectronicsIdCollection>(
"EcalIntegrityMemChIdErrors");
152 produces<EcalElectronicsIdCollection>(
"EcalIntegrityMemGainErrors");
References camacTBformatter_, Ecal07UnpackerData_cfi::ccuIDs, Ecal07UnpackerData_cfi::channelIDs, ecalSupervisorFormatter_, formatter_, mps_fire::i, Ecal07UnpackerData_cfi::ics, matacqFormatter_, Ecal07UnpackerData_cfi::positionIDs, ProduceEBDigis_, ProduceEEDigis_, muonDTDigis_cfi::pset, Ecal07UnpackerData_cfi::statusIDs, AlCaHLTBitMon_QueryRunRegistry::string, digitizers_cfi::strip, Ecal07UnpackerData_cfi::stripIDs, tableFormatter_, Ecal07UnpackerData_cfi::tbName, hgcalTowerProducer_cfi::tower, and Ecal07UnpackerData_cfi::towerIDs.
Produce digis out of raw data.
Implements edm::EDProducer.
Definition at line 161 of file EcalDCC07UnpackingModule.cc.
166 auto productEb = std::make_unique<EBDigiCollection>();
169 auto productEe = std::make_unique<EEDigiCollection>();
172 auto productMatacq = std::make_unique<EcalMatacqDigiCollection>();
175 auto productPN = std::make_unique<EcalPnDiodeDigiCollection>();
178 auto productDCCHeader = std::make_unique<EcalRawDataCollection>();
181 auto productTriggerPrimitives = std::make_unique<EcalTrigPrimDigiCollection>();
184 auto productDCCSize = std::make_unique<EBDetIdCollection>();
187 auto productTTId = std::make_unique<EcalElectronicsIdCollection>();
190 auto productBlockSize = std::make_unique<EcalElectronicsIdCollection>();
193 auto productChId = std::make_unique<EBDetIdCollection>();
196 auto productGain = std::make_unique<EBDetIdCollection>();
199 auto productGainSwitch = std::make_unique<EBDetIdCollection>();
202 auto productMemTtId = std::make_unique<EcalElectronicsIdCollection>();
205 auto productMemBlockSize = std::make_unique<EcalElectronicsIdCollection>();
208 auto productMemGain = std::make_unique<EcalElectronicsIdCollection>();
211 auto productMemChIdErrors = std::make_unique<EcalElectronicsIdCollection>();
214 auto productHodo = std::make_unique<EcalTBHodoscopeRawInfo>();
215 auto productTdc = std::make_unique<EcalTBTDCRawInfo>();
216 auto productHeader = std::make_unique<EcalTBEventHeader>();
236 if (
data.size() > 16) {
241 (*productHeader).setSmInBeam(
id);
255 *productMemBlockSize,
257 *productMemChIdErrors,
258 *productTriggerPrimitives);
259 int runType = (*productDCCHeader)[0].getRunType();
261 (*productHeader).setTriggerMask(0
x1);
263 (*productHeader).setTriggerMask(0x2000);
265 (*productHeader).setTriggerMask(0x800);
266 LogDebug(
"EcalDCCTB07UnpackingModule")
267 <<
"Event type is " << (*productHeader).eventType() <<
" dbEventType " << (*productHeader).dbEventType();
287 e.put(
std::move(productTriggerPrimitives),
"EBTT");
290 e.put(
std::move(productDCCSize),
"EcalIntegrityDCCSizeErrors");
292 e.put(
std::move(productTTId),
"EcalIntegrityTTIdErrors");
294 e.put(
std::move(productBlockSize),
"EcalIntegrityBlockSizeErrors");
296 e.put(
std::move(productChId),
"EcalIntegrityChIdErrors");
298 e.put(
std::move(productGain),
"EcalIntegrityGainErrors");
300 e.put(
std::move(productGainSwitch),
"EcalIntegrityGainSwitchErrors");
303 e.put(
std::move(productMemTtId),
"EcalIntegrityMemTtIdErrors");
305 e.put(
std::move(productMemBlockSize),
"EcalIntegrityMemBlockSize");
307 e.put(
std::move(productMemChIdErrors),
"EcalIntegrityMemChIdErrors");
309 e.put(
std::move(productMemGain),
"EcalIntegrityMemGainErrors");
316 std::cout <<
"[EcalDCCTB07UnpackingModule] " <<
e.what() << std::endl;
318 std::cout <<
"[EcalDCCTB07UnpackingModule] " <<
e.what() << std::endl;
320 std::cout <<
"[EcalDCCTB07UnpackingModule] " <<
e.what() << std::endl;
322 std::cout <<
"[EcalDCCTB07UnpackingModule] Unknown exception ..." << std::endl;
References EcalDCCHeaderBlock::BEAMH4, BEG_DCC_FED_ID, BEG_DCC_FED_ID_GLOBAL, camacTBformatter_, EcalDCCHeaderBlock::COSMIC, gather_cfg::cout, data, MillePedeFileConverter_cfg::e, ECAL_SUPERVISOR_FED_ID, ecalSupervisorFormatter_, END_DCC_FED_ID, END_DCC_FED_ID_GLOBAL, FEDRawDataCollection::FEDData(), fedRawDataCollectionTag_, formatter_, triggerObjects_cff::id, TableDataFormatter::interpretRawData(), EcalSupervisorTBDataFormatter::interpretRawData(), MatacqTBDataFormatter::interpretRawData(), CamacTBDataFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), LogDebug, MATACQ_FED_ID, matacqFormatter_, FEDNumbering::MAXFEDID, eostools::move(), ProduceEBDigis_, ProduceEEDigis_, EcalCondDBWriter_cfi::runType, TABLE_FED_ID, tableFormatter_, TBCAMAC_FED_ID, and testProducerWithPsetDescEmpty_cfi::x1.