2 /// Macro to help the LC2 user to go from the (local) bus patch id presented
3 /// by LC2 to a "human-redeable" location in the slat stations
7 #if !defined(__CINT__) || defined(__MAKECINT__)
10 #include "Riostream.h"
12 #include "AliMpDDLStore.h"
13 #include "AliMpBusPatch.h"
17 void St345CrocusFlatCables()
19 AliMpCDB::LoadDDLStore2();
21 Int_t offset(AliDAQ::DdlIDOffset("MUONTRK"));
26 Int_t localBusPatchId;
28 cout << Form("Equipment Id (from %d to %d, or -1 to quit) ? ",
29 AliDAQ::DdlID("MUONTRK",0),
30 AliDAQ::DdlID("MUONTRK",AliDAQ::NumberOfDdls("MUONTRK")-1));
34 if ( equipmentId < 0 ) break;
36 cout << "Local bus patch Id (-1 to quit) ? ";
38 cin >> localBusPatchId;
40 if ( localBusPatchId < 0 ) break;
42 Int_t busPatchId = AliMpBusPatch::GetGlobalBusID(localBusPatchId,equipmentId-offset);
44 AliMpBusPatch* bp = AliMpDDLStore::Instance()->GetBusPatch(busPatchId);