]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpTrigger.cxx
Fixing Doxygen warnings
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpTrigger.cxx
index 40473a990d271c40ff424ab20d1162c8ac85bafc..899ef03ce8404b2b6e42973a3562341b03db4a98 100644 (file)
@@ -26,7 +26,7 @@
 #include "TArrayI.h"
 #include "TObjArray.h"
 
-//
+//-----------------------------------------------------------------------------
 /// \class AliMpTrigger
 /// 
 /// A trigger 'slat' object. 
@@ -37,6 +37,7 @@
 /// "locations".
 ///
 /// \author Laurent Aphecetche
+//-----------------------------------------------------------------------------
 
 /// \cond CLASSIMP
 ClassImp(AliMpTrigger)
@@ -73,7 +74,7 @@ AliMpTrigger::AliMpTrigger()
   fDX(0), 
   fDY(0)
 {
-  // default ctor
+  /// default ctor
 
   AliDebugStream(1) << "this = " << this << endl;
 
@@ -92,7 +93,7 @@ AliMpTrigger::AliMpTrigger(const char* slatType, AliMp::PlaneType bendingOrNot)
        fDX(0), 
        fDY(0)
 {
-  // normal ctor
+  /// normal ctor
 
   AliDebugStream(1) << "this = " << this << endl;
 
@@ -103,7 +104,7 @@ AliMpTrigger::AliMpTrigger(const char* slatType, AliMp::PlaneType bendingOrNot)
 //_____________________________________________________________________________
 AliMpTrigger::~AliMpTrigger()
 {
-  // dtor
+  /// dtor
   AliDebugStream(1) << "this = " << this << endl;
 
   fSlatSegmentations.Delete();
@@ -113,8 +114,8 @@ AliMpTrigger::~AliMpTrigger()
 Bool_t
 AliMpTrigger::AdoptLayer(AliMpSlat* slat)
 {
-  // Adopt (i.e. we become owner of that pointer) a slat, as 
-  // a layer of this trigger slat.
+  /// Adopt (i.e. we become owner of that pointer) a slat, as 
+  /// a layer of this trigger slat.
 
   AliDebug(2,Form("%s is adopting %s ",
                   GetID(),slat->GetID()));
@@ -137,25 +138,17 @@ AliMpTrigger::AdoptLayer(AliMpSlat* slat)
   // the slat segmentation will be the owner of the slat, and will delete
   // it when it'll be deleted itself
   fSlatSegmentations.Add(new AliMpSlatSegmentation(slat,owner));
-  fMaxNofPadsY = std::max(slat->GetMaxNofPadsY(),fMaxNofPadsY);
-  fDX = std::max(fDX,slat->DX());
-  fDY = std::max(fDY,slat->DY());
+  fMaxNofPadsY = TMath::Max(slat->GetMaxNofPadsY(),fMaxNofPadsY);
+  fDX = TMath::Max(fDX,slat->DX());
+  fDY = TMath::Max(fDY,slat->DY());
   return kTRUE;
 }
 
-//_____________________________________________________________________________
-TVector2
-AliMpTrigger::Dimensions() const
-{
-  // Returns the dimensions (half-sizes) of that slat (cm)
-  return TVector2(DX(),DY());
-}
-
 //_____________________________________________________________________________
 Double_t
 AliMpTrigger::DX() const
 {
-  // Returns the half-size in X (cm)
+  /// Returns the half-size in X (cm)
   return fDX;
 }
 
@@ -163,7 +156,7 @@ AliMpTrigger::DX() const
 Double_t
 AliMpTrigger::DY() const
 {
-  // Returns the half-size in Y (cm)
+  /// Returns the half-size in Y (cm)
   return fDY;
 }
 
@@ -171,7 +164,7 @@ AliMpTrigger::DY() const
 void 
 AliMpTrigger::GetAllLocalBoardNumbers(TArrayI& lbn) const
 {
-  // Fills lbn with the local board numbers we're dealing with
+  /// Fills lbn with the local board numbers we're dealing with
   Int_t n(0);
   for ( Int_t i = 0; i < GetSize(); ++i )
   {
@@ -198,7 +191,7 @@ AliMpTrigger::GetAllLocalBoardNumbers(TArrayI& lbn) const
 const char*
 AliMpTrigger::GetID() const
 {
-  // returns the id of this slat
+  /// returns the id of this slat
   return fId.Data();
 }
 
@@ -206,7 +199,7 @@ AliMpTrigger::GetID() const
 const char*
 AliMpTrigger::GetName() const
 {
-  // returns the name (=id+bending/non-bending) of this slat
+  /// returns the name (=id+bending/non-bending) of this slat
   TString name(GetID());
   if ( fPlaneType == AliMp::kBendingPlane )
   {
@@ -227,7 +220,7 @@ AliMpTrigger::GetName() const
 AliMpSlat*
 AliMpTrigger::GetLayer(int layer) const
 {
-  // Returns a given layer
+  /// Returns a given layer
   if ( IsLayerValid(layer) )
   {
     return (AliMpSlat*)fSlats.At(layer);
@@ -239,7 +232,7 @@ AliMpTrigger::GetLayer(int layer) const
 AliMpVSegmentation*
 AliMpTrigger::GetLayerSegmentation(int layer) const
 {
-  // Returns a given layer
+  /// Returns a given layer
   if ( IsLayerValid(layer) )
   {
     return (AliMpSlatSegmentation*)fSlatSegmentations.At(layer);
@@ -251,7 +244,7 @@ AliMpTrigger::GetLayerSegmentation(int layer) const
 Int_t
 AliMpTrigger::GetNofPadsX() const
 {
-  // Returns the number of pad in x direction
+  /// Returns the number of pad in x direction
   if ( !GetSize() ) return -1;
   if ( GetLayer(0) )
   {
@@ -264,7 +257,7 @@ AliMpTrigger::GetNofPadsX() const
 Int_t
 AliMpTrigger::GetMaxNofPadsY() const
 {
-  // Maximum number of pads in y direction
+  /// Maximum number of pads in y direction
   return fMaxNofPadsY;
 }
 
@@ -272,7 +265,7 @@ AliMpTrigger::GetMaxNofPadsY() const
 Int_t
 AliMpTrigger::GetSize() const
 {
-  // Number of layers
+  /// Number of layers
   return fSlats.GetEntriesFast();
 }
 
@@ -280,7 +273,7 @@ AliMpTrigger::GetSize() const
 Bool_t
 AliMpTrigger::IsLayerValid(int layer) const
 {
-  // Whether a given layer index is valid or not
+  /// Whether a given layer index is valid or not
   if ( layer >= 0 && layer < GetSize() )
   {
     return kTRUE;
@@ -292,23 +285,15 @@ AliMpTrigger::IsLayerValid(int layer) const
 AliMp::PlaneType
 AliMpTrigger::PlaneType() const
 {
-  // Bending or not
+  /// Bending or not
   return fPlaneType;
 }
 
-//_____________________________________________________________________________
-TVector2
-AliMpTrigger::Position() const
-{
-  // Slat position (cm)
-  return TVector2(DX(),DY());
-}
-
 //_____________________________________________________________________________
 void
 AliMpTrigger::Print(Option_t* opt) const
 {
-  // Dump on screen
+  /// Dump on screen
   cout << "AliMpTrigger::" << GetID();
   if ( GetSize() == 0 )
   {