Line data Source code
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 : /// \class AliMUONTrackerDataWrapper
19 : ///
20 : /// A simple wrapper to convert an AliMUONVTrackerData object into
21 : /// an AliMUONVTrackerDataMaker object.
22 : ///
23 : /// This is mainly to offer backward compatibility : the mchview program
24 : /// used to save AliMUONVTrackerData objects, while it now saves
25 : /// AliMUONVTrackerDataMaker ones.
26 : /// So to read back old files, we need to be able to do the "conversion".
27 : ///
28 : /// \author Laurent Aphecetche, Subatech
29 :
30 : #include "AliMUONTrackerDataWrapper.h"
31 :
32 : #include "AliLog.h"
33 : #include "AliMUONVTrackerData.h"
34 :
35 : /// \cond CLASSIMP
36 12 : ClassImp(AliMUONTrackerDataWrapper)
37 : /// \endcond
38 :
39 : //_____________________________________________________________________________
40 : AliMUONTrackerDataWrapper::AliMUONTrackerDataWrapper(AliMUONVTrackerData* data)
41 0 : : AliMUONVTrackerDataMaker(), fData(data)
42 0 : {
43 : /// ctor
44 0 : }
45 :
46 : //_____________________________________________________________________________
47 : AliMUONTrackerDataWrapper::~AliMUONTrackerDataWrapper()
48 0 : {
49 : /// dtor
50 0 : delete fData;
51 0 : }
52 :
53 : //_____________________________________________________________________________
54 : Long64_t
55 : AliMUONTrackerDataWrapper::Merge(TCollection*)
56 : {
57 : /// Merge
58 0 : AliError("Not implemented yet");
59 0 : return 0;
60 : }
61 :
62 : //_____________________________________________________________________________
63 : Int_t
64 : AliMUONTrackerDataWrapper::NumberOfEvents() const
65 : {
66 : /// Get the number of events the data has seen
67 0 : if ( Data() )
68 : {
69 0 : return Data()->NumberOfEvents(-1);
70 : }
71 0 : return 0;
72 0 : }
|