AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONVClusterStore.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 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
27 
28 #include "AliMUONVClusterStore.h"
29 #include "AliMUONVCluster.h"
30 
34 
35 //_____________________________________________________________________________
37 {
39 }
40 
41 //_____________________________________________________________________________
43 {
45 }
46 
47 //_____________________________________________________________________________
48 Bool_t
49 AliMUONVClusterStore::Add(TObject* object)
50 {
52  AliMUONVCluster* cluster = dynamic_cast<AliMUONVCluster*>(object);
53  if (cluster)
54  {
55  return (Add(*cluster)) ? kTRUE : kFALSE;
56  }
57  return kFALSE;
58 }
59 
60 //_____________________________________________________________________________
63 {
65  return static_cast<AliMUONVClusterStore*>(AliMUONVStore::Create(tree,"Cluster"));
66 }
67 
68 //______________________________________________________________________________
70 {
72  const AliMUONVCluster* cluster = dynamic_cast<const AliMUONVCluster*>(obj);
73  if (cluster)
74  return static_cast<AliMUONVCluster*>(AliMUONVStore::FindObject(obj));
75  return 0x0;
76 }
77 
78 //_____________________________________________________________________________
80 {
82  return static_cast<AliMUONVCluster*>(AliMUONVStore::FindObject(uniqueID));
83 }
84 
TTree * tree
ClassImp(TPCGenInfo)
Definition: AliTPCCmpNG.C:254
virtual Bool_t Add(TObject *object)
Add an object to the store.
abstract base class for clusters
virtual AliMUONVStore * Create() const =0
Create an empty copy of this.
Interface of a cluster container.
virtual AliMUONVCluster * FindObject(const TObject *object) const
Find an object.
virtual TObject * FindObject(const char *name) const
Find an object by name.