--- PamCut/CaloCuts/CaloNotIntCut/CaloNotIntCut.cpp 2009/11/24 14:42:31 1.4 +++ PamCut/CaloCuts/CaloNotIntCut/CaloNotIntCut.cpp 2010/07/08 10:43:13 1.4.2.1 @@ -10,10 +10,17 @@ int CaloNotIntCut::Check(PamLevel2 *event) { +#ifndef NO_CALOAXIS if ( (!(_xCaloAxis) || !(_yCaloAxis)) && !(_pamTrack) ) { // check that one of the two possible initializations has been correctly done return 0; } - +#else + if ( !(_pamTrack) ) { // check that the initialization has been correctly done + return 0; + } +#endif /* NO_CALOAXIS */ + +#ifndef NO_CALOAXIS if (!(_pamTrack)) { // CALOAXIS track // energy released along the event axis in the calo / total energy release in the calo @@ -29,6 +36,7 @@ } } +#endif /* NO_CALOAXIS */ if (_pamTrack) { // PAMELA track