]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/READMEshuttle.txt
Adding more bins in QA (Alis)
[u/mrichter/AliRoot.git] / MUON / READMEshuttle.txt
index 1bbeea79a197338654319c16d88d9b27bf07b0c9..8bd1b899daea9ad8fdda170badb80f4491df6449 100644 (file)
@@ -65,16 +65,16 @@ Two options here. You can either use a pre-done set of ASCII pedestals files (ge
  
 We've written an AliMUONPedestalEventGenerator which creates fake pedestal events. The pedestal values
 are taken from the Offline Condition DataBase (OCDB) (which is itself fakely filled
-using the WritePedestals() method of AliMUONCDB class
+using the static WritePedestals() method of AliMUONCDB class
 
 So first generate a valid pedestal CDB entry by using the AliMUONCDB class. There's one
- little trick : you should first point to the "default" OCDB (local://$ALICE_ROOT) in
+ little trick : you should first point to the "default" OCDB (local://$ALICE_ROOT/OCDB) in
  order to get the mapping loaded, then only you can play with another OCDB. 
  Or, alternatively, you can put the mapping stuff in the test OCDB, like this :
  
 <pre>
 root[] AliMpDDLStore::ReadData(); // read mapping from ASCII files
-root[] const char* cdbpath="local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB"; // where to put the CDB
+root[] const char* cdbpath="local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB"; // where to put the CDB
 root[] AliCDBManager::Instance()->SetDefaultStorage(cdbpath);
 root[] AliMpCDB::WriteMpSegmentation();
 root[] AliMpCDB::WriteDDLStore();
@@ -84,16 +84,16 @@ If you've not put the mapping in the test database, then you must start with the
  test database :
  
 <pre>
-root[] AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT"); // only if you've not put the mapping in test OCDB
+root[] AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); // only if you've not put the mapping in test OCDB
 root[] AliCDBManager::Instance()->SetRun(0); // only if you've not put the mapping in test OCDB
 root[] AliMpCDB::LoadDDLStore(); // only if you've not put the mapping in test OCDB
 // below are lines to be executed whatever you did with the mapping...
-root[] const char* cdbpath="local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB"; // where to put the CDB
-root[] AliMUONCDB cdb(cdbpath)
+root[] const char* cdbpath="local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB"; // where to put the CDB
+root[] AliCDBManager::Instance()->SetDefaultStorage(cdbpath);
 root[] Bool_t defaultValues = kFALSE; // to generate random values instead of plain zeros...
 root[] Int_t startRun = 80;
 root[] Int_t endRun = 80;
-root[] cdb.WritePedestals(defaultValues, startRun, endRun);
+root[] AliMUONCDB::WritePedestals(defaultValues, startRun, endRun);
 </pre>
 
 Expected output is (don't worry about the warnings, they are harmless) :
@@ -104,7 +104,7 @@ I-AliMUONCDB::ManuList: Manu List generated.
 I-AliMUONCDB::MakePedestalStore: 16828 Manus and 1064008 channels.
 I-AliMUONCDB::WritePedestals: Ngenerated = 1064008
 I-AliCDBManager::Init: AliEn classes enabled in Root. AliCDBGrid factory registered.
-I-AliCDBManager::SetDefaultStorage: Setting Default storage to: local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB
+I-AliCDBManager::SetDefaultStorage: Setting Default storage to: local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB
 I-AliCDBLocal::PutEntry: CDB object stored into file ($ALICE_ROOT)/SHUTTLE/TestShuttle/TestCDB/MUON/Calib/Pedestals/Run80_80_v0_s0.root
 </pre>
 
@@ -112,7 +112,7 @@ Then use the AliMUONPedestalEventGenerator to produce simulated pedestal events.
 
 Usage (from the Root prompt) :
 <pre>
-AliMpCDB::LoadDDLStore2(); // load mapping from "default" OCDB=local://$ALICE_ROOT
+AliMpCDB::LoadDDLStore2(); // load mapping from "default" OCDB=local://$ALICE_ROOT/OCDB
 AliCDBManager::Instance()->SetDefaultStorage(cdbpath); // so you will read 
 // back pedestals values generated in the previous step
 const char* dateFileName = "raw.date"; // base filename for the output
@@ -134,7 +134,7 @@ per LDC, as will be used in real life), the latter ones being roughly 100 MB eac
 //
 
 The raw.date.LDC* files are then processed using the DA online program (which is not built by default, but must be made
- explicitely using make daqDA-MCH from $ALICE_ROOT, and requires some DATE setup..., see \ref READMEmchda.txt )
+ explicitely using make daqDA-MCH from $ALICE_ROOT, and requires some DATE setup..., see \ref README_mchda )
  
 <pre>
  MUONTRKda.exe -f raw.date.LCDi -a LDCi.ped (i=0,1,2,3)
@@ -164,13 +164,13 @@ So first you need to generate a valid pedestal CDB entry and a valid gain CDB
 entry by using the AliMUONCDB class, from the Root prompt:
 
 <pre>
-const char* cdbpath="local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB"; // where to put the CDB
-AliMUONCDB cdb(cdbpath)
+const char* cdbpath="local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB"; // where to put the CDB
+root[] AliCDBManager::Instance()->SetDefaultStorage(cdbpath);
 Bool_t defaultValues = kFALSE; // to generate random values instead of plain zeros...
 Int_t gainRun = 80;
 Int_t pedRun = 81;
-cdb.WritePedestals(defaultValues, pedRun, pedRun);
-cdb.WriteGains(defaultValues, gainRun, gainRun);
+AliMUONCDB::WritePedestals(defaultValues, pedRun, pedRun);
+AliMUONCDB::WriteGains(defaultValues, gainRun, gainRun);
 </pre>
 
 Expected output is (don't worry about the warnings, they are harmless) :
@@ -182,7 +182,7 @@ will be n x 4 date files (n is the number of fake injections, currently 9, and 4
 Usage (again, from the Root prompt) :
 
 <pre>
-const char* cdbpath="local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB"; // where to get the CDB
+const char* cdbpath="local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB"; // where to get the CDB
 AliCDBManager::Instance()->SetDefaultStorage(cdbpath); // so you will read 
 // back pedestals and gain values generated in the previous step
 const char* dateFileName = "raw.date"; // base filename for the output