/************************************************************************** * 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 /// /// Please note that the the object stored are currently supposed to /// be concrete class AliMUONRawCluster. /// This is likely to change to something like AliMUONVCluster... /// /// \author Laurent Aphecetche, Subatech //----------------------------------------------------------------------------- #include "AliMUONVClusterStore.h" #include "AliMUONRawCluster.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 AliMUONRawCluster* cluster = dynamic_cast(object); if (cluster) { Add(*cluster); return kTRUE; } return kFALSE; } //_____________________________________________________________________________ AliMUONVClusterStore* AliMUONVClusterStore::Create(TTree& tree) { /// Create a VClusterStore from the tree return static_cast(AliMUONVStore::Create(tree,"Cluster")); }