00001 /* 00002 * CaloNotIntCut.cpp 00003 * Created on: 17-mar-2009 00004 * Author: Sergio Ricciarini, Nicola Mori 00005 */ 00006 00009 #include "CaloNotIntCut.h" 00010 00011 int CaloNotIntCut::Check(PamLevel2 *event) { 00012 00013 if ( (!(_xCaloAxis) || !(_yCaloAxis)) && !(_trkTrack) ) { // check that one of the two possible initializations has been correctly done 00014 return 0; 00015 } 00016 00017 if (!(_trkTrack)) { // CALO track 00018 00019 // energy released along the event axis in the calo / total energy release in the calo 00020 00021 float qratio = ( _xCaloAxis->GetQaxis() + _yCaloAxis->GetQaxis() ) / event->GetCaloLevel2()->qtot; 00022 00023 if (! (qratio > _qRatioMin) ) { 00024 return 1; 00025 } 00026 00027 } 00028 00029 if (_trkTrack) { // TRK track 00030 00031 return 2; // temporary 00032 // Implement here the check using the tracker track. 00033 00034 } 00035 00036 return CUTOK; 00037 00038 }