ROOT logo
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
*                                                                        *
* Author: The ALICE Off-line Project.                                    *
* Contributors are mentioned in the code where appropriate.              *
*                                                                        *
* Permission to use, copy, modify and distribute this software and its   *
* documentation strictly for non-commercial purposes is hereby granted   *
* without fee, provided that the above copyright notice appears in all   *
* copies and that both the copyright notice and this permission notice   *
* appear in the supporting documentation. The authors make no claims     *
* about the suitability of this software for any purpose. It is          *
* provided "as is" without express or implied warranty.                  *
**************************************************************************/

// $Id$

//-----------------------------------------------------------------------------
/// \class AliMUONDigitStoreV2R
///
/// Concrete implementation of AliMUONVDigitStore for real digits, using
/// the AliMUONDigitStoreVImpl base implementation
/// 
/// \author Laurent Aphecetche
//-----------------------------------------------------------------------------

#include "AliMUONDigitStoreV2R.h"

#include "AliLog.h"
#include "AliMUONRealDigit.h"
#include <TClonesArray.h>

/// \cond CLASSIMP
ClassImp(AliMUONDigitStoreV2R)
/// \endcond

//_____________________________________________________________________________
AliMUONDigitStoreV2R::AliMUONDigitStoreV2R()
: AliMUONDigitStoreVImpl("AliMUONRealDigit")
{
  /// ctor
}

//_____________________________________________________________________________
AliMUONDigitStoreV2R::~AliMUONDigitStoreV2R()
{
  /// dtor
}

//_____________________________________________________________________________
AliMUONVDigit*
AliMUONDigitStoreV2R::AddConcreteDigit(TClonesArray& a, 
                                       const AliMUONVDigit& digit,
                                       Int_t index)
{
  /// Add a digit to this store
  
  const AliMUONRealDigit* d = dynamic_cast<const AliMUONRealDigit*>(&digit);
  
  if ( !d ) 
  {
    AliError(Form("Digit (of class %s) is not of the expected type AliMUONRealDigit",
                  digit.ClassName()));
    return 0x0;
  }
  
  return new(a[index]) AliMUONRealDigit(*d);
}

//_____________________________________________________________________________
AliMUONVDigitStore* 
AliMUONDigitStoreV2R::Create() const
{
  /// Create an empty store
  return new AliMUONDigitStoreV2R;
}

//_____________________________________________________________________________
AliMUONVDigit* 
AliMUONDigitStoreV2R::CreateDigit(Int_t detElemId, Int_t manuId,                                 
                                  Int_t manuChannel, Int_t cathode) const
{
  /// Create a digit that is compatible with this store
  return new AliMUONRealDigit(detElemId,manuId,manuChannel,cathode);
}


 AliMUONDigitStoreV2R.cxx:1
 AliMUONDigitStoreV2R.cxx:2
 AliMUONDigitStoreV2R.cxx:3
 AliMUONDigitStoreV2R.cxx:4
 AliMUONDigitStoreV2R.cxx:5
 AliMUONDigitStoreV2R.cxx:6
 AliMUONDigitStoreV2R.cxx:7
 AliMUONDigitStoreV2R.cxx:8
 AliMUONDigitStoreV2R.cxx:9
 AliMUONDigitStoreV2R.cxx:10
 AliMUONDigitStoreV2R.cxx:11
 AliMUONDigitStoreV2R.cxx:12
 AliMUONDigitStoreV2R.cxx:13
 AliMUONDigitStoreV2R.cxx:14
 AliMUONDigitStoreV2R.cxx:15
 AliMUONDigitStoreV2R.cxx:16
 AliMUONDigitStoreV2R.cxx:17
 AliMUONDigitStoreV2R.cxx:18
 AliMUONDigitStoreV2R.cxx:19
 AliMUONDigitStoreV2R.cxx:20
 AliMUONDigitStoreV2R.cxx:21
 AliMUONDigitStoreV2R.cxx:22
 AliMUONDigitStoreV2R.cxx:23
 AliMUONDigitStoreV2R.cxx:24
 AliMUONDigitStoreV2R.cxx:25
 AliMUONDigitStoreV2R.cxx:26
 AliMUONDigitStoreV2R.cxx:27
 AliMUONDigitStoreV2R.cxx:28
 AliMUONDigitStoreV2R.cxx:29
 AliMUONDigitStoreV2R.cxx:30
 AliMUONDigitStoreV2R.cxx:31
 AliMUONDigitStoreV2R.cxx:32
 AliMUONDigitStoreV2R.cxx:33
 AliMUONDigitStoreV2R.cxx:34
 AliMUONDigitStoreV2R.cxx:35
 AliMUONDigitStoreV2R.cxx:36
 AliMUONDigitStoreV2R.cxx:37
 AliMUONDigitStoreV2R.cxx:38
 AliMUONDigitStoreV2R.cxx:39
 AliMUONDigitStoreV2R.cxx:40
 AliMUONDigitStoreV2R.cxx:41
 AliMUONDigitStoreV2R.cxx:42
 AliMUONDigitStoreV2R.cxx:43
 AliMUONDigitStoreV2R.cxx:44
 AliMUONDigitStoreV2R.cxx:45
 AliMUONDigitStoreV2R.cxx:46
 AliMUONDigitStoreV2R.cxx:47
 AliMUONDigitStoreV2R.cxx:48
 AliMUONDigitStoreV2R.cxx:49
 AliMUONDigitStoreV2R.cxx:50
 AliMUONDigitStoreV2R.cxx:51
 AliMUONDigitStoreV2R.cxx:52
 AliMUONDigitStoreV2R.cxx:53
 AliMUONDigitStoreV2R.cxx:54
 AliMUONDigitStoreV2R.cxx:55
 AliMUONDigitStoreV2R.cxx:56
 AliMUONDigitStoreV2R.cxx:57
 AliMUONDigitStoreV2R.cxx:58
 AliMUONDigitStoreV2R.cxx:59
 AliMUONDigitStoreV2R.cxx:60
 AliMUONDigitStoreV2R.cxx:61
 AliMUONDigitStoreV2R.cxx:62
 AliMUONDigitStoreV2R.cxx:63
 AliMUONDigitStoreV2R.cxx:64
 AliMUONDigitStoreV2R.cxx:65
 AliMUONDigitStoreV2R.cxx:66
 AliMUONDigitStoreV2R.cxx:67
 AliMUONDigitStoreV2R.cxx:68
 AliMUONDigitStoreV2R.cxx:69
 AliMUONDigitStoreV2R.cxx:70
 AliMUONDigitStoreV2R.cxx:71
 AliMUONDigitStoreV2R.cxx:72
 AliMUONDigitStoreV2R.cxx:73
 AliMUONDigitStoreV2R.cxx:74
 AliMUONDigitStoreV2R.cxx:75
 AliMUONDigitStoreV2R.cxx:76
 AliMUONDigitStoreV2R.cxx:77
 AliMUONDigitStoreV2R.cxx:78
 AliMUONDigitStoreV2R.cxx:79
 AliMUONDigitStoreV2R.cxx:80
 AliMUONDigitStoreV2R.cxx:81
 AliMUONDigitStoreV2R.cxx:82
 AliMUONDigitStoreV2R.cxx:83
 AliMUONDigitStoreV2R.cxx:84
 AliMUONDigitStoreV2R.cxx:85
 AliMUONDigitStoreV2R.cxx:86
 AliMUONDigitStoreV2R.cxx:87