|
24 | 24 | #include "CCDB/BasicCCDBManager.h" |
25 | 25 | #include "CommonUtils/NameConf.h" |
26 | 26 | #include "CommonUtils/MemFileHelper.h" |
27 | | -//#include "DetectorsBase/Propagator.h" |
| 27 | +#include "DetectorsBase/Propagator.h" |
28 | 28 | #include <TFile.h> |
29 | 29 | #include <TTree.h> |
30 | 30 |
|
@@ -107,17 +107,16 @@ void CalibratorVdExB::initProcessing() |
107 | 107 | } |
108 | 108 |
|
109 | 109 | // fit is done in region where ion tails are small, close to lorentz angle |
110 | | - // we want an approximate value of the lorentz angle in order to define better fit boundaries |
111 | | - // TODO: find a way to obtain the magnetic field even in standalone calibration |
112 | | - //float bz = o2::base::Propagator::Instance()->getNominalBz(); |
| 110 | + // we want an approximate value of the lorentz angle in order to define better fit boundaries, coinciding with profile bin edges |
| 111 | + float bz = o2::base::Propagator::Instance()->getNominalBz(); |
113 | 112 | // default angle with zero field is slightly shifted |
114 | 113 | float lorentzAngleAvg = -1.f; |
115 | | - /*if (TMath::Abs(bz - 2) < 0.1f) { lorentzAngleAvg = 2.f;} |
116 | | - if (TMath::Abs(bz + 2) < 0.1f) { lorentzAngleAvg = -4.f;} |
| 114 | + if (TMath::Abs(bz - 2) < 0.1f) { lorentzAngleAvg = 3.f;} |
| 115 | + if (TMath::Abs(bz + 2) < 0.1f) { lorentzAngleAvg = -5.f;} |
117 | 116 | if (TMath::Abs(bz - 5) < 0.1f) { lorentzAngleAvg = 7.f;} |
118 | | - if (TMath::Abs(bz + 5) < 0.1f) { lorentzAngleAvg = -9.5f;} |
| 117 | + if (TMath::Abs(bz + 5) < 0.1f) { lorentzAngleAvg = -9.f;} |
119 | 118 |
|
120 | | - LOGP(info, "b field: {} lorentz angle start: {}", bz, lorentzAngleAvg);*/ |
| 119 | + LOGP(info, "b field: {} lorentz angle start: {}", bz, lorentzAngleAvg); |
121 | 120 |
|
122 | 121 | mFitFunctor.lowerBoundAngleFit = (80 + lorentzAngleAvg) * TMath::DegToRad(); |
123 | 122 | mFitFunctor.upperBoundAngleFit = (100 + lorentzAngleAvg) * TMath::DegToRad(); |
@@ -249,7 +248,7 @@ void CalibratorVdExB::finalizeSlot(Slot& slot) |
249 | 248 | auto flName = o2::ccdb::CcdbApi::generateFileName(clName); |
250 | 249 | std::map<std::string, std::string> metadata; // TODO: do we want to store any meta data? |
251 | 250 | long startValidity = slot.getStartTimeMS() - 10 * o2::ccdb::CcdbObjectInfo::SECOND; |
252 | | - mInfoVector.emplace_back("TRD/Calib/CalVdriftExB", clName, flName, metadata, startValidity, startValidity + 3 * o2::ccdb::CcdbObjectInfo::DAY); |
| 251 | + mInfoVector.emplace_back("TRD/Calib/CalVdriftExB", clName, flName, metadata, startValidity, startValidity + 1 * o2::ccdb::CcdbObjectInfo::HOUR); |
253 | 252 | mObjectVector.push_back(calObject); |
254 | 253 | } |
255 | 254 |
|
|
0 commit comments