1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 //-----------------------------------------------------------------------------
19 /// \class AliMUONVClusterStore
21 /// An interface of a cluster container
23 /// Please note that the the object stored are currently supposed to
24 /// be concrete class AliMUONRawCluster.
25 /// This is likely to change to something like AliMUONVCluster...
27 /// \author Laurent Aphecetche, Subatech
28 //-----------------------------------------------------------------------------
30 #include "AliMUONVClusterStore.h"
31 #include "AliMUONRawCluster.h"
34 ClassImp(AliMUONVClusterStore)
37 //_____________________________________________________________________________
38 AliMUONVClusterStore::AliMUONVClusterStore()
43 //_____________________________________________________________________________
44 AliMUONVClusterStore::~AliMUONVClusterStore()
49 //_____________________________________________________________________________
51 AliMUONVClusterStore::Add(TObject* object)
53 /// Add an object, if it is of the right class
54 AliMUONRawCluster* cluster = dynamic_cast<AliMUONRawCluster*>(object);
63 //_____________________________________________________________________________
65 AliMUONVClusterStore::Create(TTree& tree)
67 /// Create a VClusterStore from the tree
68 return static_cast<AliMUONVClusterStore*>(AliMUONVStore::Create(tree,"Cluster"));