Update of StepManager
authormrodrigu <mrodrigu@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 29 Jun 2008 17:52:09 +0000 (17:52 +0000)
committermrodrigu <mrodrigu@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 29 Jun 2008 17:52:09 +0000 (17:52 +0000)
ACORDE/AliACORDEv1.cxx

index d6738a2..57b8cf1 100644 (file)
 //                  Send comments to:                                        //
 //                                                                          //
 //      Arturo Fernandez Tellez        <afernand@fcfm.buap.mx>              //
-//      Enrique Gamez                  <egamez@fcfm.buap.mx>                //
 //      Eleazar Cuautle Flores         <ecuautle@nucleares.unam.mx>         //
 //     Mario Rodriguez Cahuantzi       <mrodrigu@mail.cern.ch>              // 
 //                                                                          //
 //                     Puebla, Pue. Mexico December 2007                    //
+//                                                                          //
+//     Last Update: June 28th 2008                                          //
 ///////////////////////////////////////////////////////////////////////////////
 
 
@@ -1589,7 +1590,6 @@ void AliACORDEv1::StepManager()
   // only in sensitive material
   if (gMC->CurrentVolID(copy) == idScint) {
 
-    //printf("Hay particula cargada en el volumen %d \n",idScint);
     step  += gMC->TrackStep();
     eloss += gMC->Edep();
     // set all hit variables except eloss which is resetted
@@ -1609,14 +1609,14 @@ void AliACORDEv1::StepManager()
       hits[0]  = (Float_t ) gMC->TrackPid(); 
 
 
-      hits[1] = pos[0]; //printf("PosX %f \n",hits[1]);
-      hits[2] = pos[1]; //printf("PosY %f \n",hits[2]);
-      hits[3] = pos[2]; //printf("PosZ %f \n",hits[3]);
-      hits[4] = gMC->TrackTime();//printf("TimeTracking %f \n",hits[4]);
-      hits[5] = mom[0]; //printf("MomentoX %f \n",hits[5]);
-      hits[6] = mom[1]; //printf("MomentoY %f \n",hits[6]);
-      hits[7] = mom[2]; //printf("MomentoZ %f \n",hits[7]);
-      hits[8] = gMC->Etot();//printf("EnergiaTotal %f \n",hits[8]);
+      hits[1] = pos[0]; 
+      hits[2] = pos[1]; 
+      hits[3] = pos[2]; 
+      hits[4] = gMC->TrackTime();
+      hits[5] = mom[0];
+      hits[6] = mom[1];
+      hits[7] = mom[2];
+      hits[8] = gMC->Etot();
       // volume: 
       //  [0] = module number 1-60 (1==>(0-0), 60 (5-9)
       //  [1] = Plastic number: 0 (down) to 1 (up)
@@ -1635,7 +1635,7 @@ void AliACORDEv1::StepManager()
     if( gMC->IsTrackExiting() || 
        gMC->IsTrackStop() || 
        gMC->IsTrackDisappeared()){
-      hits[9] = eloss;//printf("Energia Perdida %f \n",hits[9]);
+      hits[9] = eloss;
       hits[10] = step;
       eloss = 0.0;
       step = 0.0;
@@ -1659,7 +1659,6 @@ void AliACORDEv1::AddHit(Int_t track, Int_t *vol, Float_t *hits)
 
 //_____________________________________________________________________________
 void AliACORDEv1::AddDigits(Int_t* track, Int_t module, Float_t time)
-//void AliACORDEv1::AddDigits(Int_t track, Int_t *vol, Float_t *digits)
 {
   
   // Adds Digit