3 // This class runs the test preprocessor
4 // It uses AliTestShuttle to simulate a full Shuttle process
6 void TestPreprocessorSSD()
9 gSystem->Load("libTestShuttle.so");
11 // initialize location of CDB
12 // AliCDBManager::Instance()->SetDefaultStorage("local://${ALICE_ROOT}/SHUTTLE/TestShuttle/TestCDB");
14 AliTestShuttle::SetMainCDB("local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB");
15 AliTestShuttle::SetMainRefStorage("local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestReference");
17 printf("Test OCDB storage Uri: %s\n", AliShuttleInterface::GetMainCDB().Data());
18 printf("Test Reference storage Uri: %s\n", AliShuttleInterface::GetMainRefStorage().Data());
20 // create AliTestShuttle instance
21 // The parameters are run, startTime, endTime
23 AliTestShuttle* shuttle = new AliTestShuttle(7, 0, 1);
24 shuttle->SetInputRunType("PEDESTAL_RUN");
26 shuttle->AddInputFile(AliTestShuttle::kDAQ, "SSD", "CALIBRATION", "LDC0", "ITSSSDda_LDC0.root");
27 shuttle->AddInputFile(AliTestShuttle::kDAQ, "SSD", "CALIBRATION", "LDC1", "ITSSSDda_LDC1.root");
28 shuttle->AddInputFile(AliTestShuttle::kDAQ, "SSD", "CALIBRATION", "LDC2", "ITSSSDda_LDC2.root");
31 // Create the preprocessor that should be tested, it registers itself automatically to the shuttle
32 AliPreprocessor *pp = new AliITSPreprocessorSSD(shuttle);
34 // Test the preprocessor
39 // Check the file which should have been created
40 AliCDBManager::Instance()->SetDefaultStorage("local://${ALICE_ROOT}/SHUTTLE/TestShuttle/TestCDB");
41 AliCDBEntry* entry = AliCDBManager::Instance()->Get("ITS/Calib/NoiseSSD", 7);
44 printf("The file is not there. Something went wrong.\n");