![]() |
AliRoot Core
da88d91 (da88d91)
|
Macro test for the creation of a RejectList object (for simulations) in the OCDB, for the MUON Tracke. More...
#include "AliCDBEntry.h"
#include "AliCDBManager.h"
#include "AliDAQ.h"
#include "AliDCSValue.h"
#include "AliMUONCDB.h"
#include "AliMUONCalibParamNI.h"
#include "AliMUONCalibrationData.h"
#include "AliMUONPadStatusMaker.h"
#include "AliMUONPadStatusMapMaker.h"
#include "AliMUONRecoParam.h"
#include "AliMUONRejectList.h"
#include "AliMUONTrackerData.h"
#include "AliMUONVCalibParam.h"
#include "AliMpBusPatch.h"
#include "AliMpCDB.h"
#include "AliMpConstants.h"
#include "AliMpDCSNamer.h"
#include "AliMpDDLStore.h"
#include "AliMpDEIterator.h"
#include "AliMpDEManager.h"
#include "AliMpDetElement.h"
#include "AliSysInfo.h"
#include "TEnv.h"
#include <Riostream.h>
#include <TFile.h>
#include <TGrid.h>
#include <TMap.h>
#include <TObjArray.h>
#include <TObject.h>
#include <TTree.h>
#include <vector>
#include "AliCounterCollection.h"
#include "AliMUONTrackerDataWrapper.h"
#include "AliMUONPainterDataRegistry.h"
Go to the source code of this file.
Classes | |
class | RunInfo |
Functions | |
std::ostream & | operator<< (std::ostream &out, const RunInfo &run) |
AliMUONRejectList * | CheckDE_BP_ManuPedestals (Int_t rejectMask, AliMUONPadStatusMaker &status) |
Int_t | AddEventsSingleRun (Int_t run_number, Long64_t nEvents, AliMUONRejectList &rejectedEvents) |
AliMUONRejectList * | CreateWeightedRejectList (AliCounterCollection &cc, const char *ocdbPath="local:///Users/laurent/Alice/OCDBcopy2013", const char *weigthWithTrigger="CMSL7-B-NOPF-MUON") |
bool | CreateWeightedRejectList (const char *runlistfile="runlist.txt", const char *rejectListPath="local://$HOME/OCDB", const char *author="Matthieu Lenhardt") |
Variables | |
std::vector< RunInfo > | runs |
Macro test for the creation of a RejectList object (for simulations) in the OCDB, for the MUON Tracke.
Usage:
root[0] .L CreateWeightedRejectList.C+ root[1] CreateWeightedRejectList("runlist.txt","local://$HOME/myLocalOCDB");
where runlist.txt has 2 integers per line = "run nevents" where nevents is the number of events where there's (for instance) a CMUS1B trigger
Assuming the file coming from the Export feature of the logbook is runlist.logbook.txt =>
115521;PHYSICS_1;1357;0.9 115516;PHYSICS_1;944;0.9
The awk command below will output the needed format for this macro :
awk '{split ($0,a,";"); print a[1] " " a[3];}' runlist.logbook.txt =>
115521 1357 115516 944
Definition in file CreateWeightedRejectList.C.
Int_t AddEventsSingleRun | ( | Int_t | run_number, |
Long64_t | nEvents, | ||
AliMUONRejectList & | rejectedEvents | ||
) |
Definition at line 381 of file CreateWeightedRejectList.C.
Referenced by CreateWeightedRejectList().
AliMUONRejectList * CheckDE_BP_ManuPedestals | ( | Int_t | rejectMask, |
AliMUONPadStatusMaker & | status | ||
) |
Definition at line 341 of file CreateWeightedRejectList.C.
Referenced by AddEventsSingleRun().
AliMUONRejectList* CreateWeightedRejectList | ( | AliCounterCollection & | cc | ) |
Definition at line 115 of file CreateWeightedRejectList.C.
bool CreateWeightedRejectList | ( | const char * | runlistfile = "runlist.txt" , |
const char * | rejectListPath = "local://$HOME/OCDB" , |
||
const char * | author = "Matthieu Lenhardt" |
||
) |
Create a weighted RejectList for the runs included in the run list The cuts are the same that the one applied in the RecoParam used to create the ESDs.
runlistfile | : an ASCII file where each line is a pair "run nevents" |
rejectListPath | : set this to the folder where the RejectList will be created (must have right access to it, of course) |
Definition at line 224 of file CreateWeightedRejectList.C.
std::ostream& operator<< | ( | std::ostream & | out, |
const RunInfo & | run | ||
) |
Definition at line 102 of file CreateWeightedRejectList.C.
std::vector<RunInfo> runs |
Definition at line 112 of file CreateWeightedRejectList.C.
Referenced by AliMUONAlignmentCompareDialog::CompareAlignment(), CreateWeightedRejectList(), AliStorageDatabase::GetList(), AliStorageServerThread::GetTriggerClasses(), AliTPCcalibDButil::MakeRunList(), MUONStatusMapEvolution(), and AliMUONTrackerVoltages::SetRunList().