]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
new test preprocessor
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Nov 2007 19:31:32 +0000 (19:31 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Nov 2007 19:31:32 +0000 (19:31 +0000)
T0/TestPreprocessor.C

index a766f19a455da929d5f33f744b9fe7eaac71ea44..3abe571691c86fb8c3e5a5fe257c5d5f8df3ecd6 100644 (file)
@@ -4,19 +4,27 @@ void TestPreprocessor()
   gSystem->Load("$ALICE_ROOT/SHUTTLE/TestShuttle/libTestShuttle.so");
 
 
-  AliCDBManager::Instance()->SetDefaultStorage("local://./TestCDB");
+  AliTestShuttle::SetMainCDB("local://./TestCDB");
+  AliTestShuttle::SetLocalCDB("local://./TestCDB");
+
+  AliTestShuttle::SetMainRefStorage("local://./TestRef");
+  AliTestShuttle::SetLocalRefStorage("local://./TestRef");
 
   AliTestShuttle* shuttle = new AliTestShuttle(0, 0, 1);
 
   TMap* dcsAliasMap = CreateDCSAliasMap();
 
   shuttle->SetDCSInput(dcsAliasMap);
+  
+  shuttle->SetInputRunType("PHYSICS");
 
   shuttle->AddInputFile(AliTestShuttle::kDAQ, "T00", "TIME", "LDC0", "DAQfile.root");
 
-  AliPreprocessor* start = new AliT0Preprocessor("T00", shuttle);
+  AliPreprocessor* start = new AliT0Preprocessor(shuttle);
 
   shuttle->Process();
+  
+  AliCDBManager::Instance()->SetDefaultStorage("local://TestCDB");
 
   AliCDBEntry* entry = AliCDBManager::Instance()->Get("T00/Calib/Data", 0);
   if (!entry)