]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSConTableDB.cxx
Added track cut method, warning for q<0, profiles for qmax vs pad row and qtot vs...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSConTableDB.cxx
index f6da09ce297708aa2cac21a5c3cd3b31cb18e13a..83c167650d2b1b647f0f7164b69b602aa1c8ed55 100644 (file)
 
 /* $Id$ */
 
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.11  2005/05/28 14:19:04  schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
+
 //_________________________________________________________________________
 // Class provides correspondence between "raw numbers" i.e. number of crustall 
 // in prototype and PHOT AbsId numer, used in reconstruction.
@@ -33,6 +41,7 @@
 // --- Standard library ---
 
 // --- AliRoot header files ---
+#include "AliLog.h"
 #include "AliPHOSGeometry.h"
 #include "AliPHOSConTableDB.h"
 
@@ -40,49 +49,55 @@ ClassImp(AliPHOSConTableDB)
 
 
 //____________________________________________________________________________ 
-  AliPHOSConTableDB::AliPHOSConTableDB():TNamed("AliPHOSConTableDB","Beamtest2002") 
+AliPHOSConTableDB::AliPHOSConTableDB():
+  TNamed("AliPHOSConTableDB","Beamtest2002"),
+  fGeom(0),
+  fProtoRaws(0),
+  fProtoColumns(0),
+  fRawOffset(0),
+  fColOffset(0),
+  fNcrInProto(0),
+  fMinAbsId(0),
+  fMaxAbsId(0),
+  fAbsIdMap(0),
+  fRawIdMap(0)
 {
-//default constructor, nothing created.
-  fNcrInProto = 0 ;
-  fProtoRaws = 0 ;
-  fProtoColumns = 0 ;
-  fRawOffset = 0 ;
-  fColOffset = 0 ;
-  fGeom = 0;
-  fAbsIdMap = 0 ;
-  fRawIdMap = 0 ;
+  //default constructor, nothing created.
 }
 
 //____________________________________________________________________________ 
-  AliPHOSConTableDB::AliPHOSConTableDB(const char * title):TNamed("AliPHOSConTableDB",title) 
+AliPHOSConTableDB::AliPHOSConTableDB(const char * title):
+  TNamed("AliPHOSConTableDB",title),
+  fGeom(0),
+  fProtoRaws(0),
+  fProtoColumns(0),
+  fRawOffset(0),
+  fColOffset(0),
+  fNcrInProto(0),
+  fMinAbsId(0),
+  fMaxAbsId(0),
+  fAbsIdMap(0),
+  fRawIdMap(0)
 {
- //Normally used constructor 
-  fNcrInProto = 0 ;
-  fProtoRaws = 0 ;
-  fProtoColumns = 0 ;
-  fRawOffset = 0 ;
-  fColOffset = 0 ;
-  fAbsIdMap = 0 ;
-  fRawIdMap = 0 ;
-
+  //Normally used constructor 
   fGeom = AliPHOSGeometry::GetInstance("IHEP","") ;
-
 }
 
 //____________________________________________________________________________ 
-AliPHOSConTableDB::AliPHOSConTableDB(const AliPHOSConTableDB& cdb):TNamed(cdb.GetName(), cdb.GetTitle()) 
+AliPHOSConTableDB::AliPHOSConTableDB(const AliPHOSConTableDB& cdb):
+  TNamed(cdb.GetName(), cdb.GetTitle()),
+  fGeom(0),
+  fProtoRaws(cdb.fProtoRaws),
+  fProtoColumns(cdb.fProtoColumns),
+  fRawOffset(cdb.fRawOffset),
+  fColOffset(cdb.fColOffset),
+  fNcrInProto(cdb.fNcrInProto),
+  fMinAbsId(cdb.fMinAbsId),
+  fMaxAbsId(cdb.fMaxAbsId),
+  fAbsIdMap(new TArrayS(*(cdb.fAbsIdMap))),
+  fRawIdMap(new TArrayS(*(cdb.fRawIdMap)))
 {
   //Copy constructor
-  
-  fProtoRaws=cdb.fProtoRaws ;        //  Parameters
-  fProtoColumns=cdb.fProtoColumns ;     //  used to calculate
-  fRawOffset=cdb.fRawOffset ;        //  correspondance
-  fColOffset=cdb.fColOffset ;        //  map
-  fNcrInProto=cdb.fNcrInProto ;       //Number of channels in prototype
-  fMinAbsId=cdb.fMinAbsId ;         //Minimal AbsId, corresponding to some prototype cristall.
-  fMaxAbsId=cdb.fMaxAbsId ;         //Maximal AbsId, corresponding to some prototype cristall
-  fAbsIdMap=new TArrayS(*(cdb.fAbsIdMap)) ;         //Map of correspondance between Raw and PHOS ID
-  fRawIdMap=new TArrayS(*(cdb.fRawIdMap)) ;         //Map of correspondance between AbsId and Raw
 }
 
 //____________________________________________________________________________ 
@@ -101,7 +116,7 @@ void  AliPHOSConTableDB::BuildDB(void)
   //assuming, that prototype is centered in the third module of the PHOS
   fNcrInProto =fProtoRaws*fProtoColumns ;
   if(!fNcrInProto){
-    Error("BuildDB", "configuratio of prototype is not known!!!\n Specify number of raws and columns in prototype") ;
+    AliError(Form("configuratio of prototype is not known!!!\n Specify number of raws and columns in prototype"));
     return ;
   }
   fRawOffset = (fGeom->GetNPhi() - fProtoRaws)/2 ;
@@ -190,7 +205,7 @@ Int_t AliPHOSConTableDB::Raw2AbsId(Int_t rawId)const{
     return 0 ;
 }
 //____________________________________________________________________________ 
-void AliPHOSConTableDB::Print()const {
+void AliPHOSConTableDB::Print(const Option_t *)const {
 //prints configuraion
 
   TString message ; 
@@ -201,7 +216,7 @@ void AliPHOSConTableDB::Print()const {
   else
     message += " null \n"  ;
 
-  Info("Print", message.Data(), GetName(), GetTitle(), fGeom->GetName(), fGeom->GetTitle() ) ; 
+  AliInfo(Form(message.Data(), GetName(), GetTitle(), fGeom->GetName(), fGeom->GetTitle() )) ; 
 
   message  = "\n-------Prototype parameters--------\n" ;
   message += "    number of columns: %d \n" ; 
@@ -211,7 +226,7 @@ void AliPHOSConTableDB::Print()const {
   message += "    col: %d of %d\n" ; 
   message += "------------------------------------ \n" ;
 
-  Info("Print", message.Data(), fProtoColumns, fProtoRaws, fRawOffset, fGeom->GetNPhi(), fColOffset,fGeom->GetNZ() );   
+  AliInfo(Form(message.Data(), fProtoColumns, fProtoRaws, fRawOffset, fGeom->GetNPhi(), fColOffset,fGeom->GetNZ() ));   
 }
 //____________________________________________________________________________
 AliPHOSConTableDB& AliPHOSConTableDB::operator=(const AliPHOSConTableDB& cdb){