**************************************************************************/
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.5 2005/05/28 14:19:04 schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
+
//_________________________________________________________________________
// To navigate in the Grid catalogue (very elementary)
// check here : /afs/cern.ch/user/p/peters/public/README.ALIEN
ClassImp(AliPHOSGridFile)
//____________________________________________________________________________
-AliPHOSGridFile::AliPHOSGridFile(TString grid)
+AliPHOSGridFile::AliPHOSGridFile(TString grid):
+ fGrid(0),
+ fRoot("/alice/production/aliprod"),
+ fYear(""),
+ fProd(""),
+ fVers(""),
+ fType(""),
+ fRun(""),
+ fEvt(""),
+ fPath("")
{
// default ctor; Doing initialisation ;
- fGrid = 0 ;
if (grid == "alien")
fGrid = TGrid::Connect("alien://aliendb1.cern.ch:15000/?direct") ;
else
if ( !fGrid )
Error("ctor", "Cannot connect to alien://aliendb1.cern.ch:15000/?direct") ;
- fRoot = "/alice/production/aliprod" ;
#if ROOT_VERSION_CODE < ROOT_VERSION(5,0,0)
if ( !fGrid->OpenDir(fRoot) )
Error("ctor", "Cannot find directory %s ", fRoot.Data() ) ;
#else
Error("AliPHOSGridFile", "needs to be ported to new TGrid");
#endif
- fYear = "" ;
- fProd = "" ;
- fVers = "" ;
- fType = "" ;
- fRun = "" ;
- fEvt = "" ;
fPath += fRoot ;
+}
+//____________________________________________________________________________
+AliPHOSGridFile::AliPHOSGridFile(const AliPHOSGridFile &rhs) :
+ TObject(rhs),
+ fGrid(0),
+ fRoot(""),
+ fYear(""),
+ fProd(""),
+ fVers(""),
+ fType(""),
+ fRun(""),
+ fEvt(""),
+ fPath("")
+{
+ //copy ctor
+ rhs.Copy(*this);
}
//____________________________________________________________________________
}
//____________________________________________________________________________
-void AliPHOSGridFile::Copy(AliPHOSGridFile & lfn)
+void AliPHOSGridFile::Copy(TObject & obj)const
{
//Copy method used by the Copy ctor
+ AliPHOSGridFile &lfn = static_cast<AliPHOSGridFile &>(obj);
+ /* incorrect Copy, destination is OBJ, not this.
fRoot = lfn.fRoot ;
fYear = lfn.fYear ;
fProd = lfn.fProd ;
fRun = lfn.fRun ;
fEvt = lfn.fEvt ;
TObject::Copy(lfn) ;
+ */
+ lfn.fRoot = fRoot ;
+ lfn.fYear = fYear ;
+ lfn.fProd = fProd ;
+ lfn.fVers = fVers ;
+ lfn.fType = fType ;
+ lfn.fRun = fRun ;
+ lfn.fEvt = fEvt ;
+ TObject::Copy(lfn) ;
}
//____________________________________________________________________________