--- PamCut/TrkCuts/TrkYSensCut/TrkYSensCut.cpp 2010/05/06 17:08:00 1.1 +++ PamCut/TrkCuts/TrkYSensCut/TrkYSensCut.cpp 2010/05/06 17:08:00 1.1.2.1 @@ -0,0 +1,30 @@ +/* + * TrkYSensCut.cpp + * + * Created on: 09-apr-2010 + * Author: S. Ricciarini + */ + +/*! @file TrkYSensCut.cpp The TrkYSensCut class implementation file */ + +#include "TrkYSensCut.h" + +int TrkYSensCut::Check(PamLevel2 *event) { + + TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack(); + + for (Int_t ip=0; ip<6; ip++) { + +// cout << "iplane " << ip << " sensorId " << trkTrack->GetSensor(ip) << endl; + + if ( ! (trkTrack->GetSensor(ip)==_sensorId) ) { +// cout << "KO!!" << endl; + return 0; + } + +// cout << "OK" << endl; + + } + + return CUTOK; +}