AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONGeometryConstituent.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // $Id$
5 // Revision of includes 07/05/2004
6 //
12 
13 #ifndef ALI_MUON_GEOMETRY_CONSTITUENT_H
14 #define ALI_MUON_GEOMETRY_CONSTITUENT_H
15 
16 #include <TNamed.h>
17 
18 class TGeoTranslation;
19 class TGeoRotation;
20 class TGeoCombiTrans;
21 class TObjArray;
22 
23 class AliMUONGeometryConstituent : public TNamed
24 {
25  public:
26  AliMUONGeometryConstituent(const TString& name, Int_t copyNo,
27  Int_t npar, Double_t* param);
28  AliMUONGeometryConstituent(const TString& name, Int_t copyNo,
29  const TGeoTranslation& translation,
30  Int_t npar, Double_t* param);
31  AliMUONGeometryConstituent(const TString& name, Int_t copyNo,
32  const TGeoTranslation& translation,
33  const TGeoRotation& rotation,
34  Int_t npar, Double_t* param);
35  AliMUONGeometryConstituent(const TString& name, Int_t copyNo,
36  const TGeoCombiTrans& transform,
37  Int_t npar, Double_t* param);
40 
41  // get methods
42  Int_t GetCopyNo() const;
43  Int_t GetNpar() const;
44  Double_t* GetParam() const;
45  const TGeoCombiTrans* GetTransformation() const;
46 
47  protected:
52 
53  private:
54  Int_t fCopyNo;
55  Int_t fNpar;
56 
58  Double_t* fParam; //[fNpar] shape parameters
59 
60  TGeoCombiTrans* fTransformation;
61 
63  ClassDef(AliMUONGeometryConstituent,1) // MUON chamber geometry base class
64 };
65 
66 // inline functions
67 
70 { return fCopyNo; }
71 
74 { return fNpar; }
75 
77 inline Double_t* AliMUONGeometryConstituent::GetParam() const
78 { return fParam; }
79 
81 inline const TGeoCombiTrans* AliMUONGeometryConstituent::GetTransformation() const
82 { return fTransformation; }
83 
84 #endif //ALI_MUON_GEOMETRY_CONSTITUENT_H
Int_t fNpar
number of shape parameters
Int_t GetNpar() const
Return number of shape parameters.
#define TObjArray
Double_t * fParam
shape parameters
AliMUONGeometryConstituent & operator=(const AliMUONGeometryConstituent &rhs)
Not implemented.
Double_t * GetParam() const
Return the array of shape parameters.
Int_t GetCopyNo() const
Return copy number.
TGeoCombiTrans * fTransformation
the constituent transformation wrt to the envelope
Helper class for definititon of an assembly of volumes.
const TGeoCombiTrans * GetTransformation() const
Return the constituent transformation wrt to the envelope.