--- DarthVader/TrackerLevel2/src/ExtTrack.cpp 2014/10/15 08:45:51 1.7
+++ DarthVader/TrackerLevel2/src/ExtTrack.cpp 2016/02/26 12:03:36 1.9
@@ -497,22 +497,17 @@
//
//--------------------------------------
/**
- * Clear the track. If option C is specied, deallocate the hit vectors.
+ * Clear the track. If option C is specified, deallocates the hit vectors.
*/
void ExtTrack::Clear(Option_t* option){
-
- Reset();
-
-
- // cout << " ExtTrack::Clear("<0){
+
+// cout << " ExtTrack::Clear( "< >>> fit failed "<0)return dedx/np;
+ return -1;
+};
+/**
+ * Method to evaluate the dE/dx averaged over all Y views.
+ */
+Float_t ExtTrack::GetDEDXY(bool cutSat){
+ Float_t dedx=0;
+ Int_t np=0;
+ for(Int_t ip=0; ip0)return dedx/np;
+ return -1;
+};
+
+/**
+ * Returns 1 if the cluster on a tracker view includes bad strips
+ * (at least one bad strip among the four strip used by p.f.a.)
+ * @param ip plane (0-5)
+ * @param iv view (0=x 1=y)
+ */
+Bool_t ExtTrack::IsBad(int ip,int iv){
+ if(ip>=6&&ip<8)return false;
+ if(iv==0 && ip>=0 && ip<6)return (xgood[ip]<0) ;
+ else if(iv==1 && ip>=0 && ip<6)return (ygood[ip]<0) ;
+ else {
+ cout << "ExtTrack::IsBad(int ip, int iv) -- wrong input parameters "<= TrkParams::xGF_max[i] - toll ||
- yGF[i] <= TrkParams::yGF_min[i] + toll ||
- yGF[i] >= TrkParams::yGF_max[i] - toll ||
+// xGF[i] <= TrkParams::xGF_min[i] + toll ||
+// xGF[i] >= TrkParams::xGF_max[i] - toll ||
+// yGF[i] <= TrkParams::yGF_min[i] + toll ||
+// yGF[i] >= TrkParams::yGF_max[i] - toll ||
+ tj.x[i] <= TrkParams::xGF_min[i] + toll ||
+ tj.x[i] >= TrkParams::xGF_max[i] - toll ||
+ tj.y[i] <= TrkParams::yGF_min[i] + toll ||
+ tj.y[i] >= TrkParams::yGF_max[i] - toll ||
false){
return false;
@@ -1050,5 +1139,37 @@
}
+/**
+ * Returns 1 if the signal on a tracker view is saturated.
+ * @param ip plane (0-5)
+ * @param iv view (0=x 1=y)
+ */
+Bool_t ExtTrack::IsSaturated(int ip,int iv){
+ if(ip>=6 && ip<8)return false;
+ if(iv==0 && ip>=0 && ip<6)return (dedx_x[ip]<0) ;
+ else if(iv==1 && ip>=0 && ip<6)return (dedx_y[ip]<0) ;
+ else {
+ cout << "ExtTrack::IsSaturated(int ip, int iv) -- wrong input parameters "<