// processing DCS
- fData->SetFDRFlag(fFDRFlag);
-
if (!dcsAliasMap){
Log("No DCS map found: TOF exiting from Shuttle");
if (fData){
}
else {
- // The processing of the DCS input data is forwarded to AliTOFDataDCS
+ fData->SetFDRFlag(fFDRFlag);
+
+ // The processing of the DCS input data is forwarded to AliTOFDataDCS
resultDCSMap=fData->ProcessData(*dcsAliasMap);
if(!resultDCSMap){
Log("Some problems occurred while processing DCS data, TOF exiting from Shuttle");
// processing DCS HV and LV data points
- fHVLVmaps->SetFDRFlag(fFDRFlag);
-
if (!dcsAliasMap){
Log("No DCS map found: TOF exiting from Shuttle");
if (fHVLVmaps){
}
else {
+ fHVLVmaps->SetFDRFlag(fFDRFlag);
+
// The processing of the DCS input data is forwarded to AliTOFDataDCS
//if (0) { // AdC
resultDCSMap = fHVLVmaps->ProcessData(*dcsAliasMap);
list->Print();
for (Int_t jj=0;jj<list->GetEntries();jj++){
TObjString * str = dynamic_cast<TObjString*> (list->At(jj));
+ if (!str) {
+ AliError("dynamic_cast returned NULL");
+ return 4;
+ }
AliInfo(Form("found source %s", str->String().Data()));
// file to be stored run per run
TString fileNameRun = GetFile(kDAQ, "RUNLevel", str->GetName());
AliInfo("The following sources produced files with the id DELAYS");
listTot->Print();
for (Int_t jj=0;jj<listTot->GetEntries();jj++){
- TObjString * str = dynamic_cast<TObjString*> (listTot->At(jj));
+ TObjString * str = dynamic_cast<TObjString*> (listTot->At(jj));
+ if (!str) {
+ AliError("dynamic_cast returned NULL");
+ return 4;
+ }
AliInfo(Form("found source %s", str->String().Data()));
// file with summed histos, to extract calib params
/* get params from OCDB */
AliCDBEntry *cdbe = NULL;
+ /*
+ * check UseLHCClockPhase flag in RunParams.
+ * if set do nothing and return successfully
+ */
+ cdbe = GetFromOCDB("Calib", "RunParams");
+ if (!cdbe) {
+ Log("cannot get \"RunParams\" entry from OCDB");
+ return 21;
+ }
+ AliTOFRunParams *runparams = (AliTOFRunParams *)cdbe->GetObject();
+ if (runparams->GetUseLHCClockPhase()) {
+ Log("UseLHCClockPhase flag is set in RunParams: online T0-fill not computed");
+ return 0;
+ }
+
/*
* at this stage status object is not on OCDB yet
* since it will be stored later. nevertheless we
sigma = 200.;
}
+ /* scratch values from the fit and use max bin center as t0-fill */
+ mean = maxBinCenter;
+ sigma = -1.;
+ Log(Form("do not care about fitted value, just use max bin as t0-fill: %f ps", mean));
+
/* create RunParams object */
UInt_t timestamp[1] = {0};
Float_t t0[1] = {mean};
runParamsObject->SetT0(t0);
runParamsObject->SetTOFResolution(tofReso);
runParamsObject->SetT0Spread(t0Spread);
+ runParamsObject->SetUseLHCClockPhase(kFALSE);
/* store reference data */
if(fStoreRefData){
for (Int_t jj=0;jj<listPulser->GetEntries();jj++){
Int_t nPulserSource = 0;
TObjString * str = dynamic_cast<TObjString*> (listPulser->At(jj));
+ if (!str) {
+ AliError("dynamic_cast returned NULL");
+ return 4;
+ }
AliInfo(Form("found source %s", str->String().Data()));
// file to be stored run per run
TString fileNamePulser = GetFile(kDAQ, "PULSER", str->GetName());
AliCDBMetaData metaDataHisto;
metaDataHisto.SetBeamPeriod(0);
metaDataHisto.SetResponsible("Chiara Zampolli");
- char comment[200];
- sprintf(comment,"This preprocessor stores the Ref data from a pulser run.");
- metaDataHisto.SetComment(comment);
+ metaDataHisto.SetComment("This preprocessor stores the Ref data from a pulser run.");
AliInfo("Storing Reference Data");
resultPulserRef = StoreReferenceData("Calib","PulserData",htofPulser, &metaDataHisto);
if (!resultPulserRef){
for (Int_t jj=0;jj<listNoise->GetEntries();jj++){
Int_t nNoiseSource = 0;
TObjString * str = dynamic_cast<TObjString*> (listNoise->At(jj));
+ if (!str) {
+ AliError("dynamic_cast returned NULL");
+ return 4;
+ }
AliInfo(Form("found source %s", str->String().Data()));
// file to be stored run per run
TString fileNameNoise = GetFile(kDAQ, "NOISE", str->GetName());
AliCDBMetaData metaDataHisto;
metaDataHisto.SetBeamPeriod(0);
metaDataHisto.SetResponsible("Chiara Zampolli");
- char comment[200];
- sprintf(comment,"This preprocessor stores the Ref data from a noise run. ");
- metaDataHisto.SetComment(comment);
+ metaDataHisto.SetComment("This preprocessor stores the Ref data from a noise run. ");
AliInfo("Storing Reference Data");
resultNoiseRef = StoreReferenceData("Calib","NoiseData",htofNoise, &metaDataHisto);
if (!resultNoiseRef){
/* get channel index */
index = AliTOFGeometry::GetIndex(det);
+ if (index < 0) continue;
/* get cable time shift */
cableTimeShift = AliTOFCableLengthMap::GetCableTimeShift(iddl, islot, ichain, itdc);