fTransformation(0),
fConstituents(0)
{
-// Standard constructor
+/// Standard constructor
if (TString(only) == TString("MANY")) fIsMANY = true;
fTransformation(0),
fConstituents(0)
{
-// Standard constructor
+/// Standard constructor for a non virtual enevelope with a specified copy
+/// number
if (TString(only) == TString("MANY")) fIsMANY = true;
fTransformation(0),
fConstituents(0)
{
-// Default constructor
+/// Default constructor
}
const AliMUONGeometryEnvelope& rhs)
: TNamed(rhs)
{
+/// Protected copy constructor
+
AliFatal("Copy constructor is not implemented.");
}
//______________________________________________________________________________
AliMUONGeometryEnvelope::~AliMUONGeometryEnvelope()
{
-//
+/// Destructor
+
// Add deleting rotation matrices
delete fTransformation;
AliMUONGeometryEnvelope&
AliMUONGeometryEnvelope::operator = (const AliMUONGeometryEnvelope& rhs)
{
+/// Protected assignement operator
+
// check assignement to self
if (this == &rhs) return *this;
//______________________________________________________________________________
void AliMUONGeometryEnvelope::AddConstituent(const TString& name, Int_t copyNo)
{
-// Adds the volume with the specified name and transformation
-// to the list of envelopes.
-// ---
+/// Add the volume with the specified name and transformation
+/// to the list of envelopes.
fConstituents->Add(new AliMUONGeometryConstituent(name, copyNo, 0, 0));
}
void AliMUONGeometryEnvelope::AddConstituent(const TString& name, Int_t copyNo,
const TGeoTranslation& translation)
{
-// Adds the volume with the specified name and transformation
-// to the list of envelopes.
-// ---
+/// Add the volume with the specified name and transformation
+/// to the list of envelopes.
fConstituents
->Add(new AliMUONGeometryConstituent(name, copyNo, translation, 0, 0));
const TGeoTranslation& translation,
const TGeoRotation& rotation)
{
-// Adds the volume with the specified name and transformation
-// to the list of envelopes.
-// ---
+/// Add the volume with the specified name and transformation
+/// to the list of envelopes.
fConstituents
->Add(new AliMUONGeometryConstituent(
void AliMUONGeometryEnvelope::AddConstituent(const TString& name, Int_t copyNo,
const TGeoCombiTrans& transform )
{
-// Adds the volume with the specified name and transformation
-// to the list of envelopes.
-// ---
+/// Add the volume with the specified name and transformation
+/// to the list of envelopes.
fConstituents
->Add(new AliMUONGeometryConstituent(
void AliMUONGeometryEnvelope::AddConstituentParam(const TString& name,
Int_t copyNo, Int_t npar, Double_t* param)
{
-// Adds the volume with the specified name and transformation
-// to the list of envelopes.
-// ---
+/// Add the volume with the specified name and transformation
+/// to the list of envelopes.
fConstituents
->Add(new AliMUONGeometryConstituent(name, copyNo, npar, param));
Int_t copyNo, const TGeoTranslation& translation,
Int_t npar, Double_t* param)
{
-// Adds the volume with the specified name and transformation
-// to the list of envelopes.
-// ---
+/// Add the volume with the specified name and transformation
+/// to the list of envelopes.
fConstituents
->Add(new AliMUONGeometryConstituent(
const TGeoRotation& rotation,
Int_t npar, Double_t* param)
{
-// Adds the volume with the specified name and transformation
-// to the list of envelopes.
-// ---
+/// Add the volume with the specified name and transformation
+/// to the list of envelopes.
fConstituents
->Add(new AliMUONGeometryConstituent(
const TGeoCombiTrans& transform,
Int_t npar, Double_t* param)
{
-// Adds the volume with the specified name and transformation
-// to the list of envelopes.
-// ---
+/// Add the volume with the specified name and transformation
+/// to the list of envelopes.
fConstituents
->Add(new AliMUONGeometryConstituent(
//______________________________________________________________________________
void AliMUONGeometryEnvelope::SetTranslation(const TGeoTranslation& translation)
{
-// Sets the envelope position
-// ---
+/// Set the envelope position
fTransformation
->SetTranslation(const_cast<Double_t*>(translation.GetTranslation()));
//______________________________________________________________________________
void AliMUONGeometryEnvelope::SetRotation(const TGeoRotation& rotation)
{
-// Sets the enevlope rotation
-// ---
+/// Set the enevlope rotation
TGeoRotation* rot = new TGeoRotation();
rot->SetMatrix(const_cast<Double_t*>(rotation.GetRotationMatrix()));