From 8200d6b43e99677032b1d208b988350c92e4808e Mon Sep 17 00:00:00 2001 From: ivana Date: Tue, 30 Aug 2005 12:40:05 +0000 Subject: [PATCH] Removed unused class (replaced with AliMUONGeometryModule) (Ivana) --- MUON/AliMUONChamberGeometry.cxx | 199 -------------------------------- MUON/AliMUONChamberGeometry.h | 105 ----------------- 2 files changed, 304 deletions(-) delete mode 100644 MUON/AliMUONChamberGeometry.cxx delete mode 100644 MUON/AliMUONChamberGeometry.h diff --git a/MUON/AliMUONChamberGeometry.cxx b/MUON/AliMUONChamberGeometry.cxx deleted file mode 100644 index 1690c009722..00000000000 --- a/MUON/AliMUONChamberGeometry.cxx +++ /dev/null @@ -1,199 +0,0 @@ -// $Id$ -// -// Class AliMUONChamberGeometry -// ----------------------------- -// Class for definititon of the MUON chamber positions in ALIC -// Author: Ivana Hrivnacova, IPN Orsay -// 23/01/2004 - -#include -#include -#include -#include -#include - -#include "AliMUONChamberGeometry.h" -#include "AliMUONGeometryEnvelope.h" -#include "AliMUONGeometryEnvelopeStore.h" -#include "AliMUONGeometryTransformStore.h" -#include "AliMUONConstants.h" -#include "AliLog.h" - -ClassImp(AliMUONChamberGeometry) - -//______________________________________________________________________________ -AliMUONChamberGeometry::AliMUONChamberGeometry(Int_t chamberId) - : TObject(), - fChamberId(chamberId), - fMotherVolume("ALIC"), - fNofSVs(0), - fSVVolumeIds(0), - fTransformation(0), - fDETransforms(0), - fEnvelopes(0), - fSVMap(0) -{ -// Standard constructor - - // Chamber transformation - fTransformation = new TGeoCombiTrans(""); - - // Arrays of volumes Ids - fSVVolumeIds = new TArrayI(20); - - // Sensitive volumes map - fSVMap = new AliMUONGeometrySVMap(100); - - // Det elements transformation store - fDETransforms = new AliMUONGeometryTransformStore( - AliMUONConstants::GetFirstDetElemId(chamberId), - AliMUONConstants::NofDetElements(chamberId), - fSVMap); - // Envelope store - fEnvelopes = new AliMUONGeometryEnvelopeStore(fDETransforms); -} - - -//______________________________________________________________________________ -AliMUONChamberGeometry::AliMUONChamberGeometry() - : TObject(), - fChamberId(0), - fMotherVolume(), - fNofSVs(0), - fSVVolumeIds(0), - fTransformation(0), - fDETransforms(0), - fEnvelopes(0), - fSVMap(0) -{ -// Default constructor -} - - -//______________________________________________________________________________ -AliMUONChamberGeometry::AliMUONChamberGeometry(const AliMUONChamberGeometry& rhs) - : TObject(rhs) -{ - AliFatal("Copy constructor is not implemented."); -} - -//______________________________________________________________________________ -AliMUONChamberGeometry::~AliMUONChamberGeometry() { -// - - delete fTransformation; - delete fSVVolumeIds; - delete fEnvelopes; - delete fDETransforms; - delete fSVMap; -} - -//______________________________________________________________________________ -AliMUONChamberGeometry& -AliMUONChamberGeometry::operator = (const AliMUONChamberGeometry& rhs) -{ - // check assignement to self - if (this == &rhs) return *this; - - AliFatal("Assignment operator is not implemented."); - - return *this; -} - -// -// private methods -// - -//______________________________________________________________________________ -Int_t AliMUONChamberGeometry::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). - - for (Int_t i=0; iAt(i) == svVolId) return i; - } - return -1; -} - -// -// public methods -// - -//______________________________________________________________________________ -void AliMUONChamberGeometry::SetTranslation(const TGeoTranslation& translation) -{ -// Sets the chamber position wrt ALIC. -// --- - - fTransformation - ->SetTranslation(const_cast(translation.GetTranslation())); -} - -//______________________________________________________________________________ -void AliMUONChamberGeometry::SetRotation(const TGeoRotation& rotation) -{ -// Sets the chamber rotation wrt ALIC. -// --- - - TGeoRotation* rot = new TGeoRotation(); - rot->SetMatrix(const_cast(rotation.GetRotationMatrix())); - - fTransformation->SetRotation(rot); -} - -//______________________________________________________________________________ -void AliMUONChamberGeometry::SetSensitiveVolume(Int_t svVolId) -{ -// Adds the volume specified by volId to the list of sensitive -// volumes -// --- - - // Resize TArrayI if needed - if (fSVVolumeIds->GetSize() == fNofSVs) fSVVolumeIds->Set(2*fNofSVs); - - fSVVolumeIds->AddAt(svVolId, fNofSVs++); -} - -//______________________________________________________________________________ -void AliMUONChamberGeometry::SetSensitiveVolume(const TString& volName) -{ -// Adds the volume specified by volName to the list of sensitive -// volumes -// --- - - SetSensitiveVolume(gMC->VolId(volName)); -} - -//______________________________________________________________________________ -void AliMUONChamberGeometry::SetAlign(Bool_t align) -{ -// Sets alignement option to enevelope store. -// --- - - fEnvelopes->SetAlign(align); -} - -//______________________________________________________________________________ -Bool_t AliMUONChamberGeometry::IsSensitiveVolume(Int_t volId) const -{ -// Checks if the volume specified by volId is present in the list -// of sensitive volumes. -// --- - - for (Int_t i=0; iAt(i) == volId) return kTRUE; - } - return kFALSE; -} - -//______________________________________________________________________________ -Bool_t AliMUONChamberGeometry::IsSensitiveVolume(const TString& volName) const -{ -// Checks if the volume specified by volName is present in the list -// of sensitive volumes. -// --- - - return IsSensitiveVolume(gMC->VolId(volName)); -} diff --git a/MUON/AliMUONChamberGeometry.h b/MUON/AliMUONChamberGeometry.h deleted file mode 100644 index cec55c57214..00000000000 --- a/MUON/AliMUONChamberGeometry.h +++ /dev/null @@ -1,105 +0,0 @@ -/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * - * See cxx source for full Copyright notice */ - -/* $Id$ */ -// Revision of includes 07/05/2004 - -// -// Class AliMUONChamberGeometry -// ----------------------------- -// Class for definititon of the MUON chamber positions in ALIC. -// -// Author: Ivana Hrivnacova, IPN Orsay - -#ifndef ALI_MUON_CHAMBER_GEOMETRY_H -#define ALI_MUON_CHAMBER_GEOMETRY_H - -#include -#include - -class TGeoTranslation; -class TGeoRotation; -class TGeoCombiTrans; -class TObjArray; -class TArrayI; - -class AliMUONChamber; -class AliMUONGeometryEnvelope; -class AliMUONGeometryEnvelopeStore; -class AliMUONGeometryTransformStore; -class AliMUONGeometrySVMap; - -class AliMUONChamberGeometry : public TObject -{ - public: - AliMUONChamberGeometry(Int_t chamberId); - AliMUONChamberGeometry(); - virtual ~AliMUONChamberGeometry(); - - // methods - void SetMotherVolume(const TString& motherVolumeName); - void SetTranslation(const TGeoTranslation& translation); - void SetRotation(const TGeoRotation& rotation); - - void SetSensitiveVolume(Int_t volId); - void SetSensitiveVolume(const TString& name); - void SetAlign(Bool_t align); - - // get methods - TString GetMotherVolume() const; - const TGeoCombiTrans* GetTransformation() const; - AliMUONGeometryEnvelopeStore* GetEnvelopeStore() const; - AliMUONGeometryTransformStore* GetTransformStore() const; - AliMUONGeometrySVMap* GetSVMap() const; - Bool_t IsSensitiveVolume(Int_t volId) const; - Bool_t IsSensitiveVolume(const TString& volName) const; -// -//Int_t GetDEVolId(Int_t svVolId) const; - - protected: - AliMUONChamberGeometry(const AliMUONChamberGeometry& rhs); - // operators - AliMUONChamberGeometry& operator = (const AliMUONChamberGeometry& rhs); - - private: - // methods - Int_t GetSVIndex(Int_t svVolId) const; - - // data members - Int_t fChamberId; // the chamber Id - TString fMotherVolume; // mother volume name - Int_t fNofSVs; // number of sensitive volumes - TArrayI* fSVVolumeIds; // densitive volumes IDs - TGeoCombiTrans* fTransformation;// the chamber transformation wrt to mother - // volume - AliMUONGeometryTransformStore* fDETransforms; // det elements transformations - AliMUONGeometryEnvelopeStore* fEnvelopes; // envelopes - AliMUONGeometrySVMap* fSVMap; // sensitive volumes map - - ClassDef(AliMUONChamberGeometry,2) // MUON chamber geometry base class -}; - -// inline functions - -inline void -AliMUONChamberGeometry::SetMotherVolume(const TString& motherVolumeName) -{ fMotherVolume = motherVolumeName; } - -inline TString AliMUONChamberGeometry::GetMotherVolume() const -{ return fMotherVolume; } - -inline const TGeoCombiTrans* AliMUONChamberGeometry::GetTransformation() const -{ return fTransformation; } - -inline AliMUONGeometryEnvelopeStore* -AliMUONChamberGeometry::GetEnvelopeStore() const -{ return fEnvelopes; } - -inline AliMUONGeometryTransformStore* -AliMUONChamberGeometry::GetTransformStore() const -{ return fDETransforms; } - -inline AliMUONGeometrySVMap* AliMUONChamberGeometry::GetSVMap() const -{ return fSVMap; } - -#endif //ALI_MUON_CHAMBER_GEOMETRY_H -- 2.31.1