+++ /dev/null
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * *
- * Author: The ALICE Off-line Project. *
- * Contributors are mentioned in the code where appropriate. *
- * *
- * Permission to use, copy, modify and distribute this software and its *
- * documentation strictly for non-commercial purposes is hereby granted *
- * without fee, provided that the above copyright notice appears in all *
- * copies and that both the copyright notice and this permission notice *
- * appear in the supporting documentation. The authors make no claims *
- * about the suitability of this software for any purpose. It is *
- * provided "as is" without express or implied warranty. *
- **************************************************************************/
-
-/* $Id$ */
-
-//===================================================================
-// Segment element indexing in a detection element
-// Gines MARTINEZ, SUBATECH July 04
-// This class is the basic component of
-// AliMUONSegmentationDetectionElement and contains al the
-// info about a segment (pad or strip):
-// Id-indetectionelement, ix ,iy
-// Detailed information in Alice Technical Note xxxxxxxx (2004)
-//====================================================================
-
-#include <TString.h>
-
-#include "AliMUONSegmentIndex.h"
-#include "AliLog.h"
-
-//___________________________________________
-ClassImp(AliMUONSegmentIndex)
-
-//
-//___________________________________________
-AliMUONSegmentIndex::AliMUONSegmentIndex() : TNamed()
-{
- // Constructor by default
- fChannelId = 0;
- fPadX = 0;
- fPadY = 0;
- fCathode=0;
-}
-//___________________________________________
-AliMUONSegmentIndex::AliMUONSegmentIndex(Int_t channelId, Int_t padX, Int_t padY, Int_t cathode) : TNamed()
-{
- // Constructor to be used
- fName = Name(padX, padY, cathode).Data();
- fTitle = Name(padX, padY, cathode).Data();
- fChannelId = channelId;
- fPadX = padX;
- fPadY = padY;
- fCathode=cathode;
-}
-//_______________________________________________
-AliMUONSegmentIndex::~AliMUONSegmentIndex()
-{
- // Destructor
-}
-//___________________________________________
-Int_t AliMUONSegmentIndex::Compare(const TObject *obj) const
-{
- // Comparison of two AliMUONSegmentIndex objects
- AliMUONSegmentIndex * myobj = ( AliMUONSegmentIndex *) obj;
- return (fChannelId > myobj->GetChannelId()) ? 1 : -1;
-}
-//___________________________________________
-TString AliMUONSegmentIndex::Name(Int_t padx, Int_t pady, Int_t cathode)
-{
- // Definition of the name of the object
- char name[15];
- sprintf(name,"%d-%d-%d",padx,pady,cathode);
- return TString(name);
-}
-
-//___________________________________________
-void AliMUONSegmentIndex::Print(const char* /*opt*/) const
-{
- // Printing information of AliMUONSegmentIndex
- AliInfo(Form("Name=%s Id=%d PadX=%d PadY=%d Cathode=%d\n",fName.Data(),fChannelId,fPadX,fPadY,fCathode));
-}