]>
Commit | Line | Data |
---|---|---|
b48d2542 | 1 | /* $Id $ */ |
2 | ||
3 | // This class runs the test preprocessor | |
4 | // It uses AliTestShuttle to simulate a full Shuttle process | |
5 | ||
6 | void TestTRIGGERPreprocessor() | |
7 | { | |
8 | // load library | |
9 | gSystem->Load("$ALICE_ROOT/SHUTTLE/TestShuttle/libTestShuttle.so"); | |
10 | ||
11 | // Defining shuttle instance (run number, start time, end time) | |
12 | AliTestShuttle* shuttle = new AliTestShuttle(7, 0, 1); | |
13 | ||
14 | // Setting OCDB | |
15 | AliTestShuttle::SetMainCDB("local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB"); | |
16 | AliTestShuttle::SetMainRefStorage("local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestReference"); | |
17 | ||
18 | // Adding test input files | |
19 | shuttle->AddInputFile(AliTestShuttle::kDCS, "TRI", "PITConditions", "", "$ALICE_ROOT/TRIGGER/ShuttleInput/pit_dumpFileSep08.txt"); | |
20 | ||
15129f36 | 21 | shuttle->AddInputFile(AliTestShuttle::kDCS, "TRI", "TofFeeLightMap", "", "$ALICE_ROOT/TRIGGER/ShuttleInput/TOFFEElight.20101028.133932.8000"); |
22 | ||
b48d2542 | 23 | // Adding Trigger mask |
24 | shuttle->SetInputTriggerDetectorMask("0100001"); | |
25 | printf("Test OCDB storage Uri: %s\n", AliShuttleInterface::GetMainCDB().Data()); | |
26 | printf("Test Reference storage Uri: %s\n", AliShuttleInterface::GetMainRefStorage().Data()); | |
27 | ||
28 | // Setting RunType | |
29 | shuttle->SetInputRunType("PHYSICS"); | |
30 | ||
31 | // Defining Preprocessor | |
32 | AliPreprocessor* test = new AliTRIPreprocessor(shuttle); | |
33 | ||
34 | // Test the preprocessor | |
35 | shuttle->Process(); | |
36 | ||
37 | } | |
38 |