/[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.2 - (show annotations) (download)
Thu Jul 8 14:00:12 2010 UTC (14 years, 5 months ago) by pam-fi
Branch: MAIN
CVS Tags: MergedFromV8_1, V9, HEAD
Changes since 1.1: +30 -0 lines
Error occurred while calculating annotation data.
Merged from branch V8 (tag MergedToHEAD_1). Tag before the merge: BeforeMergingFromV8_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 }

  ViewVC Help
Powered by ViewVC 1.1.23