Reading dummy entry for LTU configuration if the run is in standalone partition.
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Dec 2010 13:28:39 +0000 (13:28 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Dec 2010 13:28:39 +0000 (13:28 +0000)
GRP/MakeCTPDummyEntries.C
GRP/TestGRPPreprocessor.C
OCDB/GRP/CTP/DummyLTUConfig/Run0_999999999_v0_s0.root [new file with mode: 0644]
STEER/AliGRPPreprocessor.cxx

index 6e0dc10..4a19f2e 100644 (file)
@@ -14,23 +14,86 @@ void MakeCTPDummyEntries(){
        AliTriggerRunScalers *scalers = AliTriggerRunScalers::ReadScalers(filenameScalers);
        AliCTPTimeParams *ctptime = AliCTPTimeParams::LoadCTPTimeParams(filenameCTPtime);
 
+       // CTP configuration
        AliCDBMetaData* metaconfig = new AliCDBMetaData();
        metaconfig->SetResponsible("Roman Lietava");
        metaconfig->SetComment("Dummy CTP configuration for standalone runs");
        AliCDBId idconfig("GRP/CTP/DummyConfig",0,AliCDBRunRange::Infinity());
        man->Put(runcfg,idconfig, metaconfig);
 
+       // CTP scalers
        AliCDBMetaData* metascalers = new AliCDBMetaData();
        metascalers->SetResponsible("Roman Lietava");
        metascalers->SetComment("Dummy CTP scalers for standalone runs");
        AliCDBId idscalers("GRP/CTP/DummyScalers",0,AliCDBRunRange::Infinity());
        man->Put(scalers,idscalers, metascalers);
 
+       // CTP time parameters
        AliCDBMetaData* metactptime = new AliCDBMetaData();
        metactptime->SetResponsible("Roman Lietava");
        metactptime->SetComment("Dummy CTP time params for standalone runs");
        AliCDBId idctptime("GRP/CTP/DummyCTPtime",0,AliCDBRunRange::Infinity());
        man->Put(ctptime,idctptime, metactptime);
 
+       // CTP LTU configuration
+
+       TObjArray* ltuarray = new TObjArray();
+       ltuarray->SetOwner(1);
+       AliLTUConfig* ltu;
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("ITSSPD"),14000.,16459.,13);
+       ltuarray->AddAtAndExpand(ltu,0);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("ITSSDD"),3126.,16459.,8);
+       ltuarray->AddAtAndExpand(ltu,1);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("ITSSSD"),3126.,16459.,17);
+       ltuarray->AddAtAndExpand(ltu,2);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("TPC"),3126.,16459.,15);
+       ltuarray->AddAtAndExpand(ltu,3);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("TRD"),3126.,16459.,17);
+       ltuarray->AddAtAndExpand(ltu,4);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("TOF"),3126.,16459.,14);
+       ltuarray->AddAtAndExpand(ltu,5);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("HMPID"),3126.,16459.,19);
+       ltuarray->AddAtAndExpand(ltu,6);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("PHOS"),3126.,16459.,19);
+       ltuarray->AddAtAndExpand(ltu,7);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("CPV"),3126.,16459.,16);
+       ltuarray->AddAtAndExpand(ltu,8);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("PMD"),3126.,16459.,22);
+       ltuarray->AddAtAndExpand(ltu,9);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("MUONTRK"),3126.,16459.,8);
+       ltuarray->AddAtAndExpand(ltu,10);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("MUONTRG"),3126.,16459.,11);
+       ltuarray->AddAtAndExpand(ltu,11);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("FMD"),3126.,16459.,17);
+       ltuarray->AddAtAndExpand(ltu,12);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("T0"),3126.,16459.,15);
+       ltuarray->AddAtAndExpand(ltu,13);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("VZERO"),2000.,16459.,12);
+       ltuarray->AddAtAndExpand(ltu,14);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("ZDC"),3126.,16459.,17);
+       ltuarray->AddAtAndExpand(ltu,15);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("ACORDE"),16126.,22459.,18);
+       ltuarray->AddAtAndExpand(ltu,16);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("EMCAL"),3126.,16459.,19);
+       ltuarray->AddAtAndExpand(ltu,17);
+       ltu = new AliLTUConfig((Char_t)AliDAQ::DetectorID("DAQ_TEST"),3126.,16459.,10);
+       ltuarray->AddAtAndExpand(ltu,18);
+
+       AliCDBMetaData* md = new AliCDBMetaData();
+       md->SetResponsible("Roman Lietava");
+       md->SetComment("Example of (dummy -> default settings from 23/11/2010) entry for the detectors' LTU config");
+       AliCDBId id("GRP/CTP/DummyLTUConfig",0,AliCDBRunRange::Infinity());
+       man->Put(ltuarray,id, md);
+       // check if ok
+       /*
+       man->SetRun(0);
+       TObjArray* ltuarrayR = (TObjArray*) man->Get("GRP/CTP/LTUConfig")->GetObject();
+       cout << "Array size: " << ltuarrayR->GetEntriesFast() << endl;
+        for(Int_t i=0;i<ltuarrayR->GetEntriesFast();i++){
+         if(ltu=(AliLTUConfig*) ltuarrayR->At(i)) ltu->Print();
+         else cout << "--------------------->Empty position " << i << endl;
+       }
+       */
+
        return;
 }
