X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2Fmapping%2FAliMpManuUID.cxx;fp=MUON%2Fmapping%2FAliMpManuUID.cxx;h=0000000000000000000000000000000000000000;hb=b22a7396d06b2408c6e3c5719ebb9690f5b4ce28;hp=fe8017faab6046d28ff4484cd32281ea7e819931;hpb=82795f89b012be0976ba4b23ae45e4aaa45c1628;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/mapping/AliMpManuUID.cxx b/MUON/mapping/AliMpManuUID.cxx deleted file mode 100644 index fe8017faab6..00000000000 --- a/MUON/mapping/AliMpManuUID.cxx +++ /dev/null @@ -1,73 +0,0 @@ -/************************************************************************** -* 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$ - -#include "AliMpManuUID.h" - -/// \class AliMpManuUID -/// -/// Unique ID for manus -/// -/// \author Laurent Aphecetche, Subatech - -/// \cond CLASSIMP -ClassImp(AliMpManuUID) -/// \endcond - -//_____________________________________________________________________________ -AliMpManuUID::AliMpManuUID() - : TObject() -{ - /// default ctor -} - -//_____________________________________________________________________________ -AliMpManuUID::AliMpManuUID(Int_t detElemId, Int_t manuId) -: TObject() -{ - /// normal ctor - SetUniqueID(BuildUniqueID(detElemId,manuId)); -} - -//_____________________________________________________________________________ -AliMpManuUID::~AliMpManuUID() -{ - /// dtor -} - -//_____________________________________________________________________________ -UInt_t -AliMpManuUID::BuildUniqueID(Int_t detElemId, Int_t manuId) -{ - /// Build a unique id from (de,manu) pair - - return ( ( detElemId ) | ( manuId << 12 ) ); -} - -//_____________________________________________________________________________ -Int_t AliMpManuUID::DetElemId(UInt_t uniqueID) -{ - /// Return detection element id part of the uniqueID - return uniqueID & 0xFFF; -} - -//_____________________________________________________________________________ -Int_t AliMpManuUID::ManuId(UInt_t uniqueID) -{ - /// Return manuId part of the uniqueID - return ( uniqueID & 0xFFF000 ) >> 12; -} -