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() ) {
51 for (
int i=0;
i<nLines; ++
i) {
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);
105 auto productRawData = std::make_unique<FEDRawDataCollection>();
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;
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)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const_iterator begin() const
edm::EDGetTokenT< ESDigiCollection > ESDigiToken_
size_t size() const
Lenght of the data buffer in bytes.
ESDataFormatter * ESDataFormatter_
std::string instanceName_
const_iterator end() const
ESDigiToRaw(const edm::ParameterSet &ps)
static const int KCHIP_BC_RANGE
static const int LHC_BX_RANGE