]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/TestZDCPreprocessor.C
Changes for report #76227: ZDC TDC info in ESD and physics selection (for release...
[u/mrichter/AliRoot.git] / ZDC / TestZDCPreprocessor.C
index c6ed70e9c598c1f2e35fb98ccd8d3c3e4762891c..7c3b554225a2cb0ec1f02b5ae93d7215bd286050 100644 (file)
@@ -19,7 +19,8 @@ void TestZDCPreprocessor(const char* runType="PHYSICS")
 
   // TODO if needed, change location of OCDB and Reference test folders
   // by default they are set to $ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB and TestReference
-  AliTestShuttle::SetMainCDB("local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB");
+  //AliTestShuttle::SetMainCDB("local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB");
+  AliTestShuttle::SetMainCDB("local://$ALICE_ROOT/OCDB");
   //AliTestShuttle::SetMainCDB("alien://folder=/alice/data/2009/OCDB/");
   AliTestShuttle::SetMainRefStorage("local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestReference");
 
@@ -36,13 +37,13 @@ void TestZDCPreprocessor(const char* runType="PHYSICS")
   //     the format of the file is explained in ReadDCSAliasMap()
   //     To use it uncomment the following line:
   //
-  TMap* dcsAliasMap = ReadDCSAliasMap();
+  //TMap* dcsAliasMap = ReadDCSAliasMap();
   //
   // (b) generated in this macro: Use CreateDCSAliasMap() and its documentation
   //     To use it uncomment the following line:
   //
-  //TMap* dcsAliasMap = CreateDCSAliasMap();
-  //dcsAliasMap->Print("");
+  TMap* dcsAliasMap = CreateDCSAliasMap();
+  dcsAliasMap->Print("");
   //WriteDCSAliasMap();
 
   // now give the alias map to the shuttle
@@ -72,6 +73,8 @@ void TestZDCPreprocessor(const char* runType="PHYSICS")
   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");
 
   // TODO(3)
@@ -87,8 +90,9 @@ void TestZDCPreprocessor(const char* runType="PHYSICS")
   // 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");
 
@@ -123,6 +127,7 @@ void TestZDCPreprocessor(const char* runType="PHYSICS")
   
   // Test the preprocessor
   shuttle->Process();
+  //printf(" Back to test macro: final checks! \n");
 
   // TODO(7)
   // In the preprocessor AliShuttleInterface::Store should be called to put the final
@@ -233,12 +238,12 @@ TMap* CreateDCSAliasMap()
   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);
    
      TString aliasName = aliasNames[nAlias];
-     printf("\n\n alias: %s\n\n",aliasName.Data());
+     //printf("\n\n alias: %s\n\n",aliasName.Data());
 
      for(int timeStamp=0;timeStamp<=2000;timeStamp+=500){
        Float_t simVal = (Float_t) (random.Gaus()*600.+1800.);
@@ -247,7 +252,7 @@ TMap* CreateDCSAliasMap()
        valueSet->Add(dcsVal);
      }
      aliasMap->Add(new TObjString(aliasName), valueSet);
-   }
+//   }
   }
 
   return aliasMap;