14 ec_mapping = std::make_unique<EcalElectronicsMapping>();
16 produces<FEDRawDataCollection>();
17 produces<EcalListOfFEDS>();
19 for (
int p = 0;
p < 1200;
p++) {
27 for (
int p = 0;
p < 1200;
p++) {
31 auto producedData = std::make_unique<FEDRawDataCollection>();
33 auto fedList = std::make_unique<EcalListOfFEDS>();
38 std::vector<edm::Ref<reco::IsolatedPixelTrackCandidateCollection> > isoPixTrackRefs;
46 for (uint32_t
p = 0;
p < isoPixTrackRefs.size();
p++) {
47 double etaObj_ = isoPixTrackRefs[
p]->track()->eta();
48 double phiObj_ = isoPixTrackRefs[
p]->track()->phi();
52 const std::vector<int> EC_FED_IDs =
ec_mapping->GetListofFEDs(ecEtaPhi);
57 bool rightFED =
false;
58 for (uint32_t
k = 0;
k < EC_FED_IDs.size();
k++) {
79 if (fedDataProd.
size() != 0) {
85 unsigned char* dataProd = fedDataProd.
data();
86 const unsigned char*
data = fedData.
data();
87 for (
unsigned int k = 0;
k <
size; ++
k) {