From: masera Date: Wed, 18 Apr 2007 13:12:04 +0000 (+0000) Subject: AliITSOnlineSPDscan and AliITSOnlineSPDscanInfo: Changes in calibration header format... X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=ad18504effcf23e1380f661b1094e4f0086e7316;p=u%2Fmrichter%2FAliRoot.git AliITSOnlineSPDscan and AliITSOnlineSPDscanInfo: Changes in calibration header format. AliITSPreprocessorSPD: Check run type and change of the calibration directory name --- diff --git a/ITS/AliITSOnlineSPDscan.cxx b/ITS/AliITSOnlineSPDscan.cxx index da191f0eb69..ecb2c66f7d3 100644 --- a/ITS/AliITSOnlineSPDscan.cxx +++ b/ITS/AliITSOnlineSPDscan.cxx @@ -409,6 +409,16 @@ void AliITSOnlineSPDscan::SetRouterNr(UInt_t val) { fScanInfo->SetRouterNr(val); fInfoModified=kTRUE; } +void AliITSOnlineSPDscan::SetHalfStaveScanned(UInt_t val, Bool_t b) { + // set half stave scanned + fScanInfo->SetHalfStaveScanned(val,b); + fInfoModified=kTRUE; +} +void AliITSOnlineSPDscan::SetDataFormat(UInt_t val) { + // set data format (0=normal 1=histogram) + fScanInfo->SetDataFormat(val); + fInfoModified=kTRUE; +} void AliITSOnlineSPDscan::SetTriggers(UInt_t nsi, UInt_t val) { // set nr of triggers SwitchToStep(nsi); @@ -466,6 +476,12 @@ UInt_t AliITSOnlineSPDscan::GetRunNr() const { UInt_t AliITSOnlineSPDscan::GetRouterNr() const { return fScanInfo->GetRouterNr(); } +Bool_t AliITSOnlineSPDscan::GetHalfStaveScanned(UInt_t val) const { + return fScanInfo->GetHalfStaveScanned(val); +} +UInt_t AliITSOnlineSPDscan::GetDataFormat() const { + return fScanInfo->GetDataFormat(); +} UInt_t AliITSOnlineSPDscan::GetTriggers(UInt_t nsi) const { return fScanInfo->GetTriggers(nsi); } diff --git a/ITS/AliITSOnlineSPDscan.h b/ITS/AliITSOnlineSPDscan.h index 088b715cb10..3f025917dce 100644 --- a/ITS/AliITSOnlineSPDscan.h +++ b/ITS/AliITSOnlineSPDscan.h @@ -34,6 +34,8 @@ class AliITSOnlineSPDscan { void SetType(UInt_t val); void SetRunNr(UInt_t val); void SetRouterNr(UInt_t val); + void SetHalfStaveScanned(UInt_t val, Bool_t b); + void SetDataFormat(UInt_t val); void SetTriggers(UInt_t nsi, UInt_t val); void SetChipPresent(UInt_t hs, UInt_t chipi, Bool_t val); void SetRowStart(UInt_t val); @@ -54,6 +56,8 @@ class AliITSOnlineSPDscan { UInt_t GetType() const; UInt_t GetRunNr() const; UInt_t GetRouterNr() const; + Bool_t GetHalfStaveScanned(UInt_t val) const; + UInt_t GetDataFormat() const; UInt_t GetTriggers(UInt_t nsi) const; Bool_t GetChipPresent(UInt_t hs, UInt_t chipi) const; UInt_t GetRowStart() const; diff --git a/ITS/AliITSOnlineSPDscanInfo.cxx b/ITS/AliITSOnlineSPDscanInfo.cxx index 5ac3dc4dbdd..6d1abf99b03 100644 --- a/ITS/AliITSOnlineSPDscanInfo.cxx +++ b/ITS/AliITSOnlineSPDscanInfo.cxx @@ -37,6 +37,9 @@ void AliITSOnlineSPDscanInfo::ClearThis() { fRouterNr=999; fRowStart=0; fRowEnd=255; + for (Int_t hs=0; hs<6; hs++) { + fHalfStaveScanned[hs]=kFALSE; + } for (Int_t i=0; i<10; i++) { fChipPresent[i]=kTRUE; } @@ -49,7 +52,6 @@ UInt_t AliITSOnlineSPDscanInfo::AddScanStep() { fTriggers.AddAt(0, fNSteps-1); return fNSteps-1; } - void AliITSOnlineSPDscanInfo::IncrementTriggers(UInt_t nsi) { // increment the nr of triggers for step nsi if (nsiFirst(); -// Char_t* fileName = (Char_t*) GetFile(kDAQ, id, fileNameEntry->GetString().Data()); -// AliITSOnlineSPDscan *scan = new AliITSOnlineSPDscan((Char_t*)fileName); -// TObjArray* arr = scan->GetAsTObjArray(); -// Char_t refCAT[10]; -// sprintf(refCAT,"Ref%d",eq); -// StoreReferenceData("SHUTTLE", refCAT, arr, &metaData, 0, 0); -// } -// } -// *********************************************************** + + // *** REFERENCE DATA *** // Store the container files as reference data (one file for each equipment) for (UInt_t eq=0; eq<20; eq++) { @@ -93,29 +83,8 @@ UInt_t AliITSPreprocessorSPD::Process(TMap* /*dcsAliasMap*/) // *** NOISY DATA *** -// OLD algorithm (commented out)!!! -// *********************************************************** -// // Read old calibration -// AliCDBEntry* cdbEntry = GetFromOCDB("Calib", "SPDNoisy"); -// TObjArray* spdEntry; -// if(cdbEntry) { -// spdEntry = (TObjArray*)cdbEntry->GetObject(); -// if(!spdEntry) return 0; -// } -// else { -// Log(Form("Old calibration not found in database. A fresh one will be created.")); -// // Create fresh calibration -// spdEntry = new TObjArray(240); -// for(Int_t module=0;module<240;module++){ -// AliITSCalibrationSPD* cal = new AliITSCalibrationSPD(); -// spdEntry->Add(cal); -// } -// spdEntry->SetOwner(kTRUE); -// } -// *********************************************************** - // Read old calibration - AliCDBEntry* cdbEntry = GetFromOCDB("Calib", "SPDNoisy"); + AliCDBEntry* cdbEntry = GetFromOCDB("Calib", "CalibSPD"); TObjArray* spdEntry; if(cdbEntry) { spdEntry = (TObjArray*)cdbEntry->GetObject(); @@ -168,7 +137,7 @@ UInt_t AliITSPreprocessorSPD::Process(TMap* /*dcsAliasMap*/) metaData.SetBeamPeriod(0); metaData.SetResponsible("Henrik Tydesjo"); metaData.SetComment("Preprocessor test for SPD."); - if (!Store("Calib", "SPDNoisy", spdEntry, &metaData, 0, kTRUE)) { + if (!Store("Calib", "CalibSPD", spdEntry, &metaData, 0, kTRUE)) { return 1; } // delete spdEntry;