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 AliMUONVClusterStore
///
/// An interface of a cluster container
///
/// The object stored are inherited from AliMUONVCluster
///
/// \author Laurent Aphecetche, Subatech
//-----------------------------------------------------------------------------

#include "AliMUONVClusterStore.h"
#include "AliMUONVCluster.h"

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

//_____________________________________________________________________________
AliMUONVClusterStore::AliMUONVClusterStore()
{
  /// ctor
}

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

//_____________________________________________________________________________
Bool_t
AliMUONVClusterStore::Add(TObject* object)
{
  /// Add an object, if it is of the right class
  AliMUONVCluster* cluster = dynamic_cast<AliMUONVCluster*>(object);
  if (cluster)
  {
    return (Add(*cluster)) ? kTRUE : kFALSE;
  }
  return kFALSE;
}

//_____________________________________________________________________________
AliMUONVClusterStore*
AliMUONVClusterStore::Create(TTree& tree)
{
  /// Create a VClusterStore from the tree
  return static_cast<AliMUONVClusterStore*>(AliMUONVStore::Create(tree,"Cluster"));
}

//______________________________________________________________________________
AliMUONVCluster* AliMUONVClusterStore::FindObject(const TObject *obj) const
{
  /// Find an object, if of AliMUONVCluster type
  const AliMUONVCluster* cluster = dynamic_cast<const AliMUONVCluster*>(obj);
  if (cluster)
    return static_cast<AliMUONVCluster*>(AliMUONVStore::FindObject(obj));
  return 0x0;
}

//_____________________________________________________________________________
AliMUONVCluster* AliMUONVClusterStore::FindObject(UInt_t uniqueID) const
{
  /// Find an object by its uniqueID (default is the same as in AliMUONVStore)
  return static_cast<AliMUONVCluster*>(AliMUONVStore::FindObject(uniqueID));
}

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