95 auto instanceNameEB = iConfig.
getParameter<
string>(
"InstanceEB");
96 auto instanceNameEE = iConfig.
getParameter<
string>(
"InstanceEE");
110 putToken_ = produces<FEDRawDataCollection>();
120 cout <<
"Enter in EcalDigiToRaw::produce ... " << endl;
132 params.
lv1_ = counter % (0x1 << 24);
140 Headerblockformatter.
DigiToRaw(&productRawData);
151 cout <<
"Creation of the TCC block " << endl;
165 int iDCC = TheMapping->
DCCid(detid);
171 TCCblockformatter.
DigiToRaw(trigprim, rawdata, TheMapping);
179 cout <<
" Process the SR flags " << endl;
187 int flag = srflag.
value();
190 int Dccid = TheMapping->
DCCid(
id);
191 int DCC_Channel = TheMapping->
iTT(
id);
195 cout <<
"will process SRblockformatter_ for FEDid " <<
dec << FEDid << endl;
198 Headerblockformatter.
print(rawdata);
199 SRblockformatter.
DigiToRaw(Dccid, DCC_Channel, flag, rawdata);
209 int flag = srflag.
value();
212 int Dccid = ind.first;
213 int DCC_Channel = ind.second;
217 SRblockformatter.
DigiToRaw(Dccid, DCC_Channel, flag, rawdata);
231 cout <<
"Creation of the TowerBlock ... Barrel case " << endl;
235 const EBDetId& ebdetid = it->id();
236 int DCCid = TheMapping->
DCCid(ebdetid);
239 Towerblockformatter.
DigiToRaw(dataframe, rawdata, TheMapping);
245 cout <<
"Creation of the TowerBlock ... EndCap case " << endl;
249 const EEDetId& eedetid = it->id();
251 int DCCid = elid.
dccId();
254 Towerblockformatter.
DigiToRaw(dataframe, rawdata, TheMapping);
262 map<int, map<int, int> >& FEDorder = Towerblockformatter.
GetFEDorder();
264 Headerblockformatter.
CleanUp(&productRawData, &FEDorder);
274 Towerblockformatter.
EndEvent(&productRawData);
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< EESrFlagCollection > labelEESR_
const edm::EventSetup & c
edm::EDGetTokenT< EBDigiCollection > EBDigiToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > ecalmappingToken_
std::vector< T >::const_iterator const_iterator
int bunchCrossing() const
virtual const DetId & id() const =0
int iTT(const EcalTrigTowerDetId &id) const
returns the index of a Trigger Tower within its TCC.
std::pair< int, int > getDCCandSC(EcalScDetId id) const
EcalElectronicsId getElectronicsId(const DetId &id) const
Get the electronics id for this det id.
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
const std::vector< int32_t > listDCCId_
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
edm::EDPutTokenT< FEDRawDataCollection > putToken_
edm::EDGetTokenT< EcalTrigPrimDigiCollection > labelTT_
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
edm::EDGetTokenT< EEDigiCollection > EEDigiToken_
T const * product() const
T getParameter(std::string const &) const
int DCCid(const EBDetId &id) const
returns the DCC of an EBDetId
void produce(edm::StreamID, edm::Event &e, const edm::EventSetup &c) const override
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
EcalSubdetector subDet() const
get the subDetector associated to the Trigger Tower
static std::atomic< unsigned int > counter
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::EDGetTokenT< EBSrFlagCollection > labelEBSR_
EcalDigiToRaw(const edm::ParameterSet &pset)
const BlockFormatter::Config config_