Fixed bug
This commit is contained in:
@ -45,7 +45,7 @@ void beamSpotWithCut(char* fname, Double_t cut)
|
||||
for (j = k; j<nEventsTD; j++){
|
||||
// cout << i << ", " << j << ", " << k << ", " << EventIDSample[i] << ", " << EventIDTD[j] << ", " << Samplex[i] << ", " << sqrt(TDx[j]*TDx[j]+TDy[j]*TDy[j]) << endl;
|
||||
if (EventIDSample[i] == EventIDTD[j]){
|
||||
if (sqrt(TDx[j]*TDx[j]+TDy[j]*TDy[j])<=cut) hBeamSpot->Fill(Samplex[j], Sampley[j]);
|
||||
if (sqrt(TDx[j]*TDx[j]+TDy[j]*TDy[j])<=cut) hBeamSpot->Fill(Samplex[i], Sampley[i]);
|
||||
k = j + 1;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user