TString runType = GetRunType();
Log(Form("ProcessDCS - RunType: %s",runType.Data()));
- if((runType == "STANDALONE")||
- (runType == "PHYSICS")
- || (runType == "AMPLITUDE_CALIBRATION")){
-
- // return kFALSE;
- return kTRUE;
- }else{
- return kFALSE;
- }
+ if(runType == "PHYSICS" )
+ return kTRUE;
+ else
+ return kFALSE;
+
}
//____________________________________________________
Bool_t resultLaser = kFALSE;
Bool_t writeok = kFALSE;
//processing DAQ
- TObjString *source;
TList* list = GetFileSources(kDAQ, "AMPLITUDE_CALIBRATION");
AliT0CalibWalk *laser = new AliT0CalibWalk();
+ TObjString *source;
if (list)
{
TIter iter(list);
const char *laserFile = GetFile(kDAQ, "AMPLITUDE_CALIBRATION", source->GetName());
if (laserFile)
{
- Log(Form("File with Id LASER found in source %s!", source->GetName()));
+ Log(Form("File with Id AMPLITUDE_CALIBRAION found in source %s!", source->GetName()));
writeok = laser->MakeWalkCorrGraph(laserFile);
}
AliCDBMetaData metaData;
metaData.SetBeamPeriod(0);
- metaData.SetResponsible("Tomek&Michal");
+ metaData.SetResponsible("Alla");
metaData.SetComment("Walk correction from laser runs.");
if (writeok) resultLaser=Store("Calib","Slewing_Walk", laser, &metaData, 0, 1);
else {
-
+
Log(Form("writeok = %d no peaks in CFD spectra",writeok));
return 0;
}
Log(Form("resultLaser = %d",resultLaser));
+ if (!resultLaser)
+ {
+ Log("No Laser Data stored");
+ return 3;//return error code for failure in storing Laser Data
+ }
}
else
{
- Log(Form("Could not find file with Id LASER in source %s!", source->GetName()));
+ Log(Form("Could not find file with Id AMPLITUDE_CALIBRAION "));
return 1;
}
- if (!resultLaser)
- {
- Log("No Laser Data stored");
- return 3;//return error code for failure in storing Laser Data
- }
- else {
- Log("No sources found for id LASER!");
- return 1;
- }
- return 0;
+ return 0;
}
//____________________________________________________