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 /// \class AliMUONRealDigit
22 /// Implementation of AliMUONVDigit for real digit.
24 /// This class should store the bare minimum in order to save disk space
26 /// \author Laurent Aphecetche
30 ClassImp(AliMUONRealDigit)
33 //_____________________________________________________________________________
34 AliMUONRealDigit::AliMUONRealDigit()
44 //_____________________________________________________________________________
45 AliMUONRealDigit::AliMUONRealDigit(Int_t detElemId, Int_t manuId,
46 Int_t manuChannel, Int_t cathode)
47 : AliMUONVDigit(detElemId,manuId,manuChannel,cathode),
56 //_____________________________________________________________________________
57 AliMUONRealDigit::~AliMUONRealDigit()
62 //_____________________________________________________________________________
64 AliMUONRealDigit::MergeWith(const AliMUONVDigit& src)
68 Bool_t check = ( src.DetElemId() == DetElemId() &&
69 src.PadX() == PadX() &&
70 src.PadY() == PadY() &&
71 src.Cathode() == Cathode() );
77 AddCharge(src.Charge());
81 //_____________________________________________________________________________
83 AliMUONRealDigit::PadX() const
85 /// Return (integer) position in x (within the detection element)
86 return fPadXY & 0xFFFF;
89 //_____________________________________________________________________________
91 AliMUONRealDigit::PadY() const
93 /// Return (integer) position in y (within the detection element)
94 return ( fPadXY & 0xFFFF0000 ) >> 16;
97 //_____________________________________________________________________________
99 AliMUONRealDigit::SetPadXY(Int_t padx, Int_t pady)
101 /// Set the pad (integer) positions
102 fPadXY = ( padx | (pady << 16) );