/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are mentioned in the code where appropriate. *
* *
* Permission to use, copy, modify and distribute this software and its *
* documentation strictly for non-commercial purposes is hereby granted *
* without fee, provided that the above copyright notice appears in all *
* copies and that both the copyright notice and this permission notice *
* appear in the supporting documentation. The authors make no claims *
* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
/* $Id$ */
/// \ingroup macros
/// \file MakeMUONSingleRecoParam.C
/// \brief Macro to set reconstruction parameters and put them in the OCDB
///
/// \author Philippe Pillot, SUBATECH
#if !defined(__CINT__) || defined(__MAKECINT__)
#include "AliMUONRecoParam.h"
#include "AliMUONCDB.h"
#include "AliCDBManager.h"
#include "AliRecoParam.h"
#include <Riostream.h>
#endif
//-----------------------------------------------------------------------
void MakeMUONSingleRecoParam(Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity(),
AliRecoParam::EventSpecie_t eventType = AliRecoParam::kLowMult)
{
/// set the reconstruction parameters and store them in the OCDB ($ALICE_ROOT/MUON/Calib/RecoParam/).
/// - make a CDB entry for the run range [startRun, endRun]
/// - "eventType" specifies the set of parameters to be stored
// init CDB
AliCDBManager* man = AliCDBManager::Instance();
if(!man->IsDefaultStorageSet()) man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
man->SetRun(startRun);
// choose desired set of parameters
AliMUONRecoParam* param;
switch (eventType) {
case AliRecoParam::kLowMult: // set of parameters for p-p runs
param = AliMUONRecoParam::GetLowFluxParam();
break;
case AliRecoParam::kHighMult: // set of parameters for Pb-Pb runs
param = AliMUONRecoParam::GetHighFluxParam();
break;
case AliRecoParam::kCosmic: // set of parameters for cosmic runs
param = AliMUONRecoParam::GetCosmicParam();
break;
default: // unknown species
cout<<"No set of parameters defined for the desired event type! Exiting..."<<endl;
return;
break;
}
param->Print("FULL");
// save RecoParam in CDB
AliMUONCDB::WriteToCDB(param, "MUON/Calib/RecoParam", startRun, endRun, "reconstruction parameters for MUON", "Philippe Pillot");
}
MakeMUONSingleRecoParam.C:1 MakeMUONSingleRecoParam.C:2 MakeMUONSingleRecoParam.C:3 MakeMUONSingleRecoParam.C:4 MakeMUONSingleRecoParam.C:5 MakeMUONSingleRecoParam.C:6 MakeMUONSingleRecoParam.C:7 MakeMUONSingleRecoParam.C:8 MakeMUONSingleRecoParam.C:9 MakeMUONSingleRecoParam.C:10 MakeMUONSingleRecoParam.C:11 MakeMUONSingleRecoParam.C:12 MakeMUONSingleRecoParam.C:13 MakeMUONSingleRecoParam.C:14 MakeMUONSingleRecoParam.C:15 MakeMUONSingleRecoParam.C:16 MakeMUONSingleRecoParam.C:17 MakeMUONSingleRecoParam.C:18 MakeMUONSingleRecoParam.C:19 MakeMUONSingleRecoParam.C:20 MakeMUONSingleRecoParam.C:21 MakeMUONSingleRecoParam.C:22 MakeMUONSingleRecoParam.C:23 MakeMUONSingleRecoParam.C:24 MakeMUONSingleRecoParam.C:25 MakeMUONSingleRecoParam.C:26 MakeMUONSingleRecoParam.C:27 MakeMUONSingleRecoParam.C:28 MakeMUONSingleRecoParam.C:29 MakeMUONSingleRecoParam.C:30 MakeMUONSingleRecoParam.C:31 MakeMUONSingleRecoParam.C:32 MakeMUONSingleRecoParam.C:33 MakeMUONSingleRecoParam.C:34 MakeMUONSingleRecoParam.C:35 MakeMUONSingleRecoParam.C:36 MakeMUONSingleRecoParam.C:37 MakeMUONSingleRecoParam.C:38 MakeMUONSingleRecoParam.C:39 MakeMUONSingleRecoParam.C:40 MakeMUONSingleRecoParam.C:41 MakeMUONSingleRecoParam.C:42 MakeMUONSingleRecoParam.C:43 MakeMUONSingleRecoParam.C:44 MakeMUONSingleRecoParam.C:45 MakeMUONSingleRecoParam.C:46 MakeMUONSingleRecoParam.C:47 MakeMUONSingleRecoParam.C:48 MakeMUONSingleRecoParam.C:49 MakeMUONSingleRecoParam.C:50 MakeMUONSingleRecoParam.C:51 MakeMUONSingleRecoParam.C:52 MakeMUONSingleRecoParam.C:53 MakeMUONSingleRecoParam.C:54 MakeMUONSingleRecoParam.C:55 MakeMUONSingleRecoParam.C:56 MakeMUONSingleRecoParam.C:57 MakeMUONSingleRecoParam.C:58 MakeMUONSingleRecoParam.C:59 MakeMUONSingleRecoParam.C:60 MakeMUONSingleRecoParam.C:61 MakeMUONSingleRecoParam.C:62 MakeMUONSingleRecoParam.C:63 MakeMUONSingleRecoParam.C:64 MakeMUONSingleRecoParam.C:65 MakeMUONSingleRecoParam.C:66 MakeMUONSingleRecoParam.C:67 MakeMUONSingleRecoParam.C:68 MakeMUONSingleRecoParam.C:69 MakeMUONSingleRecoParam.C:70 MakeMUONSingleRecoParam.C:71 MakeMUONSingleRecoParam.C:72 MakeMUONSingleRecoParam.C:73 MakeMUONSingleRecoParam.C:74