]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HMPID/AliHMPIDHit.cxx
adding det responsible mail adresses in case of failure of automatic script failure
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDHit.cxx
index d470339be595891f30a7987dcf29c8309e2cdbb4..64f9aaff61ba3f11d6eb79798176a7f9bbf1a45f 100644 (file)
 #include <TPDGCode.h>     //Draw() Print()
 #include <TMarker.h>      //Draw()
 #include <TClonesArray.h> //Hit2Sdi()
+#include "AliHMPIDParam.h" 
 ClassImp(AliHMPIDHit)
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void AliHMPIDHit::Draw(Option_t*)
 {
+// Draw option of the hits in the display
   Int_t iMark;
   switch(Pid()){
     case 50000050:   iMark=4;  break;
@@ -29,7 +30,7 @@ void AliHMPIDHit::Draw(Option_t*)
     default:         iMark=26; break;
   }    
   TMarker *pMark=new TMarker(fLx,fLy,iMark); pMark->SetMarkerColor(kRed); pMark->Draw();
-}
+}//Draw
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void AliHMPIDHit::Hit2Sdi(TClonesArray *pSdiLst,Int_t iHow)const
 {
@@ -38,23 +39,24 @@ void AliHMPIDHit::Hit2Sdi(TClonesArray *pSdiLst,Int_t iHow)const
 //            iHow- how many pads to check 
 //   Returns: none
   Int_t pc,px,py;
-  AliHMPIDDigit::Lors2Pad(fLx,fLy,pc,px,py); if(pc<0) return; //check if the hit in dead zone. Should never happen during trasport!
+  AliHMPIDParam::Lors2Pad(fLx,fLy,pc,px,py); if(py<0) return; //check if the hit in dead zone. Should never happen during trasport!
 
   AliHMPIDDigit dig;
   Int_t iSdiCnt=pSdiLst->GetEntries();                       //list of sdigits contains sdigits from previous ivocations of Hit2Sdi, do not override them
 
   for(Int_t i=-iHow;i<=iHow;i++){                            //horizontal loop
     for(Int_t j=-iHow;j<=iHow;j++){                          //vertical loop
-      if(dig.Set(fCh,pc,px+i,py+j,fQ*dig.IntMathieson(fLx,fLy),fTrack)) continue;
+      if(dig.Set(fCh,pc,px+i,py+j,fTrack)) continue;
+      dig.SetQ(fQ*dig.IntMathieson(fLx,fLy));
       new((*pSdiLst)[iSdiCnt++]) AliHMPIDDigit(dig);
     }
   }
-}
+}//Hit2Sdi
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void AliHMPIDHit::Print(Option_t *opt)const
 {
 //Print hit
-  char *sPart=Form("pid=%i",Pid());
+  const char *sPart=Form("pid=%i",Pid());
   switch(Pid()){
     case kProton:      sPart="p+  ";break;
     case kProtonBar:   sPart="p-  ";break;
@@ -70,8 +72,8 @@ void AliHMPIDHit::Print(Option_t *opt)const
     case 50000051:     sPart="feed";break;
   }
 
-  Printf("%sHIT: ch=%i                 (%7.3f,%7.3f) Q=%8.3f TID= %5i, MARS=(%7.2f,%7.2f,%7.2f) %s  %s",
-         opt,  Ch(),                    fLx,fLy,  fQ,     fTrack,         X(),  Y(),  Z(),   sPart, 
-                        (AliHMPIDDigit::IsInDead(LorsX(),LorsY()))? "IN DEAD ZONE":"");
-}
+  Printf("%sHIT: ch=%i                 (%7.6f,%7.6f), time[nsec]=%f Q=%8.3f TID= %5i, MARS=(%7.2f,%7.2f,%7.2f) %s  %s",
+         opt,  Ch(),                    fLx,fLy, fT*TMath::Power(10,9), fQ,     fTrack,         X(),  Y(),  Z(),   sPart, 
+                        (AliHMPIDParam::IsInDead(LorsX(),LorsY()))? "IN DEAD ZONE":"");
+}//Print
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++