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 //-----------------------------------------------------------------------------
19 /// \class AliMUONDigitStoreV2R
21 /// Concrete implementation of AliMUONVDigitStore for real digits, using
22 /// the AliMUONDigitStoreVImpl base implementation
24 /// \author Laurent Aphecetche
25 //-----------------------------------------------------------------------------
27 #include "AliMUONDigitStoreV2R.h"
30 #include "AliMUONRealDigit.h"
31 #include <TClonesArray.h>
34 ClassImp(AliMUONDigitStoreV2R)
37 //_____________________________________________________________________________
38 AliMUONDigitStoreV2R::AliMUONDigitStoreV2R()
39 : AliMUONDigitStoreVImpl("AliMUONRealDigit")
44 //_____________________________________________________________________________
45 AliMUONDigitStoreV2R::~AliMUONDigitStoreV2R()
50 //_____________________________________________________________________________
52 AliMUONDigitStoreV2R::AddConcreteDigit(TClonesArray& a,
53 const AliMUONVDigit& digit,
56 /// Add a digit to this store
58 const AliMUONRealDigit* d = dynamic_cast<const AliMUONRealDigit*>(&digit);
62 AliError(Form("Digit (of class %s) is not of the expected type AliMUONRealDigit",
67 return new(a[index]) AliMUONRealDigit(*d);
70 //_____________________________________________________________________________
72 AliMUONDigitStoreV2R::Create() const
74 /// Create an empty store
75 return new AliMUONDigitStoreV2R;
78 //_____________________________________________________________________________
80 AliMUONDigitStoreV2R::CreateDigit(Int_t detElemId, Int_t manuId,
81 Int_t manuChannel, Int_t cathode) const
83 /// Create a digit that is compatible with this store
84 return new AliMUONRealDigit(detElemId,manuId,manuChannel,cathode);