]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONVClusterStore.cxx
new SPD geometry (A.Pulvirenti)
[u/mrichter/AliRoot.git] / MUON / AliMUONVClusterStore.cxx
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 //-----------------------------------------------------------------------------
19 /// \class AliMUONVClusterStore
20 ///
21 /// An interface of a cluster container
22 ///
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...
26 ///
27 /// \author Laurent Aphecetche, Subatech
28 //-----------------------------------------------------------------------------
29
30 #include "AliMUONVClusterStore.h"
31 #include "AliMUONRawCluster.h"
32
33 /// \cond CLASSIMP
34 ClassImp(AliMUONVClusterStore)
35 /// \endcond
36
37 //_____________________________________________________________________________
38 AliMUONVClusterStore::AliMUONVClusterStore()
39 {
40   /// ctor
41 }
42
43 //_____________________________________________________________________________
44 AliMUONVClusterStore::~AliMUONVClusterStore()
45 {
46   /// dtor
47 }
48
49 //_____________________________________________________________________________
50 Bool_t
51 AliMUONVClusterStore::Add(TObject* object)
52 {
53   /// Add an object, if it is of the right class
54   AliMUONRawCluster* cluster = dynamic_cast<AliMUONRawCluster*>(object);
55   if (cluster)
56   {
57     Add(*cluster);
58     return kTRUE;
59   }
60   return kFALSE;
61 }
62
63 //_____________________________________________________________________________
64 AliMUONVClusterStore*
65 AliMUONVClusterStore::Create(TTree& tree)
66 {
67   /// Create a VClusterStore from the tree
68   return static_cast<AliMUONVClusterStore*>(AliMUONVStore::Create(tree,"Cluster"));
69 }