16 produces<FEDRawDataCollection>();
17 produces<EcalListOfFEDS>();
19 for (
int p=0;
p<1200;
p++)
33 for (
int p=0;
p<1200;
p++)
45 std::vector< edm::Ref<reco::IsolatedPixelTrackCandidateCollection> > isoPixTrackRefs;
53 for (uint32_t
p=0;
p<isoPixTrackRefs.size();
p++)
55 double etaObj_=isoPixTrackRefs[
p]->track()->eta();
56 double phiObj_=isoPixTrackRefs[
p]->track()->phi();
67 for (uint32_t
k=0;
k<EC_FED_IDs.size();
k++)
84 if (!rightFED)
continue;
91 FEDRawData & fedDataProd = producedData->FEDData(
j);
92 if ( fedDataProd.
size() != 0 )
99 unsigned char *dataProd=fedDataProd.
data();
100 const unsigned char *
data=fedData.
data();
101 for (
unsigned int k=0;
k<
size; ++
k )
110 iEvent.
put(producedData);
T getParameter(std::string const &) const
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > tok_seed_
ECALRegFEDSelector(const edm::ParameterSet &)
size_t size() const
Lenght of the data buffer in bytes.
const EcalElectronicsMapping * ec_mapping
static int fedIndex(const uint32_t index)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void resize(size_t newsize)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
T const * product() const
virtual void produce(edm::Event &, const edm::EventSetup &)
char data[epos_bytes_allocation]
std::vector< int > GetListofFEDs(const EcalEtaPhiRegion ®ion) const
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
tuple size
Write out results.