9 : tok_seed_(consumes<
trigger::TriggerFilterObjectWithRefs>(iConfig.getParameter<
edm::
InputTag>(
"regSeedLabel"))),
12 delta_(iConfig.getParameter<double>(
"delta")) {
13 produces<FEDRawDataCollection>();
19 auto producedData = std::make_unique<FEDRawDataCollection>();
24 std::vector<edm::Ref<reco::IsolatedPixelTrackCandidateCollection> > isoPixTrackRefs;
31 std::vector<int> stripFEDVec;
42 for (
int i = 0;
i < 1000;
i++)
46 for (uint32_t
p = 0;
p < isoPixTrackRefs.size();
p++) {
47 double etaObj_ = isoPixTrackRefs[
p]->track()->eta();
48 double phiObj_ = isoPixTrackRefs[
p]->track()->phi();
51 for (uint32_t
i = 0;
i < ccab.size();
i++) {
53 double dphi = fabs(
pos.second - phiObj_);
55 dphi = 2 * acos(-1) - dphi;
56 double R =
sqrt(
pow(
pos.first - etaObj_, 2) + dphi * dphi);
68 SiStripRegionCabling::ElementCabling::const_iterator it = fedVectorMap.begin();
69 for (; it != fedVectorMap.end(); it++) {
70 for (uint32_t op = 0; op < (it->second).
size(); op++) {
72 int fediid = (it->second)[op].
fedId();
73 if (!fedSaved[fediid]) {
74 stripFEDVec.push_back(fediid);
76 fedSaved[fediid] =
true;
92 bool rightFED =
false;
93 for (uint32_t
k = 0;
k < stripFEDVec.size();
k++) {
94 if (
j == stripFEDVec[
k]) {
105 FEDRawData& fedDataProd = producedData->FEDData(
j);
106 if (fedDataProd.
size() != 0) {
107 edm::LogVerbatim(
"HcalIsoTrack") <<
" More than one FEDRawDataCollection with data in FED " <<
j
108 <<
" Skipping the 2nd *****";
112 unsigned char* dataProd = fedDataProd.
data();
113 const unsigned char*
data = fedData.
data();
114 for (
unsigned int k = 0;
k <
size; ++
k) {