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 "AliMUONDigitStoreV2S.h"
20 /// \class AliMUONDigitStoreV2S
22 /// Concrete implementation of AliMUONVDigitStore for simulated digits, using
23 /// the AliMUONDigitStoreVImpl base implementation
25 /// \author Laurent Aphecetche
28 #include "AliMUONDigit.h"
29 #include <TClonesArray.h>
32 ClassImp(AliMUONDigitStoreV2S)
35 //_____________________________________________________________________________
36 AliMUONDigitStoreV2S::AliMUONDigitStoreV2S()
37 : AliMUONDigitStoreVImpl("AliMUONDigit")
42 //_____________________________________________________________________________
43 AliMUONDigitStoreV2S::~AliMUONDigitStoreV2S()
48 //_____________________________________________________________________________
50 AliMUONDigitStoreV2S::AddConcreteDigit(TClonesArray& a,
51 const AliMUONVDigit& digit,
54 /// add a digit to this store
55 const AliMUONDigit* d = dynamic_cast<const AliMUONDigit*>(&digit);
59 return new(a[index]) AliMUONDigit(*d);
62 //_____________________________________________________________________________
64 AliMUONDigitStoreV2S::Create() const
66 /// create an empty store
67 return new AliMUONDigitStoreV2S;
70 //_____________________________________________________________________________
72 AliMUONDigitStoreV2S::CreateDigit(Int_t detElemId, Int_t manuId,
73 Int_t manuChannel, Int_t cathode) const
75 /// create a digit, compatible with this store
76 return new AliMUONDigit(detElemId,manuId,manuChannel,cathode);