30 produces<FEDRawDataCollection>();
32 if (formatMajor_ == 4)
38 for (
int i=0;
i<2; ++
i)
39 for (
int j=0;
j<2; ++
j)
40 for (
int k=0 ;
k<40; ++
k)
41 for (
int m=0;
m<40;
m++)
45 int nLines, iz, ip, ix, iy, fed, kchip, pace, bundle, fiber, optorx;
47 file.open(lookup_.fullPath().c_str());
48 if( file.is_open() ) {
52 file >> iz >> ip >> ix >> iy >> fed >> kchip >> pace >> bundle >> fiber >> optorx ;
53 fedId_[(3-iz)/2-1][ip-1][ix-1][iy-1] = fed;
56 cout<<
"[ESDigiToRaw] Look up table file can not be found in "<<lookup_.fullPath().c_str() <<endl;
97 const ESDetId& detId = it->id();
100 if (ifed < 0)
continue;
102 Digis[ifed].push_back(df);
107 ESDataFormatter::Digis::const_iterator itfed;
108 for (itfed = Digis.begin(); itfed != Digis.end(); ++itfed) {
109 int fId = (*itfed).first ;
111 FEDRawData& fedRawData = productRawData->FEDData(fId);
114 if (
debug_)
cout<<
"FED : "<<fId<<
" Data size : "<<fedRawData.
size()<<
" (Bytes)"<<endl;
117 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
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< ESDigiCollection > ESDigiToken_
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_
ESDigiToRaw(const edm::ParameterSet &ps)
static const int KCHIP_BC_RANGE
static const int LHC_BX_RANGE