/[PAMELA software]/PamCut/ACCuts/CASCut/CASCut.cpp
ViewVC logotype

Contents of /PamCut/ACCuts/CASCut/CASCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri May 27 14:05:31 2011 UTC (13 years, 6 months ago) by pam-fi
Branch: MAIN
CVS Tags: V9, HEAD
Error occurred while calculating annotation data.
Added to repository.

1 /*
2 * CASCut.cpp
3 *
4 * Created on: 13-may-2011
5 * Author: Sergio Ricciarini
6 */
7
8 /*! @file CASCut.cpp The CASCut class implementation file */
9
10 #include "CASCut.h"
11
12 int CASCut::Check(PamLevel2 *event) {
13
14 if (event->GetAcLevel2()->IsHit("CAS1-M") || event->GetAcLevel2()->IsHit("CAS1-E"))
15 return 0;
16 if (event->GetAcLevel2()->IsHit("CAS2-M") || event->GetAcLevel2()->IsHit("CAS2-E"))
17 return 0;
18 if (event->GetAcLevel2()->IsHit("CAS3-M") || event->GetAcLevel2()->IsHit("CAS3-E"))
19 return 0;
20 if (event->GetAcLevel2()->IsHit("CAS4-M") || event->GetAcLevel2()->IsHit("CAS4-E"))
21 return 0;
22
23 return CUTOK;
24
25 }

  ViewVC Help
Powered by ViewVC 1.1.23