]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONGeometryConstituent.cxx
Bug in AliMUONHit constructor for fPz and fPx calculation (Arthur, Bruce and Ivana)
[u/mrichter/AliRoot.git] / MUON / AliMUONGeometryConstituent.cxx
index 821fd261f63b7ab0684bf830347840e008998724..b46a77c40d96b2b02b9f6e90b123be1369c362ac 100644 (file)
@@ -91,6 +91,28 @@ AliMUONGeometryConstituent::AliMUONGeometryConstituent(const TString& name,
   }  
 }
 
+//______________________________________________________________________________
+AliMUONGeometryConstituent::AliMUONGeometryConstituent(const TString& name, 
+                                   Int_t copyNo, 
+                                  const TGeoCombiTrans& transform, 
+                                  Int_t npar, Double_t* param)
+                                  
+  : TNamed(name, name),
+    fCopyNo(copyNo),
+    fNpar(npar),
+    fParam(0),                            
+    fTransformation(0) 
+{
+  // Create the constituent transformation
+  fTransformation = new TGeoCombiTrans(transform);
+
+  // Volume parameters
+  if (npar > 0) {
+    fParam = new Double_t[npar];
+    for (Int_t i=0; i<npar; i++) fParam[i] = param[i];
+  }  
+}
+
 //______________________________________________________________________________
 AliMUONGeometryConstituent::AliMUONGeometryConstituent()
   : TNamed(),