/*
$Log$
+Revision 1.16 2001/05/16 14:57:22 alibrary
+New files for folders and Stack
+
+Revision 1.15 2001/03/20 06:36:28 alibrary
+100 parameters now allowed for geant shapes
+
+Revision 1.14 2001/01/26 19:58:48 hristov
+Major upgrade of AliRoot code
+
+Revision 1.13 2000/11/30 07:12:49 alibrary
+Introducing new Rndm and QA classes
+
Revision 1.12 2000/10/02 21:28:14 fca
Removal of useless dependecies via forward declarations
#include "AliRun.h"
#include "AliMagF.h"
#include "AliMC.h"
+#include "AliConfig.h"
ClassImp(AliModule)
fNodes = 0;
fIdtmed = 0;
fIdmate = 0;
+ fDebug = 0;
}
//_____________________________________________________________________________
// Prepare to find the tracking media range
fLoMedium = 65536;
fHiMedium = 0;
+
+ AliConfig::Instance()->Add(this);
+
SetDebug(gAlice->GetDebug());
}
// Loop through geometry to disable all
// nodes for this Module
while((node = (TNode*)next())) {
- node->SetVisibility(0);
+ node->SetVisibility(-1);
}
}
// Loop through geometry to enable all
// nodes for this Module
while((node = (TNode*)next())) {
- node->SetVisibility(1);
+ node->SetVisibility(3);
}
}
char key[5], card[77], natmed[21];
char name[5], mother[5], shape[5], konly[5], volst[7000][5];
char *filtmp;
- Float_t par[50];
+ Float_t par[100];
Float_t teta1, phi1, teta2, phi2, teta3, phi3, orig, step;
Float_t xo, yo, zo;
const Int_t kMaxRot=5000;
}
if (istop[i] && !flag) {
strcpy(topvol,volst[i]);
- printf(" *** GREUCL *** volume %s taken as a top volume\n",topvol);
+ if(fDebug) printf("%s::ReadEuclid: volume %s taken as a top volume\n",ClassName(),topvol);
flag=1;
}
}
fclose (lun);
//*
//* commented out only for the not cernlib version
- printf(" *** GREUCL *** file: %s is now read in\n",filnam);
+ if(fDebug) printf("%s::ReadEuclid: file: %s is now read in\n",ClassName(),filnam);
//
return;
//*
}
//
// *** The input filnam name will be with extension '.euc'
- printf("The file name is %s\n",filnam); //Debug
+ if(fDebug) printf("%s::ReadEuclid: The file name is %s\n",ClassName(),filnam); //Debug
filtmp=gSystem->ExpandPathName(filnam);
lun=fopen(filtmp,"r");
delete [] filtmp;
fclose (lun);
//*
//* commented out only for the not cernlib version
- Warning("ReadEuclidMedia","file: %s is now read in\n",filnam);
+ if(fDebug) printf("%s::ReadEuclidMedia: file %s is now read in\n",
+ ClassName(),filnam);
//*
return;
//*
Warning("ReadEuclidMedia","reading error or premature end of file\n");
}
-//_____________________________________________________________________________
-void AliModule::Streamer(TBuffer &R__b)
-{
- //
- // Stream an object of class Module.
- //
- if (R__b.IsReading()) {
- Version_t R__v = R__b.ReadVersion(); if (R__v) { }
- TNamed::Streamer(R__b);
- TAttLine::Streamer(R__b);
- TAttMarker::Streamer(R__b);
- fEuclidMaterial.Streamer(R__b);
- fEuclidGeometry.Streamer(R__b);
- R__b >> fActive;
- R__b >> fHistograms;
- //
- // Stream the pointers but not the TClonesArrays
- R__b >> fNodes; // diff
- } else {
- R__b.WriteVersion(AliModule::IsA());
- TNamed::Streamer(R__b);
- TAttLine::Streamer(R__b);
- TAttMarker::Streamer(R__b);
- fEuclidMaterial.Streamer(R__b);
- fEuclidGeometry.Streamer(R__b);
- R__b << fActive;
- R__b << fHistograms;
- //
- // Stream the pointers but not the TClonesArrays
- R__b << fNodes; // diff
- }
-}