AliRoot Core  edcc906 (edcc906)
ConfigOCDB.C
Go to the documentation of this file.
1 
14 
15 
16 void SetupCustom(Int_t run);
17 
18 void ConfigOCDB(Int_t crun=-1){
20 
21  printf("SETUP OCBD for TPC\n");
22  //
23  AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
24  AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/Parameters","local://$ALICE_ROOT/OCDB");
25  AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/ClusterParam","local:///u/miranov/OCDB/TPCcosmic2/");
26  AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/PadTime0","local://$ALICE_ROOT/OCDB");
27  AliCDBManager::Instance()->SetSpecificStorage("GRP/GRP/Data","local:///lustre/alice/alien/alice/data/2009/OCDB/");
28  AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/Temperature","local:///lustre/alice/alien/alice/data/2009/OCDB/");
29  AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/Goofie","local:///lustre/alice/alien/alice/data/2009/OCDB/");
30  AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/HighVoltage","local:///lustre/alice/alien/alice/data/2009/OCDB/");
31  Int_t run =crun;
32  if (run<0) run =0;
34  SetupCustom(run);
35 }
36 
37 
38 void SetupCustom(Int_t run){
42 
44  Float_t current = 0;
45  Float_t bz = 0;
46  if (grp){
47  current = grp->GetL3Current((AliGRPObject::Stats)0);
48  bz = 5*current/30000.;
49  printf("Run%d\tL3 current%f\tBz\t%f\n",run,current,bz);
50  }
51  else{
52  printf("Run%d\tL3 current%f\tBz\t%f\n",run,current,bz);
53  }
55  Double_t bzfac = bz/5;
56  if (bzfac==0) { // force default magnetic field if 0 field used
57  bzfac=1;
58  bz=5;
59  }
60  TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", bzfac, 1., smag));
61 
62  printf("\n\nSET EXB FIELD\t%f\n\n", -bz);
64  //
65  //
66  // import geometry
67  //
68  //
69  TGeoManager::Import("/u/miranov/proof/geometry.root");
70  AliGeomManager::LoadGeometry("/u/miranov/proof/geometry.root");
71 
74  paramCl->SetInstance(paramCl);
75 
76  //
77  // Setup reco param
78  //
81  transform->SetCurrentRecoParam(tpcRecoParam);
82  tpcRecoParam->SetUseRPHICorrection(kTRUE);
83  //
84  tpcRecoParam->SetUseRadialCorrection(kFALSE);
85  tpcRecoParam->SetUseQuadrantAlignment(kTRUE);
86  //
87  tpcRecoParam->SetUseSectorAlignment(kFALSE);
88  tpcRecoParam->SetUseDriftCorrectionTime(kFALSE);
89  tpcRecoParam->SetUseDriftCorrectionGY(kTRUE);
90  tpcRecoParam->SetUseGainCorrectionTime(kFALSE);
91  tpcRecoParam->SetUseFieldCorrection(kFALSE);
92  tpcRecoParam->SetUseExBCorrection(kTRUE);
93  //
94  //
95  //
96  TFile fposcor("~/OCDB/calibUnlin.root");
97  AliTPCPointCorrection *pcorr = fposcor.Get("correction");
98  if (pcorr) pcorr->SetInstance(pcorr);
99  //
100  //
101  //
102  printf("END of SETUP OCBD for TPC\n");
103 }
104 
105 
static AliTPCcalibDB * Instance()
printf("Chi2/npoints = %f\n", TMath::Sqrt(chi2/npoints))
void SetUseSectorAlignment(Int_t flag)
static AliTPCRecoParam * GetCosmicTestParam(Bool_t bPedestal)
AliTPCClusterParam * GetClusterParam() const
void SetExBField(Float_t bz)
Manager and of geomety classes for set: TPC.
Definition: AliTPCParam.h:18
Implementation of the TPC transformation class.
void SetUseGainCorrectionTime(Int_t flag)
void SetUseFieldCorrection(Int_t flag)
static AliMagF::BMap_t smag
Definition: ConfigCosmic.C:126
AliTPCParam * GetParameters() const
BMap_t
Definition: AliMagF.h:23
void ConfigOCDB(Int_t crun=-1)
Definition: ConfigOCDB.C:18
TPC cluster error, shape and charge parameterization as function of drift length and inclination angl...
void SetSpecificStorage(const char *calibType, const char *dbString, Int_t version=-1, Int_t subVersion=-1)
AliTPCTransform * GetTransform() const
Definition: AliTPCcalibDB.h:63
void SetInstance(AliTPCClusterParam *const param)
void SetUseDriftCorrectionGY(Int_t flag)
Float_t * GetL3Current() const
Definition: AliGRPObject.h:69
void SetUseRadialCorrection(Int_t flag)
void SetUseQuadrantAlignment(Int_t flag)
void SetRun(Int_t run)
void SetUseExBCorrection(Int_t flag)
void SetupCustom(Int_t run)
Definition: ConfigOCDB.C:38
void SetDefaultStorage(const char *dbString)
void SetUseDriftCorrectionTime(Int_t flag)
static AliGRPObject * GetGRP(Int_t run)
Int_t grp(UInt_t run, TString &gdc)
Definition: onlineReco.C:70
void SetInstance(AliTPCPointCorrection *param)
Class with TPC reconstruction parameters.
void SetCurrentRecoParam(AliTPCRecoParam *param)
static AliCDBManager * Instance(TMap *entryCache=NULL, Int_t run=-1)
AliTPCClusterParam * paramCl
Definition: CalibPID.C:68
static void LoadGeometry(const char *geomFileName=NULL)
void SetUseRPHICorrection(Int_t flag)