PamCut: ACCuts/CATCut/CATCut.cpp Source File

- Main Page
- Classes
- Files

- File List
- File Members

# ACCuts/CATCut/CATCut.cpp

Go to the documentation of this file.

    00001 /*
    00002  * CATCut.cpp
    00003  *
    00004  *  Created on: 13-mar-2009
    00005  *      Author: Sergio Ricciarini, Nicola Mori
    00006  */
    00007
    00010 #include "CATCut.h"
    00011
    00012 int CATCut::Check(PamLevel2 *event) {
    00013
    00014   if (event->GetAcLevel2()->IsHit("CAT1-M") || event->GetAcLevel2()->IsHit("CAT1-E"))
    00015     return 0;
    00016   if (event->GetAcLevel2()->IsHit("CAT2-M") || event->GetAcLevel2()->IsHit("CAT2-E"))
    00017     return 0;
    00018   if (event->GetAcLevel2()->IsHit("CAT3-M") || event->GetAcLevel2()->IsHit("CAT3-E"))
    00019     return 0;
    00020   if (event->GetAcLevel2()->IsHit("CAT4-M") || event->GetAcLevel2()->IsHit("CAT4-E"))
    00021     return 0;
    00022
    00023   return CUTOK;
    00024
    00025 }