]>
Commit | Line | Data |
---|---|---|
ed446fa3 | 1 | void MakeITSRecoParam(Int_t type=1) { |
2 | //======================================================================== | |
3 | // | |
4 | // Steering macro for ITS reconstruction parameters | |
5 | // | |
6 | // Author: A.Dainese | |
7 | // Contact: andrea.dainese@lnl.infn.it | |
8 | // | |
9 | //======================================================================== | |
10 | ||
11 | ||
12 | const char* macroname = "MakeITSRecoParam.C"; | |
13 | ||
14 | // Activate CDB storage and load geometry from CDB | |
15 | AliCDBManager* cdb = AliCDBManager::Instance(); | |
16 | if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://OCDB"); | |
17 | ||
18 | AliITSRecoParam *itsRecoParam = 0; | |
19 | switch(type) { | |
20 | case 0: | |
21 | itsRecoParam = AliITSRecoParam::GetCosmicTestParam(); | |
22 | break; | |
23 | case 1: | |
24 | itsRecoParam = AliITSRecoParam::GetLowFluxParam(); | |
25 | break; | |
26 | case 2: | |
27 | itsRecoParam = AliITSRecoParam::GetHighFluxParam(); | |
28 | break; | |
29 | case default: | |
30 | printf("Wrong event type\n"); | |
31 | return; | |
32 | break; | |
33 | } | |
34 | /* | |
35 | itsRecoParam->SetUseTGeoInTracker(3); | |
36 | itsRecoParam->SetClusterErrorsParam(0); | |
37 | itsRecoParam->SetFindV0s(kTRUE); | |
38 | itsRecoParam->SetAddVirtualClustersInDeadZone(kFALSE); | |
39 | itsRecoParam->SetLayerToSkip(0); | |
40 | itsRecoParam->SetLayerToSkip(1); | |
41 | itsRecoParam->SetLayerToSkip(2); | |
42 | itsRecoParam->SetLayerToSkip(3); | |
43 | itsRecoParam->SetLayerToSkip(4); | |
44 | itsRecoParam->SetLayerToSkip(5); | |
45 | */ | |
46 | ||
47 | // save in CDB storage | |
48 | AliCDBMetaData *md= new AliCDBMetaData(); | |
49 | md->SetResponsible("Andrea Dainese"); | |
50 | md->SetComment("Reconstruction parameters ITS"); | |
51 | md->SetAliRootVersion(gSystem->Getenv("ARVERSION")); | |
52 | md->SetBeamPeriod(0); | |
53 | AliCDBId id("ITS/Calib/RecoParam",0,AliCDBRunRange::Infinity()); | |
54 | AliCDBManager::Instance()->GetDefaultStorage()->Put(itsRecoParam,id, md); | |
55 | ||
56 | ||
57 | return; | |
58 | } |