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 //-----------------------------------------------------------------------------
21 /// \class AliMUONDigitStoreV2S
23 /// Concrete implementation of AliMUONVDigitStore for simulated digits, using
24 /// the AliMUONDigitStoreVImpl base implementation
26 /// \author Laurent Aphecetche
27 //-----------------------------------------------------------------------------
30 #include "AliMUONDigit.h"
31 #include <TClonesArray.h>
34 ClassImp(AliMUONDigitStoreV2S)
37 //_____________________________________________________________________________
38 AliMUONDigitStoreV2S::AliMUONDigitStoreV2S()
39 : AliMUONDigitStoreVImpl("AliMUONDigit")
44 //_____________________________________________________________________________
45 AliMUONDigitStoreV2S::~AliMUONDigitStoreV2S()
50 //_____________________________________________________________________________
52 AliMUONDigitStoreV2S::AddConcreteDigit(TClonesArray& a,
53 const AliMUONVDigit& digit,
56 /// add a digit to this store
57 const AliMUONDigit* d = dynamic_cast<const AliMUONDigit*>(&digit);
61 return new(a[index]) AliMUONDigit(*d);
64 //_____________________________________________________________________________
66 AliMUONDigitStoreV2S::Create() const
68 /// create an empty store
69 return new AliMUONDigitStoreV2S;
72 //_____________________________________________________________________________
74 AliMUONDigitStoreV2S::CreateDigit(Int_t detElemId, Int_t manuId,
75 Int_t manuChannel, Int_t cathode) const
77 /// create a digit, compatible with this store
78 return new AliMUONDigit(detElemId,manuId,manuChannel,cathode);