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 /// \class AliMUONVHitStore
20 /// Base class of a MUON hit store
22 /// \author Laurent Aphecetche, Subatech
25 #include "AliMUONVHitStore.h"
26 #include "AliMUONHit.h"
30 ClassImp(AliMUONVHitStore)
33 //_____________________________________________________________________________
34 AliMUONVHitStore::AliMUONVHitStore()
39 //_____________________________________________________________________________
40 AliMUONVHitStore::~AliMUONVHitStore()
45 //_____________________________________________________________________________
47 AliMUONVHitStore::Add(TObject* object)
49 /// Add an object, if of the right type
52 AliMUONHit* hit = dynamic_cast<AliMUONHit*>(object);
60 AliError(Form("object not of expected AliMUONHit type but %s",object->ClassName()));
66 //_____________________________________________________________________________
68 AliMUONVHitStore::Create(TTree& tree)
70 /// Create a VHitStore from the tree (if possible)
71 return static_cast<AliMUONVHitStore*>(AliMUONVStore::Create(tree,"Hit"));