]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSv0.h
Using symbolic names instead of volume paths (Raffaele)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv0.h
index c948ab25aeb0745d12eb9dc22c2ed21755746924..0a8df6bb6b80c446defcadaa91462992f727c185 100644 (file)
@@ -3,6 +3,16 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.43  2005/05/28 14:19:05  schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
+
 //_________________________________________________________________________
 // Implementation version v0 of PHOS Manager class 
 // Layout EMC + CPV  has name IHEP
@@ -23,14 +33,18 @@ class AliPHOSv0 : public AliPHOS {
 
   AliPHOSv0() {}
   AliPHOSv0(const char *name, const char *title="") ;
-  AliPHOSv0(const AliPHOSv0 & phos) : AliPHOS(phos) {
-    Fatal("cpy ctor", "not implemented") ;
+  AliPHOSv0(AliPHOSv0 & phos) : AliPHOS(phos) {
+    phos.Copy(*this) ; 
   } 
   virtual ~AliPHOSv0(void){
     // dtor
   } 
+  virtual void Copy(TObject &phos) const; 
 
 //    virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) {
+  //this function is not a final-overrider for AliPHOS::AddHit, to
+  //supress warning, I use using-declaration :)
+  using AliPHOS::AddHit;
   virtual void   AddHit( Int_t, Int_t, Int_t, Int_t, Float_t*) {
     // useless since there are no hits
     Fatal("AddHit", "not to be used with v0") ;
@@ -44,6 +58,8 @@ class AliPHOSv0 : public AliPHOS {
   //  void           CreateGeometryforPPSD(void) ;     // creates the PPSD geometry for GEANT
   void           CreateGeometryforCPV(void) ;      // creates the CPV  geometry for GEANT
   void           CreateGeometryforSupport(void) ;  // creates the Support geometry for GEANT
+  virtual void   AddAlignableVolumes() const;      // define sym.names for alignable volumes
+
   virtual Float_t ZMin() const;                    // overall dimension of the module (min)
   virtual Float_t ZMax() const;                    // overall dimension of the module (max)