index 13e3a05..ab384a5 100644 (file)
@@ -17,6 +17,7 @@
 // 5 --> DCS DPs error
 // 6 --> Missing beamEnergy
 // 7 --> null buffer for Trigger Config
+// 8 --> Missing LTU configuration
 
 // Need to include dummy files in TestShuttle/TestCDB for CTP Configuration and Scalers 
 // (see macro $ALICE_ROOT/GRP/MakeCTPDummyEntries.C)
@@ -61,7 +62,9 @@ void TestGRPPreprocessor(const char* runtype="PHYSICS", TString partition="ALICE
                          ltu[1] = "7000";
                          ltu[2] = "9000";
                  }
-                 shuttle->SetLTUConfig(ltu,detOnlineName.Data());
+                 if (errorLevel != 8 && !partition.IsNull() && detector.IsNull()){
+                         shuttle->SetLTUConfig(ltu,detOnlineName.Data());
+                 }
          }
   }
 
@@ -80,15 +83,16 @@ void TestGRPPreprocessor(const char* runtype="PHYSICS", TString partition="ALICE
          shuttle->AddInputFile(AliShuttleInterface::kDAQ, "SPD", "VertexDiamond", "gdc-GLOBAL-01", "$ALICE_ROOT/GRP/ShuttleInput/run000104892_SPD_mon-DA-SPD-0_VertexDiamond");
          shuttle->AddInputFile(AliShuttleInterface::kDCS, "GRP", "LHCData", "", "$ALICE_ROOT/GRP/ShuttleInput/testRun_GRP_run_number_testRun_data.txt");
           
-         // for example:
          /*
-           shuttle->AddInputFile(AliShuttleInterface::kDAQ, "GRP", "Period_LHC09c_TPC.Seq_0.tag.root", "GDC35", "/home/zampolli/SOFT/AliRoot/AliRoot_Trunk/GRP/ShuttleInput/run000080740_GRP_gdc-aldaqpc035_Period_LHC09c.Seq_0.tag.root");
+         // for example:
+         
+         shuttle->AddInputFile(AliShuttleInterface::kDAQ, "GRP", "Period_LHC09c_TPC.Seq_0.tag.root", "GDC35", "/home/zampolli/SOFT/AliRoot/AliRoot_Trunk/GRP/ShuttleInput/run000080740_GRP_gdc-aldaqpc035_Period_LHC09c.Seq_0.tag.root");
          shuttle->AddInputFile(AliShuttleInterface::kDAQ, "GRP", "Period_LHC09c_TPC.Seq_0.tag.root", "GDC36", "/home/zampolli/SOFT/AliRoot/AliRoot_Trunk/GRP/ShuttleInput/run000080740_GRP_gdc-aldaqpc036_Period_LHC09c.Seq_0.tag.root");
          shuttle->AddInputFile(AliShuttleInterface::kDAQ, "GRP", "Period_LHC09c_TPC.Seq_0.tag.root", "GDC44", "/home/zampolli/SOFT/AliRoot/AliRoot_Trunk/GRP/ShuttleInput/run000080740_GRP_gdc-aldaqpc044_Period_LHC09c.Seq_0.tag.root");
          shuttle->AddInputFile(AliShuttleInterface::kDAQ, "GRP", "Period_LHC09c_TPC.Seq_0.tag.root", "GDC45", "/home/zampolli/SOFT/AliRoot/AliRoot_Trunk/GRP/ShuttleInput/run000080740_GRP_gdc-aldaqpc045_Period_LHC09c.Seq_0.tag.root");
          shuttle->AddInputFile(AliShuttleInterface::kDAQ, "SPD", "VertexDiamond", "gdc-GLOBAL-01", "/home/zampolli/SOFT/AliRoot/AliRoot_Trunk/GRP/ShuttleInput/run000104892_SPD_mon-DA-SPD-0_VertexDiamond");
          shuttle->AddInputFile(AliShuttleInterface::kDCS, "GRP", "LHCData", "", "/home/zampolli/SOFT/AliRoot/AliRoot_Trunk/GRP/ShuttleInput/testRun_GRP_run_number_testRun_data.txt");
-         */      
+         */  
   }
 
   // simulating input from DCS FXS
diff --git a/OCDB/GRP/CTP/DummyLTUConfig/Run0_999999999_v0_s0.root b/OCDB/GRP/CTP/DummyLTUConfig/Run0_999999999_v0_s0.root
new file mode 100644 (file)
index 0000000..d9f660f
Binary files /dev/null and b/OCDB/GRP/CTP/DummyLTUConfig/Run0_999999999_v0_s0.root differ
index 11d0006..8ff3068 100644 (file)
@@ -529,8 +529,6 @@ UInt_t AliGRPPreprocessor::Process(TMap* valueMap)
        Log("*************** Processing LTU Configuration");
        
        if (partition.IsNull() && !detector.IsNull()){ // standalone partition
-               Log("STANDALONE partition for current run, not retrieving LTU configuration");
-               /*
                Log("STANDALONE partition for current run, using LTU configuration dummy value");
                AliCDBEntry *cdbEntry = GetFromOCDB("CTP","DummyLTUConfig");
                if (!cdbEntry) {
@@ -553,7 +551,6 @@ UInt_t AliGRPPreprocessor::Process(TMap* valueMap)
                                }
                        }
                }
-               */
        }
 
        else if (!partition.IsNull() && detector.IsNull()){ // global partition