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"
48 #include "Riostream.h"
50 ClassImp(AliAttribObj) // Class implementation to enable ROOT I/O
52 AliAttribObj::AliAttribObj() : TObject(),AliAttrib()
54 // Creation of an AliAttrib object and initialisation of parameters.
55 // Several values of the same type (e.g. gain) can be stored in different slots.
56 // If needed, the storage for values will be expanded automatically
57 // when entering values.
59 ///////////////////////////////////////////////////////////////////////////
60 AliAttribObj::AliAttribObj(AliAttrib& a) : TObject(),AliAttrib(a)
62 // Creation of an AliAttrib object and initialisation of parameters.
63 // All attributes are initialised to the values of the input AliAttrib.
65 ///////////////////////////////////////////////////////////////////////////
66 AliAttribObj::~AliAttribObj()
68 // Destructor to delete dynamically allocated memory
70 ///////////////////////////////////////////////////////////////////////////
71 AliAttribObj::AliAttribObj(const AliAttribObj& a) : TObject(a),AliAttrib(a)
75 ///////////////////////////////////////////////////////////////////////////
76 TObject* AliAttribObj::Clone(const char* name) const
78 // Make a deep copy of the current object and provide the pointer to the copy.
79 // This memberfunction enables automatic creation of new objects of the
80 // correct type depending on the object type, a feature which may be very useful
81 // for containers when adding objects in case the container owns the objects.
83 AliAttribObj* att=new AliAttribObj(*this);
88 cout << " *" << ClassName() << "::Clone* No support for SetName." << endl;
93 ///////////////////////////////////////////////////////////////////////////