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 ///////////////////////////////////////////////////////////////////////////
20 // Generic handling of detector signal (calibration) attributes.
22 // This class is meant to provide an AliAttrib object which is derived
23 // from TObject such that it can be stored in e.g. TObjArray etc...
24 // and that it can be written out using the ROOT I/O machinery.
32 // a.SetOffset(-22.5,2);
43 //--- Author: Nick van Eijndhoven 18-sep-2003 Utrecht University
44 //- Modified: NvE $Date$ Utrecht University
45 ///////////////////////////////////////////////////////////////////////////
47 #include "AliAttribObj.h"
49 ClassImp(AliAttribObj) // Class implementation to enable ROOT I/O
51 AliAttribObj::AliAttribObj() : TObject(),AliAttrib()
53 // Creation of an AliAttrib object and initialisation of parameters.
54 // Several values of the same type (e.g. gain) can be stored in different slots.
55 // If needed, the storage for values will be expanded automatically
56 // when entering values.
58 ///////////////////////////////////////////////////////////////////////////
59 AliAttribObj::AliAttribObj(AliAttrib& a) : TObject(),AliAttrib(a)
61 // Creation of an AliAttrib object and initialisation of parameters.
62 // All attributes are initialised to the values of the input AliAttrib.
64 ///////////////////////////////////////////////////////////////////////////
65 AliAttribObj::~AliAttribObj()
67 // Destructor to delete dynamically allocated memory
69 ///////////////////////////////////////////////////////////////////////////
70 AliAttribObj::AliAttribObj(AliAttribObj& a) : TObject(a),AliAttrib(a)
74 ///////////////////////////////////////////////////////////////////////////
75 AliAttribObj* AliAttribObj::MakeCopy(AliAttribObj& a)
77 // Make a deep copy of the input object and provide the pointer to the copy.
78 // This memberfunction enables automatic creation of new objects of the
79 // correct type depending on the argument type, a feature which may be very useful
80 // for containers when adding objects in case the container owns the objects.
82 AliAttribObj* att=new AliAttribObj(a);
85 ///////////////////////////////////////////////////////////////////////////