void TestZDCPreprocessor(const char* runType="PHYSICS")
{
// load library
- gSystem->Load("libTestShuttle.so");
+ gSystem->Load("libTestShuttle");
// create AliTestShuttle instance
// The parameters are run, startTime, endTime
// To use it uncomment the following line:
//
TMap* dcsAliasMap = CreateDCSAliasMap();
- //dcsAliasMap->Print("");
+ dcsAliasMap->Print("");
//WriteDCSAliasMap();
// now give the alias map to the shuttle
shuttle->AddInputFile(AliTestShuttle::kDAQ, "ZDC", "EMDENERGYCALIB", "LDC", "ZDCEnergyCalib.dat");
shuttle->AddInputFile(AliTestShuttle::kDAQ, "ZDC", "EMDTOWERCALIB", "LDC", "ZDCTowerCalib.dat");
//
+ shuttle->AddInputFile(AliTestShuttle::kDAQ, "ZDC", "MBCALIB", "LDC", "ZDCMBCalib.root");
+ //
shuttle->AddInputFile(AliTestShuttle::kDAQ, "ZDC", "MAPPING", "MON", "ZDCChMapping.dat");
+ shuttle->AddInputFile(AliTestShuttle::kDAQ, "ZDC", "TDCDATA", "MON", "ZDCTDCCalib.dat");
+ shuttle->AddInputFile(AliTestShuttle::kDAQ, "ZDC", "TDCHISTOS", "MON", "ZDCTDCHisto.root");
- // TODO(3)
+ // Todo(3)
//
// The shuttle can read run type stored in the DAQ logbook.
// To test it, we must provide the run type manually. They will be retrieved in the preprocessor
// To test it, we must provide the run parameters manually. They will be retrieved in the preprocessor
// using GetRunParameter function.
// In real life the parameters will be retrieved automatically from the run logbook;
- //shuttle->AddInputRunParameter("beamType", "A-A");
- shuttle->AddInputRunParameter("beamType", "p-p");
+ shuttle->AddInputRunParameter("beamType", "A-A");
+ shuttle->AddInputRunParameter("beamEnergy", "1380");
+ //shuttle->AddInputRunParameter("beamType", "p-p");
shuttle->AddInputRunParameter("totalEvents", "1000");
shuttle->AddInputRunParameter("NumberOfGDCs", "1");
->Get("ZDC/Calib/LaserCalib", 0);
else if((str.CompareTo("CALIBRATION_EMD")) == 0) chkEntry1 = AliCDBManager::Instance()->GetStorage(AliShuttleInterface::GetMainCDB())
->Get("ZDC/Calib/EnergyCalib", 0);
+ else if((str.CompareTo("PHYSICS")) == 0) chkEntry1 = AliCDBManager::Instance()->GetStorage(AliShuttleInterface::GetMainCDB())
+ ->Get("ZDC/Calib/TDCCalib", 0);
if(!chkEntry0){
if((str.CompareTo("STANDALONE_PEDESTAL")) == 0) printf("No file in ZDC/Calib/Pedestal\n");
else if((str.CompareTo("STANDALONE_LASER")) == 0) printf("No file in ZDC/Calib/LaserCalib\n");
else if((str.CompareTo("CALIBRATION_EMD")) == 0) printf("No file in ZDC/Calib/EnergyCalib\n");
+ else if((str.CompareTo("PHYSICS")) == 0) printf("No file in ZDC/Calib/TDCCalib\n");
return;
}
aliasNames[27] = "ZDC_REFC_HV.actual.vMon";
//
for(int nAlias=4;nAlias<28;nAlias++){
- if(nAlias<14 || nAlias>18){
+// if(nAlias<14 || nAlias>18){
TObjArray* valueSet = new TObjArray;
valueSet->SetOwner(1);
valueSet->Add(dcsVal);
}
aliasMap->Add(new TObjString(aliasName), valueSet);
- }
+// }
}
return aliasMap;