]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSFastOrCalibrationSPD.cxx
Un-hide method AliExternalTrackParam::GetC with "using" (A. Dainese)
[u/mrichter/AliRoot.git] / ITS / AliITSFastOrCalibrationSPD.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 #include "AliITSFastOrCalibrationSPD.h"
17 ///////////////////////////////////////////////////////////////////////////
18 //
19 //  Calibration class for the SPD FastOr configuration info
20 //  
21 //  C. Di Giglio Carmelo.Digiglio@ba.infn.it
22 //  D. Elia      Domenico.Elia@ba.infn.it 
23 //
24 ///////////////////////////////////////////////////////////////////////////
25
26 ClassImp(AliITSFastOrCalibrationSPD)
27
28 //-----------------------------------------------
29 //Deafault constructor
30 AliITSFastOrCalibrationSPD::AliITSFastOrCalibrationSPD():
31 TObject(),
32 fFastOrConfiguredChips(1200)
33 {
34 // constructor
35 }
36
37 //Default destructor
38 AliITSFastOrCalibrationSPD::~AliITSFastOrCalibrationSPD() {}
39 //____________________________________________________________________________________________
40 Bool_t AliITSFastOrCalibrationSPD::WriteFOConfToDB(Int_t runNrStart, Int_t runNrEnd)  {
41
42   AliCDBManager* man = AliCDBManager::Instance();
43
44   if(!man->IsDefaultStorageSet()) {
45      man->SetDefaultStorage("local://$ALICE_ROOT");
46   }
47
48   AliCDBMetaData* metaData = new AliCDBMetaData();
49   metaData->SetResponsible("Domenico Elia");
50   metaData->SetComment("Created by storeFastOrConfToDB.C");
51   AliCDBId idCalSPD("ITS/Calib/SPDFastOr",runNrStart,runNrEnd);
52   AliCDBEntry* cdbEntry = new AliCDBEntry(this,idCalSPD,metaData);
53   man->Put(cdbEntry);
54   delete cdbEntry;
55   delete metaData;
56
57   return kTRUE;
58 }