--- PamCut/CaloCuts/CaloNotIntCut/CaloNotIntCut.cpp 2009/05/27 13:30:09 1.1 +++ PamCut/CaloCuts/CaloNotIntCut/CaloNotIntCut.cpp 2009/10/27 18:20:18 1.2 @@ -10,11 +10,11 @@ int CaloNotIntCut::Check(PamLevel2 *event) { - 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 return 0; } - if (!(_trkTrack)) { // CALO track + if (!(_pamTrack)) { // CALOAXIS track // energy released along the event axis in the calo / total energy release in the calo @@ -26,10 +26,13 @@ } - if (_trkTrack) { // TRK track - - return 2; // temporary - // Implement here the check using the tracker track. + if (_pamTrack) { // PAMELA track + + float qratio = ( _pamTrack->GetCaloTrack()->qtrack ) / event->GetCaloLevel2()->qtot; + + if (! (qratio > _qRatioMin) ) { + return 2; + } }