PadNumber=CentralPad;
}
else if (absy < range){
- PadNumber=(Int_t) ((absy-0.5*fTPCParam->GetPadPitchWidth())/fTPCParam->GetPadPitchWidth());
+ PadNumber=(Int_t) ((absy-0.5*fTPCParam->GetPadPitchWidth())/fTPCParam->GetPadPitchWidth()+1.);
PadNumber=(Int_t) (TMath::Sign((Float_t)PadNumber, y)+CentralPad);
}
else continue; // electron out of pad-range , lost at the sector edge
PadNumber=CentralPad;
}
else if (absy < range){
- PadNumber=(Int_t) ((absy-0.5*fTPCParam->GetPadPitchWidth())/fTPCParam->GetPadPitchWidth());
+ PadNumber=(Int_t) ((absy-0.5*fTPCParam->GetPadPitchWidth())/fTPCParam->GetPadPitchWidth() +1.);
PadNumber=(Int_t) (TMath::Sign((Float_t)PadNumber, y)+CentralPad);
}
else continue; // electron out of sense wire range, lost at the sector edge
}
- gMC->Gsord("TLGA", 2);
+ gMC->Gsord("TLGA", 4);
} // if strips selected
//
// parameters used for the energy loss calculations
//
- const Float_t prim = 14.35; // number of primary collisions per 1 cm
- const Float_t poti = 20.77e-9; // first ionization potential for Ne/CO2
- const Float_t w_ion = 35.97e-9; // energy for the ion-electron pair creation
+ const Float_t prim = 14.35; // number of primary collisions per 1 cm
+ const Float_t poti = 20.77e-9; // first ionization potential for Ne/CO2
+ const Float_t w_ion = 35.97e-9; // energy for the ion-electron pair creation
+
+ // const Float_t prim = 17.65;
+ // const Float_t poti = 19.02e-9;
+ // const Float_t w_ion = 33.06e-9;
const Float_t big = 1.e10;
Float_t ptot=mom.Rho();
Float_t beta_gamma = ptot/gMC->TrackMass();
- if(gMC->TrackPid() <= 3 && ptot > 0.002)
+ if(gMC->IdFromPDG(gMC->TrackPid()) <= 3 && ptot > 0.002)
{
pp = prim*1.58; // electrons above 20 MeV/c are on the plateau!
}
Float_t ptot=mom.Rho();
Float_t beta_gamma = ptot/gMC->TrackMass();
- if(gMC->TrackPid() <= 3 && ptot > 0.002)
+ if(gMC->IdFromPDG(gMC->TrackPid()) <= 3 && ptot > 0.002)
{
pp = prim*1.58; // electrons above 20 MeV/c are on the plateau!
}