| 10 |
|
|
| 11 |
int CaloNotIntCut::Check(PamLevel2 *event) { |
int CaloNotIntCut::Check(PamLevel2 *event) { |
| 12 |
|
|
| 13 |
if ( (!(_xCaloAxis) || !(_yCaloAxis)) && !(_trkTrack) ) { // check that one of the two possible initializations has been correctly done |
if ( (!(_xCaloAxis) || !(_yCaloAxis)) && !(_pamTrack) ) { // check that one of the two possible initializations has been correctly done |
| 14 |
return 0; |
return 0; |
| 15 |
} |
} |
| 16 |
|
|
| 17 |
if (!(_trkTrack)) { // CALO track |
if (!(_pamTrack)) { // CALOAXIS track |
| 18 |
|
|
| 19 |
// energy released along the event axis in the calo / total energy release in the calo |
// energy released along the event axis in the calo / total energy release in the calo |
| 20 |
|
|
| 26 |
|
|
| 27 |
} |
} |
| 28 |
|
|
| 29 |
if (_trkTrack) { // TRK track |
if (_pamTrack) { // PAMELA track |
| 30 |
|
|
| 31 |
return 2; // temporary |
float qratio = ( _pamTrack->GetCaloTrack()->qtrack ) / event->GetCaloLevel2()->qtot; |
| 32 |
// Implement here the check using the tracker track. |
|
| 33 |
|
if (! (qratio > _qRatioMin) ) { |
| 34 |
|
return 2; |
| 35 |
|
} |
| 36 |
|
|
| 37 |
} |
} |
| 38 |
|
|