8 #include "StPythiaEvent.h"
9 #include "StJetSkimEvent.h"
21 this->runId = t.runId;
22 this->trigId = t.trigId;
23 this->prescale = t.prescale;
24 this->eastBarrelTowerThreshold = t.eastBarrelTowerThreshold;
25 this->eastBarrelTriggerPatchThreshold = t.eastBarrelTriggerPatchThreshold;
26 this->eastBarrelJetPatchThreshold = t.eastBarrelJetPatchThreshold;
27 this->westBarrelTowerThreshold = t.westBarrelTowerThreshold;
28 this->westBarrelTriggerPatchThreshold = t.westBarrelTriggerPatchThreshold;
29 this->westBarrelJetPatchThreshold = t.westBarrelJetPatchThreshold;
30 this->endcapTowerThreshold = t.endcapTowerThreshold;
31 this->endcapTriggerPatchThreshold = t.endcapTriggerPatchThreshold;
32 this->endcapJetPatchThreshold = t.endcapJetPatchThreshold;
33 this->totalEnergyThreshold = t.totalEnergyThreshold;
36 StJetSkimTrigHeader::~StJetSkimTrigHeader() { }
40 TObject::operator=(rhs);
42 this->runId = rhs.runId;
43 this->trigId = rhs.trigId;
44 this->prescale = rhs.prescale;
45 this->eastBarrelTowerThreshold = rhs.eastBarrelTowerThreshold;
46 this->eastBarrelTriggerPatchThreshold = rhs.eastBarrelTriggerPatchThreshold;
47 this->eastBarrelJetPatchThreshold = rhs.eastBarrelJetPatchThreshold;
48 this->westBarrelTowerThreshold = rhs.westBarrelTowerThreshold;
49 this->westBarrelTriggerPatchThreshold = rhs.westBarrelTriggerPatchThreshold;
50 this->westBarrelJetPatchThreshold = rhs.westBarrelJetPatchThreshold;
51 this->endcapTowerThreshold = rhs.endcapTowerThreshold;
52 this->endcapTriggerPatchThreshold = rhs.endcapTriggerPatchThreshold;
53 this->endcapJetPatchThreshold = rhs.endcapJetPatchThreshold;
54 this->totalEnergyThreshold = rhs.totalEnergyThreshold;
60 void StJetSkimTrigHeader::Clear(
const char *option) {
61 TObject::Clear(option);
65 void StJetSkimTrigHeader::init() {
69 this->eastBarrelTowerThreshold = -1;
70 this->eastBarrelTriggerPatchThreshold = -1;
71 this->eastBarrelJetPatchThreshold = -1;
72 this->westBarrelTowerThreshold = -1;
73 this->westBarrelTriggerPatchThreshold = -1;
74 this->westBarrelJetPatchThreshold = -1;
75 this->endcapTowerThreshold = -1;
76 this->endcapTriggerPatchThreshold = -1;
77 this->endcapJetPatchThreshold = -1;
78 this->totalEnergyThreshold = -1;
81 StJetSkimTrig::StJetSkimTrig() : TObject()
86 StJetSkimTrig::StJetSkimTrig(
const StJetSkimTrig& t) : TObject()
88 this->mTrigId = t.trigId();
89 this->mDidFire = t.didFire();
90 this->mShouldFire = t.shouldFire();
91 this->mShouldFireBBC = t.shouldFireBBC();
92 this->mShouldFireBemc = t.shouldFireBemc();
93 this->mShouldFireEemc = t.shouldFireEemc();
94 this->mShouldFireL2 = t.shouldFireL2();
95 this->mTowers = t.mTowers;
96 this->mTriggerPatches = t.mTriggerPatches;
97 this->mJetPatches = t.mJetPatches;
98 this->mTotalEnergy = t.totalEnergy();
100 memcpy(this->mL2ResultEmulated,t.mL2ResultEmulated,
sizeof(this->mL2ResultEmulated));
103 StJetSkimTrig::~StJetSkimTrig() { }
108 TObject::operator=(rhs);
110 this->mTrigId = rhs.trigId();
111 this->mDidFire = rhs.didFire();
112 this->mShouldFire = rhs.shouldFire();
113 this->mShouldFireBBC = rhs.shouldFireBBC();
114 this->mShouldFireBemc = rhs.shouldFireBemc();
115 this->mShouldFireEemc = rhs.shouldFireEemc();
116 this->mShouldFireL2 = rhs.shouldFireL2();
117 this->mTowers = rhs.mTowers;
118 this->mTriggerPatches = rhs.mTriggerPatches;
119 this->mJetPatches = rhs.mJetPatches;
120 this->mTotalEnergy = rhs.totalEnergy();
122 memcpy(this->mL2ResultEmulated,rhs.mL2ResultEmulated,
sizeof(this->mL2ResultEmulated));
128 void StJetSkimTrig::init() {
131 this->mShouldFire = -1;
132 this->mShouldFireBBC = -1;
133 this->mShouldFireBemc = -1;
134 this->mShouldFireEemc = -1;
135 this->mShouldFireL2 = -1;
136 this->mTotalEnergy = -1;
137 this->mTowers.clear();
138 this->mTriggerPatches.clear();
139 this->mJetPatches.clear();
141 memset(this->mL2ResultEmulated,0,
sizeof(this->mL2ResultEmulated));
144 void StJetSkimTrig::clear() {
148 void StJetSkimTrig::Clear(
const char *option) {
149 TObject::Clear(option);
153 map<int,int>& StJetSkimTrig::towersAboveThreshold(
int detector)
const{
154 map<int,int> *theMap =
new map<int,int>;
155 for(map<int,int>::const_iterator it=mTowers.begin(); it!=mTowers.end(); it++) {
156 if( (detector==0) && (it->first > 0) ) {
157 (*theMap)[it->first] = it->second;
159 else if( (detector==1) && (it->first <= 0) ) {
160 (*theMap)[TMath::Abs(it->first)] = it->second;
166 map<int,int>& StJetSkimTrig::triggerPatchesAboveThreshold(
int detector)
const{
167 map<int,int> *theMap =
new map<int,int>;
168 for(map<int,int>::const_iterator it=mTriggerPatches.begin(); it!=mTriggerPatches.end(); it++) {
169 if( (detector==0) && (it->first > 0) ) {
170 (*theMap)[it->first - 1] = it->second;
172 else if( (detector==1) && (it->first <= 0) ) {
173 (*theMap)[TMath::Abs(it->first)] = it->second;
179 map<int,int>& StJetSkimTrig::jetPatchesAboveThreshold(
int detector)
const{
180 map<int,int> *theMap =
new map<int,int>;
181 for(map<int,int>::const_iterator it=mJetPatches.begin(); it!=mJetPatches.end(); it++) {
182 if( (detector==0) && (it->first > 0) ) {
183 (*theMap)[it->first - 1] = it->second;
185 else if( (detector==1) && (it->first <= 0) ) {
186 (*theMap)[TMath::Abs(it->first)] = it->second;
192 void StJetSkimTrig::addTowerAboveThreshold(
int detector,
int aID,
int aADC) {
193 pair<int,int> p1(aID,aADC);
194 if(detector == 1) p1.first = (-1)*aID;
195 pair<map<int,int>::iterator,
bool> p2 = mTowers.insert(p1);
197 cerr <<
"Error! towersAboveThreshold map already contains key == " << p1.first << endl;
201 void StJetSkimTrig::addTriggerPatchAboveThreshold(
int detector,
int aID,
int aADC) {
202 pair<int,int> p1(aID+1,aADC);
203 if(detector == 1) p1.first = (-1)*aID;
204 pair<map<int,int>::iterator,
bool> p2 = mTriggerPatches.insert(p1);
206 cerr <<
"Error! triggerPatchesAboveThreshold map already contains key == " << p1.first << endl;
210 void StJetSkimTrig::addJetPatchAboveThreshold(
int detector,
int aID,
int aADC) {
211 pair<int,int> p1(aID+1,aADC);
212 if(detector == 1) p1.first = (-1)*aID;
213 pair<map<int,int>::iterator,
bool> p2 = mJetPatches.insert(p1);
215 cerr <<
"Error! jetPatchesAboveThreshold map already contains key == " << p1.first << endl;
219 void StJetSkimTrig::setL2ResultEmulated(
const int* rhs) {
220 memcpy(mL2ResultEmulated,rhs,
sizeof(mL2ResultEmulated));
223 StJetSkimVert::StJetSkimVert()
225 for (
int i=0; i<3; ++i) {
229 mVertexFinderId = mNTracksUsed = mNBTOFMatch = mNCTBMatch = mNBEMCMatch = mNEEMCMatch = mNCrossCentralMembrane = mRefMultNeg = mRefMultPos = mRefMultFtpcWest = mRefMultFtpcEast = 0;
230 mRanking = mSumTrackPt = mMeanDip = mChiSquared = 0.;
233 void StJetSkimVert::setPosition(
float* x)
239 void StJetSkimVert::setError(
float* x)
248 void StJetSkimVert::clear()
250 for (
int i=0; i<3; ++i) {
254 mVertexFinderId = mNTracksUsed = mNBTOFMatch = mNCTBMatch = mNBEMCMatch = mNEEMCMatch = mNCrossCentralMembrane = mRefMultNeg = mRefMultPos = mRefMultFtpcWest = mRefMultFtpcEast = 0;
255 mRanking = mSumTrackPt = mMeanDip = mChiSquared = 0.;
258 void StJetSkimVert::Clear(
const char *option) {
260 TObject::Clear(option);
263 bool StJetSkimVert::operator==(
const StJetSkimVert &rhs)
const {
264 if (
this == &rhs)
return true;
266 for(
int i=0; i<3; i++) {
267 if(mPosition[i] != rhs.position()[i])
return false;
268 if(mPosError[i] != rhs.posError()[i])
return false;
271 if(mRanking != rhs.ranking())
return false;
272 if(mNTracksUsed != rhs.nTracksUsed())
return false;
273 if(mNBTOFMatch != rhs.nBTOFMatch())
return false;
274 if(mNCTBMatch != rhs.nCTBMatch())
return false;
275 if(mNBEMCMatch != rhs.nBEMCMatch())
return false;
276 if(mNEEMCMatch != rhs.nEEMCMatch())
return false;
277 if(mNCrossCentralMembrane != rhs.nCrossCentralMembrane())
return false;
278 if(mSumTrackPt != rhs.sumTrackPt())
return false;
279 if(mMeanDip != rhs.meanDip())
return false;
280 if(mChiSquared != rhs.chiSquared())
return false;
281 if(mRefMultNeg != rhs.refMultNeg())
return false;
282 if(mRefMultPos != rhs.refMultPos())
return false;
283 if(mRefMultFtpcWest != rhs.refMultFtpcWest())
return false;
284 if(mRefMultFtpcEast != rhs.refMultFtpcEast())
return false;
289 StJetSkimEvent::StJetSkimEvent() : TObject(), mTriggers(new TClonesArray(
"StJetSkimTrig",100)), mVertices(new TClonesArray(
"StJetSkimVert",100)), mBestVert(NULL), mMcEvent(NULL)
291 mMudstFileName =
"Undefined";
293 mFill = mRunId = mEventId = mbx7 = mbx48 = mSpinBits = 0;
294 mEbbc = mWbbc = mBbcTimeBin = 0;
295 mVpdTdiff = mVpdZvertex = -999.;
296 mVpdEastHits = mVpdWestHits = -1;
299 mZdcCoincidenceRate = 0;
302 mBbcCoincidenceRate = 0;
303 mIsValid = mIsPolLong = mIsPolTrans = mIsMaskedUsingBx48 = mOffsetBx48minusBX7 = mSpin4usingBx48 = 0;
305 memset(mBarrelJetPatchTh,0,
sizeof(mBarrelJetPatchTh));
306 memset(mEndcapJetPatchTh,0,
sizeof(mEndcapJetPatchTh));
307 memset(mOverlapJetPatchTh,0,
sizeof(mOverlapJetPatchTh));
309 memset(mBarrelHighTowerTh,0,
sizeof(mBarrelHighTowerTh));
310 memset(mEndcapHighTowerTh,0,
sizeof(mEndcapHighTowerTh));
312 memset(mBarrelJetPatchAdc,0,
sizeof(mBarrelJetPatchAdc));
313 memset(mEndcapJetPatchAdc,0,
sizeof(mEndcapJetPatchAdc));
314 memset(mOverlapJetPatchAdc,0,
sizeof(mOverlapJetPatchAdc));
320 mEarliestVpdEHit = 99999.;
321 mEarliestVpdWHit = 99999.;
322 mClosestVpdEHit = 99999.;
323 mClosestVpdWHit = 99999.;
324 mLatestVpdEHit = -99999.;
325 mLatestVpdWHit = -99999.;
334 StJetSkimEvent::StJetSkimEvent(
const StJetSkimEvent &other) : TObject()
336 this->mFill = other.fill();
337 this->mRunId = other.runId();
338 this->mEventId = other.eventId();
339 this->mMudstFileName= other.mudstFileName();
341 mTriggers =
new TClonesArray(
"StJetSkimTrig",100);
342 for(
int i=0; i<other.triggers()->GetEntries(); i++) {
346 mVertices =
new TClonesArray(
"StJetSkimTrig",100);
347 for(
int i=0; i<other.vertices()->GetEntries(); i++) {
351 mBestVert = other.bestVert();
352 if(mBestVert) this->setBestVert(*mBestVert);
355 this->mbx7 = other.bx7();
356 this->mbx48 = other.bx48();
357 this->mSpinBits = other.spinBits();
358 this->mEbbc = other.eBbc();
359 this->mWbbc = other.wBbc();
360 this->mBbcTimeBin = other.bbcTimeBin();
362 this->mVpdTdiff = other.vpdTdiff();
363 this->mVpdZvertex = other.vpdZvertex();
364 this->mVpdEastHits = other.vpdEastHits();
365 this->mVpdWestHits = other.vpdWestHits();
367 this->mNVpdEGoodHits = other.vpdEGoodHits();
368 this->mNVpdWGoodHits = other.vpdWGoodHits();
369 this->mEarliestVpdEHit = other.earliestVpdEHit();
370 this->mEarliestVpdWHit = other.earliestVpdWHit();
371 this->mClosestVpdEHit = other.closestVpdEHit();
372 this->mClosestVpdWHit = other.closestVpdWHit();
373 this->mLatestVpdEHit = other.latestVpdEHit();
374 this->mLatestVpdWHit = other.latestVpdWHit();
376 this->mTstart = other.tStart();
377 this->mNTzero = other.nTzero();
378 this->mNTzeroCan = other.nTzeroCan();
379 this->mTCanFirst = other.tCanFirst();
380 this->mTCanLast = other.tCanLast();
382 mZdcWestRate = other.mZdcWestRate;
383 mZdcEastRate = other.mZdcEastRate;
384 mZdcCoincidenceRate = other.mZdcCoincidenceRate;
385 mBbcWestRate = other.mBbcWestRate;
386 mBbcEastRate = other.mBbcEastRate;
387 mBbcCoincidenceRate = other.mBbcCoincidenceRate;
389 this->mIsValid = other.isValid();
390 this->mIsPolLong = other.isPolLong();
391 this->mIsPolTrans = other.isPolTrans();
392 this->mIsMaskedUsingBx48 = other.isMaskedUsingBx48();
393 this->mOffsetBx48minusBX7 = other.offsetBx48minusBX7();
394 this->mSpin4usingBx48 = other.spin4usingBx48();
396 memcpy(mL2Result,other.mL2Result,
sizeof(mL2Result));
398 memcpy(mBarrelJetPatchTh,other.mBarrelJetPatchTh,
sizeof(mBarrelJetPatchTh));
399 memcpy(mEndcapJetPatchTh,other.mEndcapJetPatchTh,
sizeof(mEndcapJetPatchTh));
400 memcpy(mOverlapJetPatchTh,other.mOverlapJetPatchTh,
sizeof(mOverlapJetPatchTh));
402 memcpy(mBarrelHighTowerTh,other.mBarrelHighTowerTh,
sizeof(mBarrelHighTowerTh));
403 memcpy(mEndcapHighTowerTh,other.mEndcapHighTowerTh,
sizeof(mEndcapHighTowerTh));
405 memcpy(mBarrelJetPatchAdc,other.mBarrelJetPatchAdc,
sizeof(mBarrelJetPatchAdc));
406 memcpy(mEndcapJetPatchAdc,other.mEndcapJetPatchAdc,
sizeof(mEndcapJetPatchAdc));
407 memcpy(mOverlapJetPatchAdc,other.mOverlapJetPatchAdc,
sizeof(mOverlapJetPatchAdc));
409 mEmcLayer2 = other.mEmcLayer2;
412 StJetSkimEvent::~StJetSkimEvent()
414 if(mTriggers) mTriggers->Delete();
415 if(mVertices) mVertices->Delete();
421 TObject::operator=(rhs);
423 this->mFill = rhs.fill();
424 this->mRunId = rhs.runId();
425 this->mEventId = rhs.eventId();
426 this->mMudstFileName= rhs.mudstFileName();
429 for(
int i=0; i<rhs.triggers()->GetEntries(); i++) {
434 for(
int i=0; i<rhs.vertices()->GetEntries(); i++) {
438 mBestVert = rhs.bestVert();
439 if(mBestVert) this->setBestVert(*mBestVert);
442 this->mbx7 = rhs.bx7();
443 this->mbx48 = rhs.bx48();
444 this->mSpinBits = rhs.spinBits();
445 this->mEbbc = rhs.eBbc();
446 this->mWbbc = rhs.wBbc();
447 this->mBbcTimeBin = rhs.bbcTimeBin();
449 this->mVpdTdiff = rhs.vpdTdiff();
450 this->mVpdZvertex = rhs.vpdZvertex();
451 this->mVpdEastHits = rhs.vpdEastHits();
452 this->mVpdWestHits = rhs.vpdWestHits();
454 this->mNVpdEGoodHits = rhs.vpdEGoodHits();
455 this->mNVpdWGoodHits = rhs.vpdWGoodHits();
456 this->mEarliestVpdEHit = rhs.earliestVpdEHit();
457 this->mEarliestVpdWHit = rhs.earliestVpdWHit();
458 this->mClosestVpdEHit = rhs.closestVpdEHit();
459 this->mClosestVpdWHit = rhs.closestVpdWHit();
460 this->mLatestVpdEHit = rhs.latestVpdEHit();
461 this->mLatestVpdWHit = rhs.latestVpdWHit();
463 this->mTstart = rhs.tStart();
464 this->mNTzero = rhs.nTzero();
465 this->mNTzeroCan = rhs.nTzeroCan();
466 this->mTCanFirst = rhs.tCanFirst();
467 this->mTCanLast = rhs.tCanLast();
469 mZdcWestRate = rhs.mZdcWestRate;
470 mZdcEastRate = rhs.mZdcEastRate;
471 mZdcCoincidenceRate = rhs.mZdcCoincidenceRate;
472 mBbcWestRate = rhs.mBbcWestRate;
473 mBbcEastRate = rhs.mBbcEastRate;
474 mBbcCoincidenceRate = rhs.mBbcCoincidenceRate;
476 this->mIsValid = rhs.isValid();
477 this->mIsPolLong = rhs.isPolLong();
478 this->mIsPolTrans = rhs.isPolTrans();
479 this->mIsMaskedUsingBx48 = rhs.isMaskedUsingBx48();
480 this->mOffsetBx48minusBX7 = rhs.offsetBx48minusBX7();
481 this->mSpin4usingBx48 = rhs.spin4usingBx48();
483 memcpy(mL2Result,rhs.mL2Result,
sizeof(mL2Result));
485 memcpy(mBarrelJetPatchTh,rhs.mBarrelJetPatchTh,
sizeof(mBarrelJetPatchTh));
486 memcpy(mEndcapJetPatchTh,rhs.mEndcapJetPatchTh,
sizeof(mEndcapJetPatchTh));
487 memcpy(mOverlapJetPatchTh,rhs.mOverlapJetPatchTh,
sizeof(mOverlapJetPatchTh));
489 memcpy(mBarrelHighTowerTh,rhs.mBarrelHighTowerTh,
sizeof(mBarrelHighTowerTh));
490 memcpy(mEndcapHighTowerTh,rhs.mEndcapHighTowerTh,
sizeof(mEndcapHighTowerTh));
492 memcpy(mBarrelJetPatchAdc,rhs.mBarrelJetPatchAdc,
sizeof(mBarrelJetPatchAdc));
493 memcpy(mEndcapJetPatchAdc,rhs.mEndcapJetPatchAdc,
sizeof(mEndcapJetPatchAdc));
494 memcpy(mOverlapJetPatchAdc,rhs.mOverlapJetPatchAdc,
sizeof(mOverlapJetPatchAdc));
496 mEmcLayer2 = rhs.mEmcLayer2;
502 void StJetSkimEvent::clear()
504 mMudstFileName =
"Undefined";
505 mFill = mRunId = mEventId = mbx7 = mbx48 = mSpinBits = 0;
506 mEbbc = mWbbc = mBbcTimeBin = 0;
507 mVpdTdiff = mVpdZvertex = -999.;
508 mVpdEastHits = mVpdWestHits = -1;
511 mZdcCoincidenceRate = 0;
514 mBbcCoincidenceRate = 0;
515 mIsValid = mIsPolLong = mIsPolTrans = mIsMaskedUsingBx48 = mOffsetBx48minusBX7 = mSpin4usingBx48 = 0;
516 mTriggers->Clear(
"c");
517 mVertices->Clear(
"c");
519 mBestVertRef.Clear();
520 mTrigHeaderArrayRef.Clear();
522 memset(mBarrelJetPatchTh,0,
sizeof(mBarrelJetPatchTh));
523 memset(mEndcapJetPatchTh,0,
sizeof(mEndcapJetPatchTh));
524 memset(mOverlapJetPatchTh,0,
sizeof(mOverlapJetPatchTh));
526 memset(mBarrelHighTowerTh,0,
sizeof(mBarrelHighTowerTh));
527 memset(mEndcapHighTowerTh,0,
sizeof(mEndcapHighTowerTh));
529 memset(mBarrelJetPatchAdc,0,
sizeof(mBarrelJetPatchAdc));
530 memset(mEndcapJetPatchAdc,0,
sizeof(mEndcapJetPatchAdc));
531 memset(mOverlapJetPatchAdc,0,
sizeof(mOverlapJetPatchAdc));
537 mEarliestVpdEHit = 99999.;
538 mEarliestVpdWHit = 99999.;
539 mClosestVpdEHit = 99999.;
540 mClosestVpdWHit = 99999.;
541 mLatestVpdEHit = -99999.;
542 mLatestVpdWHit = -99999.;
551 void StJetSkimEvent::Clear(
const char *option) {
553 TObject::Clear(option);
557 return (mBestVertRef.GetObject() ? (
StJetSkimVert*)mBestVertRef.GetObject() : mBestVert);
561 for(
int i=0; i<mVertices->GetEntries(); i++) {
563 this->setBestVert(i);
568 if(this->bestVert() == NULL) {
569 cerr <<
"StJetSkimEvent::setBestVert -- Error! Couldn't set best vertex" << endl;
570 cerr <<
"StJetSkimEvent::setBestVert -- Make sure the vertex is already in the new clones array" << endl;
574 void StJetSkimEvent::setBestVert(
int clonesArrayIndex) {
575 mBestVertRef = (
StJetSkimVert*)mVertices->At(clonesArrayIndex);
578 void StJetSkimEvent::setL2Result(
const int* rhs) {
579 memcpy(mL2Result,rhs,
sizeof(mL2Result));
584 int addAt = mTriggers->GetLast()+1;
587 TClonesArray& arrayRef = *(mTriggers);
593 int addAt = mVertices->GetLast()+1;
596 TClonesArray& arrayRef = *(mVertices);
601 TClonesArray *tmp = this->trigHeaders();
603 cout <<
"ERROR LOADING TRIGGER HEADERS!" << endl;
606 for(
int i=0; i<tmp->GetEntries(); i++) {
608 if(header->trigId == trigId)
return header;
614 TClonesArray *tmp = this->triggers();
615 for(
int i=0; i<tmp->GetEntries(); i++) {
617 if(trigger->trigId() == trigId)
return trigger;
622 map<int,int> StJetSkimEvent::barrelJetPatchesAboveTh(
int i)
const
625 for (
int jp = 0; jp < 18; ++jp) {
626 int adc = barrelJetPatchAdc(jp);
627 if (adc > barrelJetPatchTh(i)) m.insert(make_pair(jp,adc));
632 map<int,int> StJetSkimEvent::endcapJetPatchesAboveTh(
int i)
const
635 for (
int jp = 0; jp < 6; ++jp) {
636 int adc = endcapJetPatchAdc(jp);
637 if (adc > endcapJetPatchTh(i)) m.insert(make_pair(jp,adc));
642 map<int,int> StJetSkimEvent::overlapJetPatchesAboveTh(
int i)
const
645 for (
int jp = 0; jp < 6; ++jp) {
646 int adc = overlapJetPatchAdc(jp);
647 if (adc > overlapJetPatchTh(i)) m.insert(make_pair(jp,adc));