#include "AliCRTModule.h"
#include "AliCRTConstants.h"
#include "AliMC.h"
+#include "AliLog.h"
ClassImp(AliCRTv1)
// Initialise L3 magnet after it has been built
Int_t i;
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("\n%s: ",ClassName());
for(i=0;i<35;i++) printf("*");
printf(" CRTv1_INIT ");
#include "AliEMCALv0.h"
#include "AliEMCALGeometry.h"
#include "AliRun.h"
+#include "AliLog.h"
ClassImp(AliEMCALv0)
gMC->Gspos("XEN1", 1, "ALIC", 0.0, 0.0, 0.0, idrotm, "ONLY") ;
- if (gDebug==2) {
+ if (AliLog::GetGlobalDebugLevel()>=2) {
printf("CreateGeometry: XEN1 = %f, %f\n", envelopA[5], envelopA[6]);
printf("CreateGeometry: XU0 = %f, %f\n", envelopA[5], envelopA[6]);
}
gMC->Gspos(label.Data(), 1, "XEN1", 0.0, 0.0, 0.0, idrotm, "ONLY") ;
- if (gDebug == 2)
+ if (AliLog::GetGlobalDebugLevel() >= 2)
printf("CreateGeometry: XU%d = %f, %f\n", i, envelopA[5], envelopA[6]);
} // end i
gMC->Gspos(label.Data(), 1, "XEN1", 0.0, 0.0, 0.0, idrotm, "ONLY") ;
- if(gDebug == 2)
+ if(AliLog::GetGlobalDebugLevel() >= 2)
printf("CreateGeometry: XEN%d = %f, %f\n", i, envelopA[5], envelopA[6]);
// Create the shapes of active material (LEAD/Aluminium/Scintillator)
envelopC[8] = envelopC[5] ; //rmin
envelopC[9] = envelopC[6] ; //rmax
- if(gDebug == 2 )
+ if(AliLog::GetGlobalDebugLevel() >= 2 )
printf("CreateGeometry: volume = %s, name = XPST thickness = %f deb = %f/%f fin = %f/%f", label.Data(), scthick, envelopC[5], envelopC[8], envelopC[6], envelopC[9]) ;
for (int j =0; j < (geom->GetNEta()) ; j++){
envelopD[6] = envelopD[5] + radthick ; // rmax
envelopD[9] = envelopD[6] ; //rmax
- if(gDebug == 2 )
+ if(AliLog::GetGlobalDebugLevel() >= 2 )
printf("CreateGeometry: volume = %s, name = %s thickness = %f deb = %f/%f fin = %f/%f", label.Data(), radname.Data(), radthick, envelopD[5], envelopD[8], envelopD[6], envelopD[9]) ;
for (int j =0; j < (geom->GetNEta()) ; j++){
{
// Just prints an information message
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
TString message("\n") ;
message += "*****************************************\n" ;
// Initialis the FMD after it has been built
Int_t i;
//
- if (fDebug) {
+ if (AliLog::GetGlobalDebugLevel()) {
cout << "\n" << ClassName() << ": " << flush;
for (i = 0; i < 35; i++) cout << "*";
cout << " FMD_INIT ";
#include "AliITSDDLRawData.h"
#include "AliRun.h"
#include "AliRawReader.h"
+#include "AliLog.h"
ClassImp(AliITS)
AliITSresponse *resp;
AliITSDetType *iDetType;
- if(fDebug) Info("SetDefauls","%s: SetDefaults",ClassName());
+ AliInfoClass("Seting Defaults");
//SPD
iDetType = DetType(kSPD);
//m.b. : this change is nothing but a nice way to make sure
//the CPU goes up !
- if(GetDebug()) cout<<"HitsToFastRecPoints: N mod = "<<
+ AliDebugClassStream(1) <<"HitsToFastRecPoints: N mod = "<<
geom->GetIndexMax()<<endl;
for(module=0;module<geom->GetIndexMax();module++){
id = geom->GetModuleType(module);
/* History of cvs commits:
*
* $Log$
+ * Revision 1.89 2005/05/28 12:10:07 schutz
+ * Copy constructor is corrected (by T.P.)
+ *
*/
//_________________________________________________________________________
{
// Default ctor
fName = "PHOS" ;
- fDebug = 0;
}
{
// ctor : title is used to identify the layout
- fDebug = 0 ;
fHighCharge = 8.2 ; // adjusted for a high gain range of 5.12 GeV (10 bits)
fHighGain = 6.64 ;
fHighLowGainFactor = 16. ; // adjusted for a low gain range of 82 GeV (10 bits)
/* History of cvs commits:
*
* $Log$
+ * Revision 1.79 2005/05/28 14:19:05 schutz
+ * Compilation warnings fixed by T.P.
+ *
*/
//_________________________________________________________________________
#include "AliPHOSLoader.h"
#include "AliPHOSv0.h"
#include "AliRun.h"
+#include "AliLog.h"
ClassImp(AliPHOSv0)
Int_t i;
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
TString st ;
for(i=0;i<35;i++)
st += "*";
/* History of cvs commits:
*
* $Log$
+ * Revision 1.21 2005/05/28 14:19:05 schutz
+ * Compilation warnings fixed by T.P.
+ *
*/
//_________________________________________________________________________
#include "AliPHOSvImpacts.h"
#include "AliRun.h"
#include "AliMC.h"
+#include "AliLog.h"
ClassImp(AliPHOSvImpacts)
new((*impacts)[nImpacts]) AliPHOSImpact(shunt,primary,track,pid,p,xyz) ;
- if (fDebug==1) {
- printf("Module %d %s: ",module,det);
+ AliDebugClass(1,Form("Module %d %s: ",module,det));
+ if (AliLog::GetGlobalDebugLevel()>0)
(dynamic_cast<AliPHOSImpact*>((impacts->At(nImpacts))))->Print();
- }
}
//____________________________________________________________________________
#include "AliPMDLoader.h"
+#include "AliLog.h"
const TString AliPMDLoader::fgkDefaultHitsFileName = "PMD.Hits.root";
const TString AliPMDLoader::fgkDefaultSDigitsFileName = "PMD.SDigits.root";
AliPMDLoader::AliPMDLoader(const Char_t *name,const Char_t *topfoldername)
:AliLoader(name,topfoldername)
{
- if (GetDebug())
- Info("AliPMDLoader"," name = %s; topfolder = %s",name,topfoldername);
+ AliInfoClass(Form(" name = %s; topfolder = %s",name,topfoldername));
}
/*****************************************************************************/
#include "AliPMDv0.h"
#include "AliRun.h"
#include "AliMC.h"
+#include "AliLog.h"
const Int_t AliPMDv0::fgkNcellHole = 24; // Hole dimension
const Float_t AliPMDv0::fgkCellRadius = 0.25; // Radius of a hexagonal cell
ysup[i]*TMath::Sin(theta[j]);
ypos[i]=ymod[j] + xsup[i]*TMath::Sin(theta[j]) +
ysup[i]*TMath::Cos(theta[j]);
- if(fDebug)
- printf("%s: %f %f \n", ClassName(), xpos[i], ypos[i]);
+
+ AliDebugClass(1,Form("xpos: %f, ypos: %f", xpos[i], ypos[i]));
nummod = nummod+1;
- if(fDebug)
- printf("\n%s: nummod %d\n",ClassName(),nummod);
+ AliDebugClass(1,Form("nummod %d",nummod));
gMC->Gspos("EMM1", nummod + 6, "EPMD", xpos[i],ypos[i], 0., irotate[j], "ONLY");
Int_t i;
// kdet=1;
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("\n%s: ",ClassName());
for(i=0;i<35;i++) printf("*");
printf(" PMD_INIT ");
#include "Riostream.h"
#include <TVirtualMC.h>
#include "AliMC.h"
+#include "AliLog.h"
const Int_t AliPMDv1::fgkNcolUM1 = 48; // Number of cols in UM, type 1
const Int_t AliPMDv1::fgkNcolUM2 = 96; // Number of cols in UM, type 2
// gAliKdet=1;
//
cout << " Inside Init " << endl;
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("\n%s: ",ClassName());
for(i=0;i<35;i++) printf("*");
printf(" PMD_INIT ");
#include "AliSTARTDigitizer.h"
#include "AliSTARTRawData.h"
#include "AliSTARTRecPoint.h"
+#include "AliLog.h"
ClassImp(AliSTART)
// Initialis the START after it has been built
Int_t i;
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("\n%s: ",ClassName());
for(i=0;i<35;i++) printf("*");
printf(" START_INIT ");
#include "AliRun.h"
#include "AliSTARThit.h"
#include "AliSTARTv0.h"
+#include "AliLog.h"
ClassImp(AliSTARTv0)
// Bottom glass
gMC->Gsvolu("0BOT","TUBE",idtmed[kGlass],pbot,3);
z=ppmt[2]-pbot[2];
- if(fDebug) printf("%s: Z bottom %f\n",ClassName(),z);
+ AliDebugClass(1,Form(" Z bottom %f\n",z));
gMC->Gspos("0BOT",1,"0PMT",0,0,z,0,"ONLY");
// Side cylinder glass
gMC->Gsvolu("0OUT","TUBE",idtmed[kGlass],pglass,3);
AliMedium(14, "PenoPlast$", 9, 0, isxfld, sxmgmx, 10., .01, 1., .003, .003);
AliMedium(15, "Aluminium$", 11, 0, isxfld, sxmgmx, 10., .01, 1., .003, .003);
- if(fDebug) cout<<ClassName()<<": ++++++++++++++Medium set++++++++++"<<endl;
+ AliDebugClass(1,": ++++++++++++++Medium set++++++++++");
}
//---------------------------------------------------------------------
// Bottom glass
gMC->Gsvolu("0BOT","TUBE",idtmed[kGlass],pbot,3);
z=ppmt[2]-pbot[2];
- if(fDebug) printf("%s: Z bottom %f\n",ClassName(),z);
+ AliDebugClass(1,Form("Z bottom %f\n",z));
gMC->Gspos("0BOT",1,"0PMT",0,0,z,0,"ONLY");
// Side cylinder glass
gMC->Gsvolu("0OUT","TUBE",idtmed[kGlass],pglass,3);
gMC->SetCerenkov (idtmed[kOpAir], kNbins, aPckov,absorAir , efficAll,rindexAir );
gMC->SetCerenkov (idtmed[kOpAirNext], kNbins, aPckov,absorbCathodeNext , efficAll, rindexCathodeNext);
- if(fDebug) cout<<ClassName()<<": ++++++++++++++Medium set++++++++++"<<endl;
+ AliDebugClass(1,": ++++++++++++++Medium set++++++++++");
}
if (opt.CompareTo("update",TString::kIgnoreCase)) return kTRUE;
return kFALSE;
}
-/*****************************************************************************/
-Int_t AliLoader::GetDebug()
-{
- AliFatalClass("Don't use this method any more, use AliDebug instead");
- return AliDebugLevelClass();
-}
/*****************************************************************************/
void AliLoader::SetDebug(Int_t deb)
static Bool_t TestFileOption(Option_t* opt);//checks is file is created from scratch
static Bool_t IsOptionWritable(const TString& opt);
- static Int_t GetDebug();
static void SetDebug(Int_t deb = 1);//Sets debugging information
protected:
fActive(0),
fHistograms(0),
fNodes(0),
- fDebug(0),
fEnable(1),
fTrackReferences(0),
fMaxIterTrackRef(0),
fActive(0),
fHistograms(new TList()),
fNodes(new TList()),
- fDebug(0),
fEnable(1),
fTrackReferences(new TClonesArray("AliTrackReference", 100)),
fMaxIterTrackRef(0),
fActive(0),
fHistograms(0),
fNodes(0),
- fDebug(0),
fEnable(0),
fTrackReferences(0),
fMaxIterTrackRef(0),
digitsFile.close();
delete[] buffer;
}
-
-
-//_____________________________________________________________________________
-Int_t AliModule::GetDebug() const
-{
- AliFatal("Don't use this method any more, use AliDebug instead");
- return 0;
-}
virtual Bool_t IsFolder() const {return kTRUE;}
virtual Int_t& LoMedium() {return fLoMedium;}
virtual Int_t& HiMedium() {return fHiMedium;}
- virtual Int_t GetDebug() const;
// Module composition
virtual void AliMaterial(Int_t imat, const char* name, Float_t a,
Bool_t fActive; //Detector activity flag
TList *fHistograms; //List of histograms
TList *fNodes; //List of geometry nodes
- Int_t fDebug; //Debug flag
Bool_t fEnable; //StepManager enabling flag
TClonesArray *fTrackReferences; //!list of track references - for one primary track only -MI
Int_t fMaxIterTrackRef; //!for track refernce iterator routines
AliRunLoader* fRunLoader; //!local pointer to run loader
- ClassDef(AliModule,6) //Base class for ALICE Modules
+ ClassDef(AliModule,7) //Base class for ALICE Modules
};
#endif
fNdets++;
}
-
-//_______________________________________________________________________
-Int_t AliRun::GetDebug() const
-{
- AliFatal("Don't use this method any more, use AliDebug instead");
- return AliDebugLevel();
-}
-
-//_______________________________________________________________________
-void AliRun::SetDebug(Int_t level)
-{
- AliFatal("Don't use this method any more, use AliLog instead");
- AliLog::SetClassDebugLevel("AliRun", level);
-}
-
-
// added by Alberto Colla
//_____________________________________________________________________________
/*inline*/ Bool_t AliRun::IsFileAccessible(const char* fnam, EAccessMode mode)
Int_t GetEventNrInRun() const {return fEventNrInRun;}
Int_t GetEventsPerRun() const {return fEventsPerRun;}
Int_t GetNdets() const {return fNdets;}
- Int_t GetDebug() const;
AliModule *GetModule(const char *name) const;
AliDetector *GetDetector(const char *name) const;
Int_t GetModuleID(const char *name) const;
Float_t rmax=430,Float_t zmax=10000, AliLegoGenerator* gener=NULL);
virtual Bool_t IsLegoRun() const {return (fLego!=0);}
virtual void RunReco(const char *detector=0, Int_t first = 0, Int_t last = 0);
- virtual void SetDebug(Int_t level=0);
virtual void SetDisplay(AliDisplay *display) {fDisplay = display;}
virtual void SetField(Int_t type=2, Int_t version=1, Float_t scale=1, Float_t maxField=10, const char* filename="$(ALICE_ROOT)/data/field01.dat");
virtual void SetField(AliMagF* magField);
#include "AliConfig.h"
#include "AliLoader.h"
#include "AliDataLoader.h"
+#include "AliLog.h"
class TFile;
class TString;
//made on Jiri Chudoba demand
TString GetFileName() const;//returns name of galice file
const TObjArray* GetArrayOfLoaders() const {return fLoaders;}
- Int_t GetDebug() const {return AliLoader::GetDebug();}
void Cd(){fgRunLoader = this;}
void Synchronize();
#include "AliABSOv0.h"
#include "AliConst.h"
#include "AliRun.h"
+#include "AliLog.h"
ClassImp(AliABSOv0)
// Initialisation of the muon absorber after it has been built
Int_t i;
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("\n%s: ",ClassName());
for(i=0;i<35;i++) printf("*");
printf(" ABSOv0_INIT ");
#include "AliDIPO.h"
#include "AliRun.h"
+#include "AliLog.h"
ClassImp(AliDIPO)
//
Int_t i;
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("\n%s: ",ClassName());
for(i=0;i<35;i++) printf("*");
printf(" DIPO_INIT ");
: AliFRAME(name,title)
{
// Constructor
- if(fDebug>1) printf("%s: Create FRAMEv1 object\n",ClassName());
+ AliDebugClass(1,"Create FRAMEv1 object");
fEuclidGeometry="$(ALICE_ROOT)/Euclid/frame1099i.euc";
fEuclidMaterial="$(ALICE_ROOT)/Euclid/frame.tme";
}
delete [] filetmp;
if(file) {
fclose(file);
- if(fDebug) printf("%s: Reading FRAME geometry\n",ClassName());
+ AliDebugClass(1,"Reading FRAME geometry");
ReadEuclid(fEuclidGeometry.Data(),topvol);
} else
Fatal("CreateGeometry","The Euclid file %s does not exist!\n",
{
// Create materials and media (from Euclid file)
char *filetmp;
- if(fDebug) printf("%s: Create FRAMEv1 materials\n",ClassName());
+ AliDebugClass(1,"Create FRAMEv1 materials\n");
filetmp = gSystem->ExpandPathName(fEuclidMaterial.Data());
FILE *file = fopen(filetmp,"r");
delete [] filetmp;
// Initialise the module after the geometry has been defined
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("%s: **************************************"
" FRAME "
"**************************************\n",ClassName());
#include "AliRun.h"
#include "AliConst.h"
#include "AliMC.h"
+#include "AliLog.h"
ClassImp(AliFRAMEv2)
//
// Initialise the module after the geometry has been defined
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("%s: **************************************"
" FRAME "
"**************************************\n",ClassName());
#include "AliHALL.h"
#include "AliMagF.h"
#include "AliRun.h"
+#include "AliLog.h"
ClassImp(AliHALL)
//
Int_t i;
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("\n%s: ",ClassName());
for(i=0;i<35;i++) printf("*");
printf(" HALL_INIT ");
// Initialise L3 magnet after it has been built
Int_t i;
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("\n%s: ",ClassName());
for(i=0;i<35;i++) printf("*");
printf(" MAG_INIT ");
#include "AliMagF.h"
#include "AliPIPEv0.h"
#include "AliRun.h"
+#include "AliLog.h"
ClassImp(AliPIPEv0)
*/
//End_Html
- if(fDebug) printf("%s: Create PIPEv0 geometry \n",ClassName());
+ AliDebugClass(1,"Create PIPEv0 geometry");
Int_t *idtmed = fIdtmed->GetArray();
// Define materials for beam pipe
//
- if(fDebug) printf("%s: Create PIPEv0 materials \n",ClassName());
+ AliDebugClass(1,"Create PIPEv0 materials");
Int_t isxfld = gAlice->Field()->Integ();
Float_t sxmgmx = gAlice->Field()->Max();
// Steel (Inox)
#include "AliMagF.h"
#include "AliPIPEvGEO.h"
#include "AliRun.h"
+#include "AliLog.h"
ClassImp(AliPIPEvGEO)
// CP/3 The double-bellow and flange on the absorber side: 40.5 cm
//
//
- if(fDebug) printf("%s: Create PIPEv0 geometry \n",ClassName());
+ AliDebug(1,"Create PIPEv0 geometry");
Int_t *idtmed = fIdtmed->GetArray();
Float_t dz;
Float_t cpcon[39];
// Define materials for beam pipe
//
- if(fDebug) printf("%s: Create PIPEvGEO materials \n",ClassName());
+ AliDebugClass(1,"Create PIPEvGEO materials");
Int_t isxfld = gAlice->Field()->Integ();
Float_t sxmgmx = gAlice->Field()->Max();
// Steel (Inox)
#include "AliRun.h"
#include "AliMagF.h"
#include "AliConst.h"
+#include "AliLog.h"
ClassImp(AliSHIL)
//
Int_t i;
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("\n%s: ",ClassName());
for(i=0;i<35;i++) printf("*");
printf(" SHIL_INIT ");
#include "AliConst.h"
#include "AliRun.h"
#include "AliSHILv0.h"
+#include "AliLog.h"
ClassImp(AliSHILv0)
Int_t i;
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("\n%s: ",ClassName());
for(i=0;i<35;i++) printf("*");
printf(" SHILv0_INIT ");
#include "AliSHILv2.h"
#include "AliConst.h"
#include "AliALIFE.h"
+#include "AliLog.h"
ClassImp(AliSHILv2)
//
Int_t i;
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("\n%s: ",ClassName());
for(i=0;i<35;i++) printf("*");
printf(" SHILv2_INIT ");
#include "AliSHILvF.h"
#include "AliConst.h"
#include "AliALIFE.h"
+#include "AliLog.h"
ClassImp(AliSHILvF)
//
Int_t i;
//
- if(fDebug) {
+ if(AliLog::GetGlobalDebugLevel()>0) {
printf("\n%s: ",ClassName());
for(i=0;i<35;i++) printf("*");
printf(" SHILvF_INIT ");
#include "AliTPCLoader.h"
+#include "AliLog.h"
const TString AliTPCLoader::fgkDefaultHitsFileName = "TPC.Hits.root";
const TString AliTPCLoader::fgkDefaultSDigitsFileName = "TPC.SDigits.root";
AliTPCLoader::AliTPCLoader(const Char_t *name,const Char_t *topfoldername)
:AliLoader(name,topfoldername)
{
- if (GetDebug())
- Info("AliTPCLoader"," name = %s; topfolder = %s",name,topfoldername);
+ AliInfoClass(Form(" name = %s; topfolder = %s",name,topfoldername));
}
/*****************************************************************************/