#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)
}
}
//______________________________________________________________________
-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.
////////////////////////////////////////////////////////////////////////
Int_t fmt;
#endif
#else
-#if defined __ICC || defined __ECC
+#if defined __ICC || defined __ECC || defined __xlC__
ios::fmtflags fmt;
#else
Int_t fmt;
return;
}
//----------------------------------------------------------------------
-void AliITShit::Read(istream *is){
+void AliITShit::Read(istream *is) {
////////////////////////////////////////////////////////////////////////
// Standard input format for this class.
////////////////////////////////////////////////////////////////////////