]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliCDBMetaDataSelect.cxx
Initialization of some arrays
[u/mrichter/AliRoot.git] / STEER / AliCDBMetaDataSelect.cxx
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 ///////////////////////////////////////////////////////////////////////////////
19 //                                                                           //
20 // subsample of the CDB metadata, used to retrieve                           //
21 // a stored database object:                                                 // 
22 // name="Detector/DBType/DetSpecType", run validity, version                 //
23 //                                                                           //
24 ///////////////////////////////////////////////////////////////////////////////
25
26
27 #include <TSystem.h>
28
29 #include "AliCDBMetaDataSelect.h"
30 #include "AliCDBMetaData.h"
31 #include "AliLog.h"
32
33
34 ClassImp(AliCDBMetaDataSelect)
35
36
37 //_____________________________________________________________________________
38 AliCDBMetaDataSelect::AliCDBMetaDataSelect() :
39   AliCDBMetaData()
40 {
41 // default constructor
42 // the default values mean no selection
43 }
44
45 //_____________________________________________________________________________
46 AliCDBMetaDataSelect::AliCDBMetaDataSelect(const char* name, Int_t firstRun, Int_t lastRun, Int_t Version) :
47   AliCDBMetaData(name, firstRun, lastRun)
48 {
49 // constructor
50   fVersion=Version;
51 }
52
53 //_____________________________________________________________________________
54 AliCDBMetaDataSelect::AliCDBMetaDataSelect(const AliCDBMetaDataSelect& entry) :
55   AliCDBMetaData(entry)
56 {
57 // copy constructor
58 }
59
60 //_____________________________________________________________________________
61 AliCDBMetaDataSelect::AliCDBMetaDataSelect(const AliCDBMetaData& entry) :
62   AliCDBMetaData(entry)
63 {
64 // constructor of AliCDBMetaDataSelect from AliCDBMetaData
65  fPeriod=-1;
66  fFormat="";
67  fResponsible="Duck, Donald";
68  fExtraInfo="";
69 }
70
71
72 //_____________________________________________________________________________
73 AliCDBMetaDataSelect& AliCDBMetaDataSelect::operator = (const AliCDBMetaDataSelect& entry)
74 {
75 // assignment operator
76   fName = entry.fName,
77   fFirstRun = entry.fFirstRun;
78   fLastRun = entry.fLastRun;
79   fVersion = entry.fVersion;
80   return *this;
81 }
82