1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 #include "AliMUONRealDigit.h"
20 //-----------------------------------------------------------------------------
21 /// \class AliMUONRealDigit
23 /// Implementation of AliMUONVDigit for real digit.
25 /// This class should store the bare minimum in order to save disk space
27 /// \author Laurent Aphecetche
28 //-----------------------------------------------------------------------------
31 ClassImp(AliMUONRealDigit)
34 //_____________________________________________________________________________
35 AliMUONRealDigit::AliMUONRealDigit()
45 //_____________________________________________________________________________
46 AliMUONRealDigit::AliMUONRealDigit(Int_t detElemId, Int_t manuId,
47 Int_t manuChannel, Int_t cathode)
48 : AliMUONVDigit(detElemId,manuId,manuChannel,cathode),
57 //_____________________________________________________________________________
58 AliMUONRealDigit::~AliMUONRealDigit()
63 //_____________________________________________________________________________
65 AliMUONRealDigit::MergeWith(const AliMUONVDigit& src)
69 Bool_t check = ( src.DetElemId() == DetElemId() &&
70 src.PadX() == PadX() &&
71 src.PadY() == PadY() &&
72 src.Cathode() == Cathode() );
78 AddCharge(src.Charge());
82 //_____________________________________________________________________________
84 AliMUONRealDigit::PadX() const
86 /// Return (integer) position in x (within the detection element)
87 return fPadXY & 0xFFFF;
90 //_____________________________________________________________________________
92 AliMUONRealDigit::PadY() const
94 /// Return (integer) position in y (within the detection element)
95 return ( fPadXY & 0xFFFF0000 ) >> 16;
98 //_____________________________________________________________________________
100 AliMUONRealDigit::SetPadXY(Int_t padx, Int_t pady)
102 /// Set the pad (integer) positions
103 fPadXY = ( padx | (pady << 16) );