AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONDigitStoreV2S.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 #include "AliMUONDigitStoreV2S.h"
19 
20 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
28 
29 
30 #include "AliMUONDigit.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  if ( digit.IsA() != AliMUONDigit::Class() )
59  {
60  AliMUONDigit d(digit.DetElemId(),digit.ManuId(),digit.ManuChannel(),digit.Cathode());
61  d.SetCharge(digit.Charge());
62  d.SetADC(digit.ADC());
63  d.SetPadXY(digit.PadX(),digit.PadY());
64  d.ChargeInFC();
65  d.Converted();
66  return new(a[index]) AliMUONDigit(d);
67  }
68 
69  return new(a[index]) AliMUONDigit(static_cast<const AliMUONDigit&>(digit));
70 }
71 
72 //_____________________________________________________________________________
75 {
77  return new AliMUONDigitStoreV2S;
78 }
79 
80 //_____________________________________________________________________________
82 AliMUONDigitStoreV2S::CreateDigit(Int_t detElemId, Int_t manuId,
83  Int_t manuChannel, Int_t cathode) const
84 {
86  return new AliMUONDigit(detElemId,manuId,manuChannel,cathode);
87 }
88 
89 
virtual Int_t ManuChannel() const =0
The channel within ManuId() this digit belongs to (manuChannel for tracker, localBoardChannel for tri...
virtual Int_t PadY() const =0
The y-index of this digit (>=0)
Interface for a digit container.
virtual Int_t ADC() const =0
Raw ADC value of this digit.
Base implementation of VDigitStore.
virtual Float_t Charge() const =0
The charge of this digit, calibrated or not depending on IsCalibrated()
virtual Int_t DetElemId() const =0
The detection element this digit belongs to.
Implementation of AliMUONVDigitStore.
ClassImp(TPCGenInfo)
Definition: AliTPCCmpNG.C:254
virtual Int_t Cathode() const =0
Cathode number this digit is on (0 or 1)
MUON digit.
Definition: AliMUONDigit.h:17
virtual AliMUONVDigit * CreateDigit(Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t cathode) const
Create a digit.
virtual void SetCharge(Float_t q)
Set charge.
Definition: AliMUONDigit.h:67
virtual Int_t PadX() const =0
The x-index of this digit (>=0)
virtual Int_t ManuId() const =0
The electronic card id this digit belongs to (manuId for tracker, localboardId for trigger) ...
ABC of a MUON digit.
Definition: AliMUONVDigit.h:18
virtual AliMUONVDigitStore * Create() const
Create an (empty) object of the same concrete class as *this.
virtual AliMUONVDigit * AddConcreteDigit(TClonesArray &a, const AliMUONVDigit &digit, Int_t index)
Add concrete digit.