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 **************************************************************************/
16 #include "AliITSFastOrCalibrationSPD.h"
17 ///////////////////////////////////////////////////////////////////////////
19 // Calibration class for the SPD FastOr configuration info
21 // C. Di Giglio Carmelo.Digiglio@ba.infn.it
22 // D. Elia Domenico.Elia@ba.infn.it
24 ///////////////////////////////////////////////////////////////////////////
26 ClassImp(AliITSFastOrCalibrationSPD)
28 //-----------------------------------------------
29 //Deafault constructor
30 AliITSFastOrCalibrationSPD::AliITSFastOrCalibrationSPD():
32 fFastOrConfiguredChips(1200)
38 AliITSFastOrCalibrationSPD::~AliITSFastOrCalibrationSPD() {}
39 //____________________________________________________________________________________________
40 Bool_t AliITSFastOrCalibrationSPD::WriteFOConfToDB(Int_t runNrStart, Int_t runNrEnd) {
42 AliCDBManager* man = AliCDBManager::Instance();
44 if(!man->IsDefaultStorageSet()) {
45 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
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);