AliRoot Core  edcc906 (edcc906)
ConfigOCDBAlien.C
Go to the documentation of this file.
1 
14 
15 
16 void SetupCustom(Int_t run);
17 
18 void ConfigOCDBAlien(Int_t crun=-1){
20 
21  TGrid * alien = TGrid::Connect("alien://",0,0,"t");
22  printf("SETUP OCBD for TPC\n");
23  //
25 
26  Int_t run =crun;
27  if (run<0) run =0;
30  SetupCustom(run);
31 }
32 
33 
34 void SetupCustom(Int_t run){
38 
40  Float_t current = 0;
41  Float_t bz = 0;
42  if (grp){
43  current = grp->GetL3Current((AliGRPObject::Stats)0);
44  bz = 5*current/30000.;
45  printf("Run%d\tL3 current%f\tBz\t%f\n",run,current,bz);
46  }
47  else{
48  printf("Run%d\tL3 current%f\tBz\t%f\n",run,current,bz);
49  }
51  Double_t bzfac = bz/5;
52  Double_t bzfacOrig=bzfac;
53  if (TMath::Abs(bzfac)<0.01) { // force default magnetic field if 0 field used
54  bzfac=1;
55  bz=5;
56  }
57  AliMagF * magF = new AliMagF("Maps","Maps", 2, bzfac, 1., smag);
58  TGeoGlobalMagField::Instance()->SetField(magF);
59  printf("\n\nSET EXB FIELD\t\n\n");
61 
64  paramCl->SetInstance(paramCl);
65 
66  if (TMath::Abs(bzfacOrig)<0.05){
67  tpcRecoParam->SetUseExBCorrection(kFALSE);
68  }
69  //
70  //
71  //
72  printf("END of SETUP OCBD for TPC\n");
73 }
74 
75 
static AliTPCcalibDB * Instance()
printf("Chi2/npoints = %f\n", TMath::Sqrt(chi2/npoints))
AliTPCClusterParam * GetClusterParam() const
void SetExBField(Float_t bz)
Manager and of geomety classes for set: TPC.
Definition: AliTPCParam.h:18
static AliMagF::BMap_t smag
Definition: ConfigCosmic.C:126
AliTPCParam * GetParameters() const
BMap_t
Definition: AliMagF.h:23
void SetupCustom(Int_t run)
TPC cluster error, shape and charge parameterization as function of drift length and inclination angl...
void SetInstance(AliTPCClusterParam *const param)
void ConfigOCDBAlien(Int_t crun=-1)
Float_t * GetL3Current() const
Definition: AliGRPObject.h:69
void SetRun(Int_t run)
void SetDefaultStorage(const char *dbString)
void SetRun(Long64_t run)
static AliGRPObject * GetGRP(Int_t run)
Int_t grp(UInt_t run, TString &gdc)
Definition: onlineReco.C:70
static AliCDBManager * Instance(TMap *entryCache=NULL, Int_t run=-1)
AliTPCClusterParam * paramCl
Definition: CalibPID.C:68