Detection elements segmentations now derived from the
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Jan 2005 11:12:37 +0000 (11:12 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Jan 2005 11:12:37 +0000 (11:12 +0000)
AliMUONVGeometryDESegmentation base class
- Bool_t return type in segmentation GetPadI/C(...) makes possible to detect
not existing pads
- Uncommented function AliMUONVGeometryBuilder::MapSV for generating
sensitive volume maps
(required new version of VMC in Root (v1-0 or more for geant3) )
(Ivana)

MUON/AliMUONVGeometryDESegmentation.cxx [new file with mode: 0644]
MUON/AliMUONVGeometryDESegmentation.h [new file with mode: 0644]

diff --git a/MUON/AliMUONVGeometryDESegmentation.cxx b/MUON/AliMUONVGeometryDESegmentation.cxx
new file mode 100644 (file)
index 0000000..8950c64
--- /dev/null
@@ -0,0 +1,70 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+//
+// Class AliVMUONGeometryDESegmentation
+// ----------------------------------
+// Extension for AliSegmentation interface,
+// added functions:
+//  Bool_t  HasPad(Float_t x, Float_t y, Float_t z);
+//  Bool_t  HasPad(Int_t ix, Int_t iy);
+//
+// Author:Ivana Hrivnacova, IPN Orsay
+
+#include "AliLog.h"
+
+#include "AliMUONVGeometryDESegmentation.h"
+
+ClassImp(AliMUONVGeometryDESegmentation)
+
+
+//______________________________________________________________________________
+AliMUONVGeometryDESegmentation::AliMUONVGeometryDESegmentation() 
+: AliSegmentation()
+{
+// Normal/default constructor
+}
+
+//______________________________________________________________________________
+AliMUONVGeometryDESegmentation::AliMUONVGeometryDESegmentation(
+                                  const AliMUONVGeometryDESegmentation& rhs) 
+  : AliSegmentation(rhs)
+{
+// Copy constructor
+  AliFatal("Copy constructor is not implemented.");
+}
+
+//______________________________________________________________________________
+AliMUONVGeometryDESegmentation::~AliMUONVGeometryDESegmentation() {
+// Destructor
+} 
+
+//
+// operators
+//
+
+//______________________________________________________________________________
+AliMUONVGeometryDESegmentation& 
+AliMUONVGeometryDESegmentation::operator=(const AliMUONVGeometryDESegmentation& rhs)
+{
+// Copy operator 
+
+  // check assignement to self
+  if (this == &rhs) return *this;
+
+  AliFatal("Assignment operator is not implemented.");
+    
+  return *this;  
+}
diff --git a/MUON/AliMUONVGeometryDESegmentation.h b/MUON/AliMUONVGeometryDESegmentation.h
new file mode 100644 (file)
index 0000000..a13e909
--- /dev/null
@@ -0,0 +1,51 @@
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+//
+// Class AliVMUONGeometryDESegmentation
+// ----------------------------------
+// Extension for AliSegmentation interface,
+// added functions:
+//  Bool_t  HasPad(Float_t x, Float_t y, Float_t z);
+//  Bool_t  HasPad(Int_t ix, Int_t iy);
+//
+// Author:Ivana Hrivnacova, IPN Orsay
+
+#ifndef ALI_MUON_V_GEOMETRY_DE_SEGMENTATION_H
+#define ALI_MUON_V_GEOMETRY_DE_SEGMENTATION_H
+
+#include "AliSegmentation.h"
+
+class AliMUONVGeometryDESegmentation : public AliSegmentation
+{
+  public:
+    AliMUONVGeometryDESegmentation();
+    virtual ~AliMUONVGeometryDESegmentation();
+
+    // methods
+    virtual Bool_t  HasPad(Float_t x, Float_t y, Float_t z) = 0; 
+                       // Returns true if a pad exists in the given position
+    virtual Bool_t  HasPad(Int_t ix, Int_t iy) = 0;
+                       // Returns true if a pad with given indices exists
+
+  protected:
+    AliMUONVGeometryDESegmentation(const AliMUONVGeometryDESegmentation& rhs);
+  
+    // operators
+    AliMUONVGeometryDESegmentation& operator=(
+      const AliMUONVGeometryDESegmentation & rhs);
+
+   ClassDef(AliMUONVGeometryDESegmentation,1) // Det element segmentation interface
+};
+
+#endif //ALI_MUON_V_GEOMETRY_DE_SEGMENTATION_H
+
+
+
+
+
+
+
+