3 // Class AliMUONGeometryConstituent
4 // -----------------------------
5 // Helper class for definititon of an assembly of volumes.
6 // Author: Ivana Hrivnacova, IPN Orsay
9 #include <TGeoMatrix.h>
11 #include "AliMUONGeometryConstituent.h"
13 ClassImp(AliMUONGeometryConstituent)
15 //______________________________________________________________________________
16 AliMUONGeometryConstituent::AliMUONGeometryConstituent(const TString& name,
17 Int_t copyNo, Int_t npar, Double_t* param)
23 // fTransformation = new TGeoCombiTrans(name);
24 // would be nice to be so simple
26 // Create the constituent transformation
27 fTransformation = new TGeoCombiTrans("");
31 fParam = new Double_t[npar];
32 for (Int_t i=0; i<npar; i++) fParam[i] = param[i];
36 //______________________________________________________________________________
37 AliMUONGeometryConstituent::AliMUONGeometryConstituent(const TString& name,
38 Int_t copyNo, const TGeoTranslation& translation,
39 Int_t npar, Double_t* param)
46 // Create the constituent transformation
47 fTransformation = new TGeoCombiTrans(translation, TGeoRotation());
51 fParam = new Double_t[npar];
52 for (Int_t i=0; i<npar; i++) fParam[i] = param[i];
57 //______________________________________________________________________________
58 AliMUONGeometryConstituent::AliMUONGeometryConstituent(const TString& name,
59 Int_t copyNo, const TGeoTranslation& translation,
60 const TGeoRotation& rotation,
61 Int_t npar, Double_t* param)
69 // Create the constituent transformation
70 fTransformation = new TGeoCombiTrans(translation, rotation);
74 fParam = new Double_t[npar];
75 for (Int_t i=0; i<npar; i++) fParam[i] = param[i];
79 //______________________________________________________________________________
80 AliMUONGeometryConstituent::AliMUONGeometryConstituent()
87 // Default constructor
91 //______________________________________________________________________________
92 AliMUONGeometryConstituent::AliMUONGeometryConstituent(
93 const AliMUONGeometryConstituent& rhs)
96 Fatal("Copy constructor",
97 "Copy constructor is not implemented.");
100 //______________________________________________________________________________
101 AliMUONGeometryConstituent::~AliMUONGeometryConstituent()
104 delete fTransformation;
108 //______________________________________________________________________________
109 AliMUONGeometryConstituent&
110 AliMUONGeometryConstituent::operator = (const AliMUONGeometryConstituent& rhs)
112 // check assignement to self
113 if (this == &rhs) return *this;
116 "Assignment operator is not implemented.");