AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONDigitStoreV2R.cxx
Go to the documentation of this file.
1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15 
16 // $Id$
17 
18 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
26 
27 #include "AliMUONDigitStoreV2R.h"
28 
29 #include "AliLog.h"
30 #include "AliMUONRealDigit.h"
31 #include <TClonesArray.h>
32 
36 
37 //_____________________________________________________________________________
40 {
42 }
43 
44 //_____________________________________________________________________________
46 {
48 }
49 
50 //_____________________________________________________________________________
53  const AliMUONVDigit& digit,
54  Int_t index)
55 {
57 
58  const AliMUONRealDigit* d = dynamic_cast<const AliMUONRealDigit*>(&digit);
59 
60  if ( !d )
61  {
62  AliError(Form("Digit (of class %s) is not of the expected type AliMUONRealDigit",
63  digit.ClassName()));
64  return 0x0;
65  }
66 
67  return new(a[index]) AliMUONRealDigit(*d);
68 }
69 
70 //_____________________________________________________________________________
73 {
75  return new AliMUONDigitStoreV2R;
76 }
77 
78 //_____________________________________________________________________________
80 AliMUONDigitStoreV2R::CreateDigit(Int_t detElemId, Int_t manuId,
81  Int_t manuChannel, Int_t cathode) const
82 {
84  return new AliMUONRealDigit(detElemId,manuId,manuChannel,cathode);
85 }
86 
87 
virtual AliMUONVDigitStore * Create() const
Create an (empty) object of the same concrete class as *this.
Interface for a digit container.
Concrete implementation of AliMUONVDigitStore for real digits.
Base implementation of VDigitStore.
ClassImp(TPCGenInfo)
Definition: AliTPCCmpNG.C:254
Implementation of AliMUONVDigit for real (i.e. not simulated) digits.
virtual AliMUONVDigit * CreateDigit(Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode) const
Create a digit.
ABC of a MUON digit.
Definition: AliMUONVDigit.h:18
virtual AliMUONVDigit * AddConcreteDigit(TClonesArray &a, const AliMUONVDigit &digit, Int_t index)
Add concrete digit.