fDetElements(0),
fSVMap(0)
{
-// Standard constructor
+/// Standard constructor
// Chamber transformation
fTransformation = new TGeoCombiTrans("");
fDetElements(0),
fSVMap(0)
{
-// Default constructor
+/// Default constructor
}
AliMUONGeometryModule::AliMUONGeometryModule(const AliMUONGeometryModule& rhs)
: TObject(rhs)
{
+/// Protected copy constructor
+
AliFatal("Copy constructor is not implemented.");
}
//______________________________________________________________________________
-AliMUONGeometryModule::~AliMUONGeometryModule() {
-//
+AliMUONGeometryModule::~AliMUONGeometryModule()
+{
+/// Destructor
delete fTransformation;
delete fSVVolumeIds;
AliMUONGeometryModule&
AliMUONGeometryModule::operator = (const AliMUONGeometryModule& rhs)
{
+/// Protected assignement operator
+
// check assignement to self
if (this == &rhs) return *this;
//______________________________________________________________________________
Int_t AliMUONGeometryModule::GetSVIndex(Int_t svVolId) const
{
-// Returns the index of the volume specified by volId
-// if it is present in the list of sensitive volumes
-// (or -1 if not present).
+/// Return the index of the volume specified by volId
+/// if it is present in the list of sensitive volumes
+/// (or -1 if not present).
for (Int_t i=0; i<fNofSVs; i++) {
if (fSVVolumeIds->At(i) == svVolId) return i;
Float_t xg, Float_t yg, Float_t zg,
Float_t& xl, Float_t& yl, Float_t& zl) const
{
-// Transforms point from the global reference frame (ALIC)
-// to the local reference frame of the detection element specified
-// by detElemId.
-// ---
+/// Transform point from the global reference frame (ALIC)
+/// to the local reference frame of the detection element specified
+/// by detElemId.
// Get detection element
AliMUONGeometryDetElement* detElement = GetDetElement(detElemId);
Double_t xg, Double_t yg, Double_t zg,
Double_t& xl, Double_t& yl, Double_t& zl) const
{
-// Transforms point from the global reference frame (ALIC)
-// to the local reference frame of the detection element specified
-// by detElemId.
-// ---
+/// Transform point from the global reference frame (ALIC)
+/// to the local reference frame of the detection element specified
+/// by detElemId.
// Get detection element
AliMUONGeometryDetElement* detElement = GetDetElement(detElemId);
Float_t xl, Float_t yl, Float_t zl,
Float_t& xg, Float_t& yg, Float_t& zg) const
{
-// Transforms point from the local reference frame of the detection element
-// specified by detElemId to the global reference frame (ALIC).
-// ---
+/// Transform point from the local reference frame of the detection element
+/// specified by detElemId to the global reference frame (ALIC).
// Get detection element
AliMUONGeometryDetElement* detElement = GetDetElement(detElemId);
Double_t xl, Double_t yl, Double_t zl,
Double_t& xg, Double_t& yg, Double_t& zg) const
{
-// Transforms point from the local reference frame of the detection element
-// specified by detElemId to the global reference frame (ALIC).
-// ---
+/// Transform point from the local reference frame of the detection element
+/// specified by detElemId to the global reference frame (ALIC).
// Get detection element
AliMUONGeometryDetElement* detElement = GetDetElement(detElemId);
//______________________________________________________________________________
void AliMUONGeometryModule::SetVolume(const TString& volumeName)
{
-// Sets the concrete volume associated with this module.
-// The module in not virtual in this case
+/// Set the concrete volume associated with this module.
+/// The module in not virtual in this case
fVolume = volumeName;
fIsVirtual = false;
//______________________________________________________________________________
void AliMUONGeometryModule::SetTranslation(const TGeoTranslation& translation)
{
-// Sets the module position wrt world.
-// ---
+/// Set the module position wrt world.
fTransformation
->SetTranslation(const_cast<Double_t*>(translation.GetTranslation()));
//______________________________________________________________________________
void AliMUONGeometryModule::SetRotation(const TGeoRotation& rotation)
{
-// Sets the module rotation wrt ALIC.
-// ---
+/// Set the module rotation wrt ALIC.
TGeoRotation* rot = new TGeoRotation();
rot->SetMatrix(const_cast<Double_t*>(rotation.GetRotationMatrix()));
//______________________________________________________________________________
void AliMUONGeometryModule::SetSensitiveVolume(Int_t svVolId)
{
-// Adds the volume specified by volId to the list of sensitive
-// volumes
-// ---
+/// Add the volume specified by volId to the list of sensitive
+/// volumes
// Resize TArrayI if needed
if (fSVVolumeIds->GetSize() == fNofSVs) fSVVolumeIds->Set(2*fNofSVs);
//______________________________________________________________________________
void AliMUONGeometryModule::SetSensitiveVolume(const TString& volName)
{
-// Adds the volume specified by volName to the list of sensitive
-// volumes
-// ---
+/// Add the volume specified by volName to the list of sensitive
+/// volumes
SetSensitiveVolume(gMC->VolId(volName));
}
//______________________________________________________________________________
void AliMUONGeometryModule::SetAlign(Bool_t align)
{
-// Sets alignement option to enevelope store.
-// ---
+/// Set alignement option to enevelope store.
fEnvelopes->SetAlign(align);
}
AliMUONGeometryDetElement*
AliMUONGeometryModule::FindBySensitiveVolume(const TString& sensVolume) const
{
-// Finds TGeoCombiTrans for the detector element Id specified by aligned volume
-// ---
+/// Find TGeoCombiTrans for the detector element Id specified by aligned volume
Int_t detElemId = fSVMap->GetDetElemId(sensVolume);
//______________________________________________________________________________
Bool_t AliMUONGeometryModule::IsSensitiveVolume(Int_t volId) const
{
-// Checks if the volume specified by volId is present in the list
-// of sensitive volumes.
-// ---
+/// Check if the volume specified by volId is present in the list
+/// of sensitive volumes.
for (Int_t i=0; i<fNofSVs; i++) {
if (fSVVolumeIds->At(i) == volId) return kTRUE;
//______________________________________________________________________________
Bool_t AliMUONGeometryModule::IsSensitiveVolume(const TString& volName) const
{
-// Checks if the volume specified by volName is present in the list
-// of sensitive volumes.
-// ---
+/// Check if the volume specified by volName is present in the list
+/// of sensitive volumes.
return IsSensitiveVolume(gMC->VolId(volName));
}
AliMUONGeometryDetElement*
AliMUONGeometryModule::GetDetElement(Int_t detElemId) const
{
-// Returns thethe detection element specified by detElemId.
-// Gives error if detection element is not defined.
-// ---
+/// Return the detection element specified by detElemId.
+/// Give error if detection element is not defined.
// Get detection element
AliMUONGeometryDetElement* detElement
return detElement;
}
-
-/*
-//______________________________________________________________________________
-Int_t AliMUONGeometryModule::GetNofDetElements() const
-{
-// Returns the number of detection elements
-// ---
-
- return fDEIndexing->GetNofDetElements();
-}
-
-//______________________________________________________________________________
-Int_t AliMUONGeometryModule::GetDetElemId(Int_t i) const
-{
-// Returns the i-th detection element id
-// ---
-
- return fDEIndexing->GetDetElementId(i);
-}
-*/