55 |
|
double ptref = simu->pt(); |
56 |
|
int chargeref = simu->charge(); |
57 |
|
unsigned int detref = hitSpec->rawId(); |
58 |
+ |
/* |
59 |
|
if (detref != 637602109 && detref != 637634877 && |
60 |
|
detref != 637599914 && detref != 637632682 ) return; |
61 |
|
|
62 |
|
bool precisePos = ( fabs(hitSpec->position().phi()-1.025) < 0.001); |
63 |
|
if (!precisePos) return; |
64 |
|
if ( simu->pt() < 16.) return; |
65 |
+ |
*/ |
66 |
|
|
67 |
|
|
68 |
|
GoldenPattern::Key key( detref, ptref, chargeref, phiref); |
85 |
|
{ |
86 |
|
L1Obj candidate; |
87 |
|
if (!hitSpec) return candidate; |
88 |
+ |
/* |
89 |
|
if (hitSpec->rawId() == 0 ) return candidate; |
90 |
|
double phiref = hitSpec->position().phi(); |
91 |
|
double ptref = simu->pt(); |
99 |
|
if ( simu->pt() < 26. || simu->pt() > 27. ) return candidate; |
100 |
|
|
101 |
|
std::cout <<" ------------------ EVENT: " << std::endl; |
102 |
+ |
*/ |
103 |
|
Pattern pattern; |
104 |
|
theEvForPatCounter++; |
105 |
|
for (VDigiSpec::const_iterator is= vDigi.begin(); is!=vDigi.end(); is++) { |
107 |
|
if (!isOK) { return candidate; } |
108 |
|
} |
109 |
|
if (pattern.size() == 0) return candidate; |
110 |
< |
std::cout <<" ------------------ END EVENT, COMPARE" << std::endl; |
110 |
> |
// std::cout <<" ------------------ END EVENT, COMPARE" << std::endl; |
111 |
|
|
112 |
|
// GoldenPattern::Key thisKey(detref, ptref, chargeref, phiref ); |
113 |
|
// std::cout << thisKey << std::endl; |
125 |
|
} |
126 |
|
// std::cout <<result << std::endl; |
127 |
|
} |
128 |
< |
std::cout <<" ------------------ END COMPARE: " << std::endl; |
129 |
< |
std::cout <<"BEST: "<< bestMatching<<" pt: "<<bestKey.ptValue()<<std::endl; |
128 |
> |
// std::cout <<" ------------------ END COMPARE: " << std::endl; |
129 |
> |
// std::cout <<"BEST: "<< bestMatching<<" pt: "<<bestKey.ptValue()<<std::endl; |
130 |
|
if (bestMatching) { |
131 |
|
candidate.pt = bestKey.ptValue(); |
132 |
|
candidate.eta = 1.; |