Declaring flange as MANY.
[u/mrichter/AliRoot.git] / MUON / AliMUONGeometryEnvelope.cxx
index ba59ab4998804e6ae9ae8e860a0aa3e9cd3c1776..415e3a1b147fe1cc13c2de49e3e46f015786952b 100644 (file)
@@ -7,6 +7,7 @@
 // Author: Ivana Hrivnacova, IPN Orsay
 
 #include <TGeoMatrix.h>
+#include <TString.h>
 #include <TObjArray.h>
 
 #include "AliMUONGeometryEnvelope.h"
@@ -16,15 +17,19 @@ ClassImp(AliMUONGeometryEnvelope)
 
 //______________________________________________________________________________
 AliMUONGeometryEnvelope::AliMUONGeometryEnvelope(const TString& name, 
-                                                 Bool_t isVirtual)
+                                                 Bool_t isVirtual,
+                                                const char* only)
  : TNamed(name, name),
    fIsVirtual(isVirtual),
+   fIsMANY(false),
    fCopyNo(0),
    fTransformation(0),
    fConstituents(0)
 {
 // Standard constructor
 
+  if (TString(only) == TString("MANY")) fIsMANY = true;
+
   // Create the envelope transformation
   fTransformation = new TGeoCombiTrans("");
   fConstituents = new TObjArray(20);
@@ -33,15 +38,19 @@ AliMUONGeometryEnvelope::AliMUONGeometryEnvelope(const TString& name,
 
 //______________________________________________________________________________
 AliMUONGeometryEnvelope::AliMUONGeometryEnvelope(const TString& name, 
-                                                 Int_t copyNo)
+                                                 Int_t copyNo, 
+                                                const char* only)
  : TNamed(name, name),
    fIsVirtual(false),
+   fIsMANY(false),
    fCopyNo(copyNo),
    fTransformation(0),
    fConstituents(0)
 {
 // Standard constructor
 
+  if (TString(only) == TString("MANY")) fIsMANY = true;
+
   // Create the envelope transformation
   fTransformation = new TGeoCombiTrans("");
   fConstituents = new TObjArray(20);