]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliModule.cxx
fixed missing return value check (resulting in crash when TreeK is not readable)
[u/mrichter/AliRoot.git] / STEER / AliModule.cxx
index 321db45087926bc9a86c4db0ac555e15edecfcff..a1a92d2fe797795d2241f299e0468c14ff416df0 100644 (file)
@@ -114,40 +114,13 @@ AliModule::AliModule(const char* name,const char *title):
 
   gAlice->AddModule(this);
 
-  SetMarkerColor(3);
+  //PH  SetMarkerColor(3);
   //
   // Clear space for tracking media and material indexes
 
   for(Int_t i=0;i<100;i++) (*fIdmate)[i]=(*fIdtmed)[i]=0;
 }
  
-//_______________________________________________________________________
-AliModule::AliModule(const AliModule &mod):
-  TNamed(mod),
-  TAttLine(mod),
-  TAttMarker(mod),
-  AliRndm(mod),
-  fEuclidMaterial(""),
-  fEuclidGeometry(""),
-  fIdtmed(0),
-  fIdmate(0),
-  fLoMedium(0),
-  fHiMedium(0),
-  fActive(0),
-  fHistograms(0),
-  fNodes(0),
-  fEnable(0),
-  fTrackReferences(0),
-  fMaxIterTrackRef(0),
-  fCurrentIterTrackRef(0),
-  fRunLoader(0)
-{
-  //
-  // Copy constructor
-  //
-  mod.Copy(*this);
-}
-
 //_______________________________________________________________________
 AliModule::~AliModule()
 {
@@ -184,15 +157,6 @@ AliModule::~AliModule()
 
 }
  
-//_______________________________________________________________________
-void AliModule::Copy(TObject & /* mod */) const
-{
-  //
-  // Copy *this onto mod, not implemented for AliModule
-  //
-  AliFatal("Not implemented!");
-}
-
 //_______________________________________________________________________
 void AliModule::Disable()
 {
@@ -691,7 +655,8 @@ void AliModule::ReadEuclidMedia(const char* filnam)
 void AliModule::AddAlignableVolumes() const
 {
   // 
-  AliWarning(Form(" %s still has to implement the AddAlignableVolumes method!",GetName()));
+  if (IsActive())
+    AliWarning(Form(" %s still has to implement the AddAlignableVolumes method!",GetName()));
 }
 
 //_______________________________________________________________________