fPosition(),
fNofPads(0)
{
- //
- // Empty ctor.
- //
+ ///
+ /// Empty ctor.
+ ///
AliDebug(1,Form("this=%p Empty ctor",this));
#ifdef WITH_ROOT
fPCBs.SetOwner(kTRUE);
fPosition(),
fNofPads(0)
{
- //
- // Normal ctor
- //
+ ///
+ /// Normal ctor
+ ///
AliDebug(1,Form("this=%p id=%s",this,id));
#ifdef WITH_ROOT
fPCBs.SetOwner(kTRUE);
//_____________________________________________________________________________
AliMpSlat::~AliMpSlat()
{
- //
- // Dtor.
- //
+ ///
+ /// Dtor.
+ ///
AliDebug(1,Form("this=%p fId=%s",this,fId.Data()));
#ifdef WITH_ROOT
fPCBs.Delete();
void
AliMpSlat::Add(const AliMpPCB& pcbType, const TArrayI& manuList)
{
- //
- // Adds a PCB to this slat. The manuList specifies the ids of the manu
- // that compose the PCB. The manuList ordering is important, as the
- // assumption is that it's ordered counter-clockwise, starting from
- // the lower-left of the PCB.
- //
+ ///
+ /// Adds a PCB to this slat. The manuList specifies the ids of the manu
+ /// that compose the PCB. The manuList ordering is important, as the
+ /// assumption is that it's ordered counter-clockwise, starting from
+ /// the lower-left of the PCB.
+ ///
Int_t ixOffset = 0;
if ( GetSize() )
{
TVector2
AliMpSlat::Dimensions() const
{
- //
- // Returns the half-sizes of the slat.
- //
+ ///
+ /// Returns the half-sizes of the slat.
+ ///
return TVector2(DX(),DY());
}
Double_t
AliMpSlat::DX() const
{
- //
- // Returns the x-half-size of the slat.
- //
+ ///
+ /// Returns the x-half-size of the slat.
+ ///
return fDX;
}
Double_t
AliMpSlat::DY() const
{
- //
- // Returns the y-half-size of the slat.
- //
+ ///
+ /// Returns the y-half-size of the slat.
+ ///
return fDY;
}
AliMpMotifPosition*
AliMpSlat::FindMotifPosition(Int_t manuID) const
{
- //
- // Returns the motifPosition referenced by it manuID
- //
+ ///
+ /// Returns the motifPosition referenced by it manuID
+ ///
//#ifdef WITH_ROOT
return static_cast<AliMpMotifPosition*>(fManuMap.GetValue(manuID));
//#else
AliMpMotifPosition*
AliMpSlat::FindMotifPosition(Int_t ix, Int_t iy) const
{
- //
- // 1. Find the PCB containing ix (iy not needed for this)
- // 2. Forward the request to the PCB, using pcb local indices.
+ ///
+ /// - 1. Find the PCB containing ix (iy not needed for this)
+ /// - 2. Forward the request to the PCB, using pcb local indices.
//
const AliMpPCB* pcb = FindPCB(ix);
if ( pcb )
AliMpMotifPosition*
AliMpSlat::FindMotifPosition(Double_t x, Double_t y) const
{
- //
- // Returns the motifPosition containing position (x,y)
- //
+ ///
+ /// Returns the motifPosition containing position (x,y)
+ ///
const AliMpPCB* pcb = FindPCB(x,y);
if (pcb)
{
AliMpPCB*
AliMpSlat::FindPCB(Int_t ix) const
{
- //
- // Returns the PCB containing x-integer-position ix
- //
+ ///
+ /// Returns the PCB containing x-integer-position ix
+ ///
for ( Size_t i = 0; i < GetSize(); ++i )
{
AliMpPCB* pcb = GetPCB(i);
Int_t
AliMpSlat::FindPCBIndex(Int_t ix) const
{
- //
- // Returns the index of the PCB containing x-integer-position ix.
- //
+ ///
+ /// Returns the index of the PCB containing x-integer-position ix.
+ ///
for ( Size_t i = 0; i < GetSize(); ++i )
{
AliMpPCB* pcb = GetPCB(i);
AliMpPCB*
AliMpSlat::FindPCB(Double_t x, Double_t y) const
{
- //
- // Returns the PCB containing position (x,y)
- //
+ ///
+ /// Returns the PCB containing position (x,y)
+ ///
for ( Size_t i = 0; i < GetSize(); ++i )
{
AliMpPCB* pcb = GetPCB(i);
Int_t
AliMpSlat::FindPCBIndex(Double_t x, Double_t y) const
{
- //
- // Returns the index of the PCB containing position (x,y)
- //
+ ///
+ /// Returns the index of the PCB containing position (x,y)
+ ///
for ( Size_t i = 0; i < GetSize(); ++i )
{
AliMpPCB* pcb = GetPCB(i);
void
AliMpSlat::ForcePosition(const TVector2& pos)
{
- //
- // Force the position to be different from (DX(),DY()).
- // Normally only used by triggerSlats (for layers).
- // Beware that this method must be called once all PCB have been added,
- // as the Add() method resets the position.
- //
+ ///
+ /// Force the position to be different from (DX(),DY()).
+ /// Normally only used by triggerSlats (for layers).
+ /// Beware that this method must be called once all PCB have been added,
+ /// as the Add() method resets the position.
+ ///
fPosition = pos;
}
void
AliMpSlat::GetAllMotifPositionsIDs(TArrayI& ecn) const
{
- //
- // Return all the manuIds (=MotifPositionIDs) of this slat
- //
+ ///
+ /// Return all the manuIds (=MotifPositionIDs) of this slat
+ ///
ecn.Set(GetNofElectronicCards());
//#ifdef WITH_ROOT
TExMapIter it(fManuMap.GetIterator());
const char*
AliMpSlat::GetID() const
{
- //
- // Returns the name of this slat.
- //
+ ///
+ /// Returns the name of this slat.
+ ///
return fId.Data();
}
Int_t
AliMpSlat::GetMaxNofPadsY() const
{
- //
- // Returns the maximum number of pads to be found in this slat y-direction.
- //
+ ///
+ /// Returns the maximum number of pads to be found in this slat y-direction.
+ ///
return fMaxNofPadsY;
}
Int_t
AliMpSlat::GetMaxPadIndexX() const
{
- //
- // Returns the max ix that is valid for this slat.
- //
+ ///
+ /// Returns the max ix that is valid for this slat.
+ ///
AliMpPCB* last = GetPCB(GetSize()-1);
if (last)
{
const char*
AliMpSlat::GetName() const
{
- //
- // Returns the name of this slat, which is composed of its ID with
- // the plane type as a suffix.
- //
+ ///
+ /// Returns the name of this slat, which is composed of its ID with
+ /// the plane type as a suffix.
+ ///
TString name(GetID());
if ( fPlaneType == AliMp::kBendingPlane )
{
Int_t
AliMpSlat::GetNofElectronicCards() const
{
- //
- // Returns the number of manus that compose the readout of this slat.
- //
+ ///
+ /// Returns the number of manus that compose the readout of this slat.
+ ///
return fManuMap.GetSize();
}
Int_t
AliMpSlat::GetNofPadsX() const
{
- //
- // Returns the number of pad in x-direction.
- //
+ ///
+ /// Returns the number of pad in x-direction.
+ ///
return fNofPadsX;
}
AliMpPCB*
AliMpSlat::GetPCB(AliMpSlat::Size_t i) const
{
- //
- // Returns the i-th PCB of this slat.
- //
+ ///
+ /// Returns the i-th PCB of this slat.
+ ///
#ifdef WITH_ROOT
if ( i >= fPCBs.GetEntriesFast() ) return 0;
return (AliMpPCB*)fPCBs[i];
AliMpSlat::Size_t
AliMpSlat::GetSize() const
{
- //
- // Returns the number of PCB in this slat.
- //
+ ///
+ /// Returns the number of PCB in this slat.
+ ///
#ifdef WITH_ROOT
return fPCBs.GetEntriesFast();
#else
void
AliMpSlat::Print(Option_t* option) const
{
- //
- // Prints the slat characteristics.
- //
+ ///
+ /// Prints the slat characteristics.
+ ///
cout << "SLAT " << GetID() << " 1/2 DIM = (" << DX() << "," << DY() << ")"
<< " POS = " << Position().X() << "," << Position().Y()
<< " NPADSX = " << GetNofPadsX()