+// $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
+
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
+ * full copyright notice. *
+ **************************************************************************/
#ifndef ALIEVE_MUONChamber_H
#define ALIEVE_MUONChamber_H
#include <TAtt3D.h>
#include <TAttBBox.h>
-namespace Alieve {
-class MUONData;
-class MUONChamberData;
-class MUONChamberEditor;
-class MUONChamberGL;
+class AliEveMUONData;
+class AliEveMUONChamberData;
+class AliEveMUONChamberEditor;
+class AliEveMUONChamberGL;
-class MUONChamber : public TEveElement,
+class AliEveMUONChamber : public TEveElement,
public TNamed,
public TAtt3D,
public TAttBBox
{
- friend class MUONChamberGL;
- friend class MUONChamberEditor;
+ friend class AliEveMUONChamberGL;
+ friend class AliEveMUONChamberEditor;
- MUONChamber(const MUONChamber&); // Not implemented
- MUONChamber& operator=(const MUONChamber&); // Not implemented
+ AliEveMUONChamber(const AliEveMUONChamber&); // Not implemented
+ AliEveMUONChamber& operator=(const AliEveMUONChamber&); // Not implemented
protected:
void UpdateQuads();
- MUONData* fMUONData; // data for the current event
+ AliEveMUONData* fMUONData; // data for the current event
Color_t fFrameColor; // main coloring
UInt_t fRTS; //! Rendering Time Stamp
Int_t fChamberID; // number of the chamber, 0 to 13
public:
- MUONChamber(Int_t id, const Text_t* n = "MUONChamber", const Text_t* t = 0);
- virtual ~MUONChamber();
+ AliEveMUONChamber(Int_t id, const Text_t* n = "AliEveMUONChamber", const Text_t* t = 0);
+ virtual ~AliEveMUONChamber();
virtual void ComputeBBox();
virtual void Paint(Option_t* option = "");
virtual UInt_t IncRTS() { return ++fRTS; };
virtual Bool_t CanEditMainColor() { return kTRUE; }
- void SetDataSource(MUONData *data);
+ void SetDataSource(AliEveMUONData *data);
void SetChamberID(Int_t id);
void SetFrameColor(Color_t col) { fFrameColor = col; IncRTS(); };
- MUONData* GetData() const { return fMUONData; };
- MUONChamberData* GetChamberData() const;
+ AliEveMUONData* GetData() const { return fMUONData; };
+ AliEveMUONChamberData* GetChamberData() const;
Int_t GetID() const { return fChamberID; };
void SetThreshold(Short_t t);
void SetMaxVal(Int_t mv);
void SetClusterSize(Int_t size);
void SetHitSize(Int_t size);
- ClassDef(MUONChamber,1); // Visualisation of the MUON chambers
+ ClassDef(AliEveMUONChamber,1); // Visualisation of the MUON chambers
};
-inline UChar_t* MUONChamber::ColorFromArray(Int_t val) const
+inline UChar_t* AliEveMUONChamber::ColorFromArray(Int_t val) const
{
if(val < fThreshold) val = fThreshold;
if(val > fMaxVal) val = fMaxVal;
return fColorArray + 4 * (val - fThreshold);
}
-inline void MUONChamber::ColorFromArray(Int_t val, UChar_t* pix) const
+inline void AliEveMUONChamber::ColorFromArray(Int_t val, UChar_t* pix) const
{
UChar_t* c = ColorFromArray(val);
pix[0] = c[0]; pix[1] = c[1]; pix[2] = c[2]; pix[3] = c[3];
}
-}
-
#endif