]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDv0.cxx
Boost method added.
[u/mrichter/AliRoot.git] / TRD / AliTRDv0.cxx
index 1dacc261a341c91e6b7b6994d3a7c88c621c0d5e..1e1eb67bd7f3628aea3552529657c541b7cf9c8c 100644 (file)
 
 /*
 $Log$
+Revision 1.21  2002/02/20 14:01:40  hristov
+Compare a TString with a string, otherwise the conversion cannot be done on Sun
+
+Revision 1.20  2002/02/13 16:58:37  cblume
+Bug fix reported by Jiri. Make atoi input zero terminated in StepManager()
+
+Revision 1.19  2002/02/11 14:25:27  cblume
+Geometry update, compressed hit structure
+
 Revision 1.18  2000/11/30 17:38:08  cblume
 Changes to get in line with new STEER and EVGEN
 
@@ -77,7 +86,6 @@ Introduction of the Copyright and cvs Log
 #include <TLorentzVector.h>
 
 #include "AliRun.h"
-#include "AliMC.h"
 #include "AliConst.h"
   
 #include "AliTRDv0.h"
@@ -182,7 +190,8 @@ void AliTRDv0::StepManager()
   // Use pad plane as sensitive volume
   TString  cIdSens = "L";
   TString  cIdCurrent;
-  Char_t   cIdChamber[2];
+  Char_t   cIdChamber[3];
+           cIdChamber[2] = 0;
 
   const Int_t kNplan = AliTRDgeometry::Nplan();
 
@@ -195,7 +204,7 @@ void AliTRDv0::StepManager()
     
     // Check on sensitive volume
     cIdCurrent = gMC->CurrentVolName();
-    if (cIdCurrent[1] == cIdSens) {
+    if (cIdSens == cIdCurrent[1]) {
 
       gMC->TrackPosition(p);
       for (Int_t i = 0; i < 3; i++) hits[i] = p[i];