29 produces<FEDRawDataCollection>();
31 if (formatMajor_ == 4)
37 for (
int i=0;
i<2; ++
i)
38 for (
int j=0;
j<2; ++
j)
39 for (
int k=0 ;
k<40; ++
k)
40 for (
int m=0;
m<40;
m++)
44 int nLines, iz, ip, ix, iy, fed, kchip, pace, bundle, fiber, optorx;
46 file.open(lookup_.fullPath().c_str());
47 if( file.is_open() ) {
51 file >> iz >> ip >> ix >> iy >> fed >> kchip >> pace >> bundle >> fiber >> optorx ;
52 fedId_[(3-iz)/2-1][ip-1][ix-1][iy-1] = fed;
55 cout<<
"[ESDigiToRaw] Look up table file can not be found in "<<lookup_.fullPath().c_str() <<endl;
96 const ESDetId& detId = it->id();
99 if (ifed < 0)
continue;
101 Digis[ifed].push_back(df);
106 ESDataFormatter::Digis::const_iterator itfed;
107 for (itfed = Digis.begin(); itfed != Digis.end(); ++itfed) {
108 int fId = (*itfed).first ;
110 FEDRawData& fedRawData = productRawData->FEDData(fId);
113 if (
debug_)
cout<<
"FED : "<<fId<<
" Data size : "<<fedRawData.
size()<<
" (Bytes)"<<endl;
116 ev.
put(productRawData);
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
static const int KCHIP_EC_RANGE
void produce(edm::Event &e, const edm::EventSetup &es)
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
size_t size() const
Lenght of the data buffer in bytes.
ESDataFormatter * ESDataFormatter_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::string instanceName_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
ESDigiToRaw(const edm::ParameterSet &ps)
static const int KCHIP_BC_RANGE
static const int LHC_BX_RANGE