]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITShit.cxx
Adapted to the new set of libraries
[u/mrichter/AliRoot.git] / ITS / AliITShit.cxx
index b298beaeebce4866c6a7032ce8a1a538b50771f1..a0b60505989901581c27a46a2f4dc56cb735af98 100644 (file)
 
 #include <Riostream.h>
 
-#include <TMath.h>
-#include <TRandom.h>
-#include <TVector.h>
-#include <TGeometry.h>
-#include <TNode.h>
-#include <TTUBE.h>
-#include "TParticle.h"
+#include<TLorentzVector.h>
 
 #include "AliRun.h"
 #include "AliITS.h"
 #include "AliITSgeom.h"
 #include "AliITShit.h"
+#include "AliMC.h"
 
 
 ClassImp(AliITShit)
@@ -554,16 +549,16 @@ Int_t AliITShit::GetModule(){
     }
 }
 //______________________________________________________________________
-TParticle * AliITShit::GetParticle(){
+TParticle * AliITShit::GetParticle() const {
 ////////////////////////////////////////////////////////////////////////
 //     Returns the pointer to the TParticle for the particle that created
 // this hit. From the TParticle all kinds of information about this 
 // particle can be found. See the TParticle class.
 ////////////////////////////////////////////////////////////////////////
-    return gAlice->Particle(GetTrack());
+    return gAlice->GetMCApp()->Particle(GetTrack());
 }  
 //----------------------------------------------------------------------
-void AliITShit::Print(ostream *os){
+void AliITShit::Print(ostream *os) const {
 ////////////////////////////////////////////////////////////////////////
 // Standard output format for this class.
 ////////////////////////////////////////////////////////////////////////
@@ -574,7 +569,7 @@ void AliITShit::Print(ostream *os){
     Int_t fmt;
 #endif
 #else
-#if defined __ICC || defined __ECC
+#if defined __ICC || defined __ECC || defined __xlC__
     ios::fmtflags fmt;
 #else
     Int_t fmt;
@@ -595,7 +590,7 @@ void AliITShit::Print(ostream *os){
     return;
 }
 //----------------------------------------------------------------------
-void AliITShit::Read(istream *is){
+void AliITShit::Read(istream *is) {
 ////////////////////////////////////////////////////////////////////////
 // Standard input format for this class.
 ////////////////////////////////////////////////////////////////////////