77 |
static float dEdxLayer; |
static float dEdxLayer; |
78 |
static unsigned int badLayers; |
static unsigned int badLayers; |
79 |
|
|
80 |
static int trkSeqNo; |
int idx = 0; |
|
static int idx; |
|
|
trkSeqNo = event->GetTrack(0)->GetTrkTrack()->GetSeqNo(); |
|
81 |
for (int i = 0; i < event->GetToFLevel2()->ntrk(); i++) { |
for (int i = 0; i < event->GetToFLevel2()->ntrk(); i++) { |
82 |
if (event->GetToFLevel2()->GetToFTrkVar(i)->trkseqno == trkSeqNo) |
if (event->GetToFLevel2()->GetToFTrkVar(i)->trkseqno == event->GetTrack(0)->GetTrkTrack()->GetSeqNo()) |
83 |
idx = i; |
idx = i; |
84 |
} |
} |
85 |
|
|
127 |
else |
else |
128 |
badLayers++; |
badLayers++; |
129 |
} |
} |
130 |
if (badLayers == 0) { |
if (badLayers != _nLayers) { |
131 |
dEdx /= _nLayers; |
dEdx /= _nLayers - badLayers; |
132 |
Fill(event->GetTrack(0)->GetTrkTrack()->GetRigidity(), dEdx); |
Fill(event->GetTrack(0)->GetTrkTrack()->GetRigidity(), dEdx); |
133 |
} |
} |
134 |
else |
else |