]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRIGGER/TestTRIGGERPreprocessor.C
Updated version of ITS QA Checker and related modifications (Melinda)
[u/mrichter/AliRoot.git] / TRIGGER / TestTRIGGERPreprocessor.C
CommitLineData
b48d2542 1/* $Id $ */
2
3// This class runs the test preprocessor
4// It uses AliTestShuttle to simulate a full Shuttle process
5
6void 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
21 // Adding Trigger mask
22 shuttle->SetInputTriggerDetectorMask("0100001");
23 printf("Test OCDB storage Uri: %s\n", AliShuttleInterface::GetMainCDB().Data());
24 printf("Test Reference storage Uri: %s\n", AliShuttleInterface::GetMainRefStorage().Data());
25
26 // Setting RunType
27 shuttle->SetInputRunType("PHYSICS");
28
29 // Defining Preprocessor
30 AliPreprocessor* test = new AliTRIPreprocessor(shuttle);
31
32 // Test the preprocessor
33 shuttle->Process();
34
35}
36