X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=HMPID%2FAliHMPIDv2.cxx;h=fea5c6b4c8d17c841d462da7f6c288c12b3816ed;hp=bea66d628c1f1417ec9aa0aa031ca4328229493a;hb=7f5a307a3d58469317148d730d5482cff088626b;hpb=60e55aee9905a1a5e66dce1cd084737911e78b04 diff --git a/HMPID/AliHMPIDv2.cxx b/HMPID/AliHMPIDv2.cxx index bea66d628c1..fea5c6b4c8d 100644 --- a/HMPID/AliHMPIDv2.cxx +++ b/HMPID/AliHMPIDv2.cxx @@ -37,6 +37,7 @@ #include #include //AddAlignableVolumes() #include //IsLostByFresnel() +#include ClassImp(AliHMPIDv2) //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @@ -129,12 +130,12 @@ void AliHMPIDv2::CreateMaterials() AliMaterial(++matId,"Al" ,aAl ,zAl ,dAl ,radAl ,absAl ); AliMedium(kAl ,"Al" , matId, unsens, itgfld, maxfld, tmaxfd, stemax, deemax, epsil, stmin); AliMaterial(++matId,"Ar" ,aAr ,zAr ,dAr ,radAr ,absAr ); AliMedium(kAr ,"Ar" , matId, unsens, itgfld, maxfld, tmaxfd, stemax, deemax, epsil, stmin); - InitProperties(); + //InitProperties(); }//void AliHMPID::CreateMaterials() //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -void AliHMPIDv2::InitProperties() -{ +//void AliHMPIDv2::InitProperties() +//{ /* * HMPID * ==== @@ -152,7 +153,7 @@ HMPID 9 1.e-5 1.e-5 1.e-4 -1. 1.e-4 -1. -1. 5.e-5 5.e-5 -1. -1 -1 HMPID 6 1.e-5 1.e-5 1.e-4 -1. 1.e-4 -1. -1. 5.e-5 5.e-5 -1. -1 -1 -1 -1 1 -1 1 -1 -1 -1 -1 * PCB backplane (> 50 keV delta-electrons) HMPID 12 1.e-5 1.e-5 1.e-4 -1. 1.e-4 -1. -1. 5.e-5 5.e-5 -1. -1 -1 -1 -1 1 -1 1 -1 -1 -1 -1 -*/ + Int_t *idtmed = fIdtmed->GetArray(); Int_t imed; @@ -233,7 +234,7 @@ HMPID 12 1.e-5 1.e-5 1.e-4 -1. 1.e-4 -1. -1. 5.e-5 5.e-5 -1. -1 -1 gMC->Gstpar(idtmed[imed], "DRAY",1); gMC->Gstpar(idtmed[imed], "LOSS",1); -} +}*/ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ void AliHMPIDv2::CreateGeometry() { @@ -820,8 +821,9 @@ void AliHMPIDv2::StepManager() Int_t pid= gMC->TrackPid(); //take PID Float_t etot= gMC->Etot(); //total hpoton energy, [GeV] Double_t x[3]; gMC->TrackPosition(x[0],x[1],x[2]); //take MARS position at entrance to PC + Float_t hitTime= (Float_t)gMC->TrackTime(); //hit formation time Float_t xl,yl; AliHMPIDParam::Instance()->Mars2Lors(copy,x,xl,yl); //take LORS position - new((*fHits)[fNhits++])AliHMPIDHit(copy,etot,pid,tid,xl,yl,x); //HIT for photon, position at P, etot will be set to Q + new((*fHits)[fNhits++])AliHMPIDHit(copy,etot,pid,tid,xl,yl,hitTime,x); //HIT for photon, position at P, etot will be set to Q if(fDoFeed) GenFee(etot); //generate feedback photons etot is modified in hit ctor to Q of hit }//photon hit PC and DE >0 }//photon hit PC @@ -841,11 +843,12 @@ void AliHMPIDv2::StepManager() Int_t tid= gMC->GetStack()->GetCurrentTrackNumber(); //take TID Int_t pid= gMC->TrackPid(); //take PID Double_t out[3]; gMC->TrackPosition(out[0],out[1],out[2]); //take MARS position at exit + Float_t hitTime= (Float_t)gMC->TrackTime(); //hit formation time out[0]=0.5*(out[0]+in[0]); //> out[1]=0.5*(out[1]+in[1]); //take hit position at the anod plane out[2]=0.5*(out[2]+in[2]); //> Float_t xl,yl;AliHMPIDParam::Instance()->Mars2Lors(copy,out,xl,yl); //take LORS position - new((*fHits)[fNhits++])AliHMPIDHit(copy,eloss,pid,tid,xl,yl,out); //HIT for MIP, position near anod plane, eloss will be set to Q + new((*fHits)[fNhits++])AliHMPIDHit(copy,eloss,pid,tid,xl,yl,hitTime,out); //HIT for MIP, position near anod plane, eloss will be set to Q if(fDoFeed) GenFee(eloss); //generate feedback photons }else //just going inside eloss += gMC->Edep(); //collect this step eloss