1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 // Class AliMUONGeometryConstituent
19 // -----------------------------
20 // Helper class for definititon of an assembly of volumes.
21 // Author: Ivana Hrivnacova, IPN Orsay
24 #include <TGeoMatrix.h>
26 #include "AliMUONGeometryConstituent.h"
28 ClassImp(AliMUONGeometryConstituent)
30 //______________________________________________________________________________
31 AliMUONGeometryConstituent::AliMUONGeometryConstituent(const TString& name,
32 Int_t copyNo, Int_t npar, Double_t* param)
38 // fTransformation = new TGeoCombiTrans(name);
39 // would be nice to be so simple
41 // Create the constituent transformation
42 fTransformation = new TGeoCombiTrans("");
46 fParam = new Double_t[npar];
47 for (Int_t i=0; i<npar; i++) fParam[i] = param[i];
51 //______________________________________________________________________________
52 AliMUONGeometryConstituent::AliMUONGeometryConstituent(const TString& name,
53 Int_t copyNo, const TGeoTranslation& translation,
54 Int_t npar, Double_t* param)
61 // Create the constituent transformation
62 fTransformation = new TGeoCombiTrans(translation, TGeoRotation());
66 fParam = new Double_t[npar];
67 for (Int_t i=0; i<npar; i++) fParam[i] = param[i];
72 //______________________________________________________________________________
73 AliMUONGeometryConstituent::AliMUONGeometryConstituent(const TString& name,
74 Int_t copyNo, const TGeoTranslation& translation,
75 const TGeoRotation& rotation,
76 Int_t npar, Double_t* param)
84 // Create the constituent transformation
85 fTransformation = new TGeoCombiTrans(translation, rotation);
89 fParam = new Double_t[npar];
90 for (Int_t i=0; i<npar; i++) fParam[i] = param[i];
94 //______________________________________________________________________________
95 AliMUONGeometryConstituent::AliMUONGeometryConstituent()
102 // Default constructor
106 //______________________________________________________________________________
107 AliMUONGeometryConstituent::AliMUONGeometryConstituent(
108 const AliMUONGeometryConstituent& rhs)
111 Fatal("Copy constructor",
112 "Copy constructor is not implemented.");
115 //______________________________________________________________________________
116 AliMUONGeometryConstituent::~AliMUONGeometryConstituent()
119 delete fTransformation;
123 //______________________________________________________________________________
124 AliMUONGeometryConstituent&
125 AliMUONGeometryConstituent::operator = (const AliMUONGeometryConstituent& rhs)
127 // check assignement to self
128 if (this == &rhs) return *this;
131 "Assignment operator is not implemented.");