+/**************************************************************************
+ * Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+
+/* $Id$ */
+
//////////////////////////////////////////////////////////////////////
// Author: Henrik Tydesjo //
// For easier handling of dead and noisy pixels they are kept in //
dcsfile << "[SPD SCAN]\n";
dcsfile << "RunNumber=" << "0" << "\n"; // dummy value
dcsfile << "Type=" << "4" << "\n";
+ dcsfile << "Router=" << "0" << "\n"; // dummy value
dcsfile << "ActualDetCoonfiguration=" << "0,-1,-1\n"; // dummy values
dcsfile << "[NOISY]\n";
for (UInt_t module=0; module<240; module++) {
+/**************************************************************************
+ * Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+/* $Id$ */
+
////////////////////////////////////////////////////////////
// Author: Henrik Tydesjo //
// This class is used in the detector algorithm framework //
AliITSOnlineSPDscanAnalyzer::AliITSOnlineSPDscanAnalyzer(const Char_t *fileName) :
- fType(99),fDacId(99),fFileName(fileName),fScanObj(NULL),fTriggers(NULL),
+ fType(99),fDacId(99),fRouterNr(99),fFileName(fileName),fScanObj(NULL),fTriggers(NULL),
fOverWrite(kFALSE),fNoiseThreshold(0.01),fNoiseMinimumEvents(100),
fMinNrStepsBeforeIncrease(5),fMinIncreaseFromBaseLine(2),fStepDownDacSafe(2),fMaxBaseLineLevel(10)
{
}
AliITSOnlineSPDscanAnalyzer::AliITSOnlineSPDscanAnalyzer(const AliITSOnlineSPDscanAnalyzer& handle) :
- fType(99),fDacId(99),fFileName("."),fScanObj(NULL),fTriggers(NULL),
+ fType(99),fDacId(99),fRouterNr(99),fFileName("."),fScanObj(NULL),fTriggers(NULL),
fOverWrite(kFALSE),fNoiseThreshold(0.01),fNoiseMinimumEvents(100),
fMinNrStepsBeforeIncrease(5),fMinIncreaseFromBaseLine(2),fStepDownDacSafe(2),fMaxBaseLineLevel(10)
{
fFileName=handle.fFileName;
fScanObj=NULL;
- fType=99;
- fDacId=99;
for (UInt_t chipNr=0; chipNr<11; chipNr++) {
for (UInt_t hs=0; hs<6; hs++) {
fMeanMultiplicity[hs][chipNr]=NULL;
fScanObj=NULL;
fType=99;
fDacId=99;
+ fRouterNr=99;
for (UInt_t chipNr=0; chipNr<11; chipNr++) {
for (UInt_t hs=0; hs<6; hs++) {
fMeanMultiplicity[hs][chipNr]=NULL;
}
fScanObj = new AliITSOnlineSPDscan(fFileName.Data());
fType = fScanObj->GetType();
+ fRouterNr = fScanObj->GetRouterNr();
delete fScanObj;
// init container
#ifndef ALIITSONLINESPDSCANANALYZER_H
#define ALIITSONLINESPDSCANANALYZER_H
+/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
////////////////////////////////////////////////////////////
// Author: Henrik Tydesjo //
UInt_t GetType() const {return fType;}
UInt_t GetDacId() const {return fDacId;}
+ UInt_t GetRouterNr() const {return fRouterNr;}
Int_t GetDelay(UInt_t hs, UInt_t chipNr);
Int_t GetMinTh(UInt_t hs, UInt_t chipNr);
private:
UInt_t fType; // calib type
UInt_t fDacId; // dac id
+ UInt_t fRouterNr; // router nr
TString fFileName; // container file name
enum calibvals{kMINTH,kMEANTH,kDAC,kUNIMA,kNOISE,kDELAY}; // calib types
+/**************************************************************************
+ * Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+/* $Id$ */
+
////////////////////////////////////////////////////////////
// Author: Henrik Tydesjo //
// Interface class to the containers of an online scan //
// with only one step. //
////////////////////////////////////////////////////////////
+
#include <TFile.h>
#include "AliITSOnlineSPDscanSingle.h"
#include "AliITSOnlineSPDscanInfo.h"
#ifndef ALI_ITS_ONLINESPDSCANSINGLE_H
#define ALI_ITS_ONLINESPDSCANSINGLE_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
////////////////////////////////////////////////////////////
// Author: Henrik Tydesjo //
AliITSOnlineSPDscanSingle(const Char_t *fileName);
virtual ~AliITSOnlineSPDscanSingle();
- // virtual void Clear() {AliITSOnlineSPDscan::Clear(); AddScanStep();}
// SET METHODS ***********************************
void SetHits(UInt_t hs, UInt_t chipi, UInt_t coli, UInt_t rowi, UInt_t val);
void IncrementTriggers();
Float_t GetAverageMultiplicityTot(UInt_t hs);
- protected:
-
- ClassDef(AliITSOnlineSPDscanSingle,1)
- };
+};
#endif
enum calib_types{MINTH,MEANTH,DAC,UNIMA,NOISE,DELAY};
- // ********* STEP 0: Get configuration files from db (if there are any) *******************************
+ // ********* STEP 0: Get configuration files from db (if there are any) , then read parameters*********
UInt_t nrTuningParams = 0;
TObjArray paramNames; paramNames.SetOwner(kTRUE);
TObjArray paramVals; paramVals.SetOwner(kTRUE);
analyzer->SetParam(((TString*)paramNames.At(i))->Data(),((TString*)paramVals.At(i))->Data());
}
- Int_t type = analyzer->GetType();
- Int_t dacId = analyzer->GetDacId();
+ UInt_t type = analyzer->GetType();
+ UInt_t dacId = analyzer->GetDacId();
+ UInt_t routerNr = analyzer->GetRouterNr();
if (type!=99) {
if (type==DAC) {
printf("SPD calibrator Step2: eqId %d, type %d, dacId %d\n",eqId,type,dacId);
}
else printf("SPD calibrator Step2: eqId %d type %d\n",eqId,type);
}
-
+
+
// algorithms for the different types of scans:
dcsfile << "[SPD SCAN]\n";
dcsfile << "RunNumber=" << runNr << "\n";
dcsfile << "Type=" << type << "\n";
+ dcsfile << "Router=" << routerNr << "\n";
dcsfile << "ActualDetCoonfiguration=" << "0,-1,-1\n"; // dummy values for now
dcsfile << "[NOISY]\n";
nrDCSconfigFilesProduced++;
dcsfile << "[SPD SCAN]\n";
dcsfile << "RunNumber=" << runNr << "\n";
dcsfile << "Type=" << type << "\n";
+ dcsfile << "Router=" << routerNr << "\n";
dcsfile << "ActualDetCoonfiguration=" << "0,-1,-1\n"; // dummy values for now
dcsfile << "[DACvalues]\n";
nrDCSconfigFilesProduced++;
dcsfile << "[SPD SCAN]\n";
dcsfile << "RunNumber=" << runNr << "\n";
dcsfile << "Type=" << type << "\n";
+ dcsfile << "Router=" << routerNr << "\n";
dcsfile << "ActualDetCoonfiguration=" << "0,-1,-1\n"; // dummy values for now
dcsfile << "[DACvalues]\n";
nrDCSconfigFilesProduced++;