/[PAMELA software]/PamCut/TrkCuts/TrkYSensCut/TrkYSensCut.cpp
ViewVC logotype

Diff of /PamCut/TrkCuts/TrkYSensCut/TrkYSensCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-fi, Thu May 6 17:08:00 2010 UTC revision 1.2 by pam-fi, Thu Jul 8 14:00:12 2010 UTC
# Line 0  Line 1 
1    /*
2     * TrkYSensCut.cpp
3     *
4     *  Created on: 09-apr-2010
5     *      Author: S. Ricciarini
6     */
7    
8    /*! @file TrkYSensCut.cpp The TrkYSensCut class implementation file */
9    
10    #include "TrkYSensCut.h"
11    
12    int TrkYSensCut::Check(PamLevel2 *event) {
13    
14      TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack();
15    
16      for (Int_t ip=0; ip<6; ip++) {
17    
18    //  cout << "iplane " << ip << " sensorId " << trkTrack->GetSensor(ip) << endl;
19    
20        if ( ! (trkTrack->GetSensor(ip)==_sensorId) ) {
21    //      cout << "KO!!" << endl;
22          return 0;
23        }
24    
25    //  cout << "OK" << endl;
26      
27      }
28    
29      return CUTOK;
30    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23