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

Contents of /PamCut/TrkCuts/TrkYSensCut/TrkYSensCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.2.1 - (show annotations) (download)
Thu May 6 17:08:00 2010 UTC (14 years, 7 months ago) by pam-fi
Branch: V8
CVS Tags: MergedToHEAD_1, nuclei_reproc
Changes since 1.1: +30 -0 lines
Added to repository.

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 }

  ViewVC Help
Powered by ViewVC 1.1.23