|
20 | 20 | #define HomogeneousField |
21 | 21 | #endif |
22 | 22 |
|
| 23 | +#include <memory> |
| 24 | +#include <string> |
| 25 | +#include <vector> |
| 26 | + |
23 | 27 | #include <KFParticleBase.h> |
24 | 28 | #include <KFParticle.h> |
25 | 29 | #include <KFPTrack.h> |
@@ -78,15 +82,12 @@ struct HfCandidateCreator2Prong { |
78 | 82 | // magnetic field setting from CCDB |
79 | 83 | Configurable<bool> isRun2{"isRun2", false, "enable Run 2 or Run 3 GRP objects for magnetic field"}; |
80 | 84 | Configurable<std::string> ccdbUrl{"ccdbUrl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"}; |
81 | | - Configurable<std::string> ccdbPathLut{"ccdbPathLut", "GLO/Param/MatLUT", "Path for LUT parametrization"}; |
82 | 85 | Configurable<std::string> ccdbPathGrp{"ccdbPathGrp", "GLO/GRP/GRP", "Path of the grp file (Run 2)"}; |
83 | 86 | Configurable<std::string> ccdbPathGrpMag{"ccdbPathGrpMag", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object (Run 3)"}; |
84 | 87 |
|
85 | 88 | HfEventSelection hfEvSel; // event selection and monitoring |
86 | 89 | o2::vertexing::DCAFitterN<2> df; // 2-prong vertex fitter |
87 | 90 | Service<o2::ccdb::BasicCCDBManager> ccdb; |
88 | | - o2::base::MatLayerCylSet* lut; |
89 | | - o2::base::Propagator::MatCorrType matCorr = o2::base::Propagator::MatCorrType::USEMatCorrLUT; |
90 | 91 |
|
91 | 92 | using TracksWCovExtraPidPiKa = soa::Join<aod::TracksWCovExtra, aod::TracksPidPi, aod::PidTpcTofFullPi, aod::TracksPidKa, aod::PidTpcTofFullKa>; |
92 | 93 |
|
@@ -168,7 +169,6 @@ struct HfCandidateCreator2Prong { |
168 | 169 | ccdb->setURL(ccdbUrl); |
169 | 170 | ccdb->setCaching(true); |
170 | 171 | ccdb->setLocalObjectValidityChecking(); |
171 | | - lut = o2::base::MatLayerCylSet::rectifyPtrFromFile(ccdb->get<o2::base::MatLayerCylSet>(ccdbPathLut)); |
172 | 172 | runNumber = 0; |
173 | 173 |
|
174 | 174 | /// candidate monitoring |
@@ -204,7 +204,7 @@ struct HfCandidateCreator2Prong { |
204 | 204 | auto bc = collision.template bc_as<aod::BCsWithTimestamps>(); |
205 | 205 | if (runNumber != bc.runNumber()) { |
206 | 206 | LOG(info) << ">>>>>>>>>>>> Current run number: " << runNumber; |
207 | | - initCCDB(bc, runNumber, ccdb, isRun2 ? ccdbPathGrp : ccdbPathGrpMag, lut, isRun2); |
| 207 | + initCCDB(bc, runNumber, ccdb, isRun2 ? ccdbPathGrp : ccdbPathGrpMag, nullptr, isRun2); |
208 | 208 | bz = o2::base::Propagator::Instance()->getNominalBz(); |
209 | 209 | LOG(info) << ">>>>>>>>>>>> Magnetic field: " << bz; |
210 | 210 | // df.setBz(bz); /// put it outside the 'if'! Otherwise we have a difference wrt bz Configurable (< 1 permille) in Run2 conv. data |
@@ -349,7 +349,7 @@ struct HfCandidateCreator2Prong { |
349 | 349 | auto bc = collision.template bc_as<aod::BCsWithTimestamps>(); |
350 | 350 | if (runNumber != bc.runNumber()) { |
351 | 351 | LOG(info) << ">>>>>>>>>>>> Current run number: " << runNumber; |
352 | | - initCCDB(bc, runNumber, ccdb, isRun2 ? ccdbPathGrp : ccdbPathGrpMag, lut, isRun2); |
| 352 | + initCCDB(bc, runNumber, ccdb, isRun2 ? ccdbPathGrp : ccdbPathGrpMag, nullptr, isRun2); |
353 | 353 | bz = o2::base::Propagator::Instance()->getNominalBz(); |
354 | 354 | LOG(info) << ">>>>>>>>>>>> Magnetic field: " << bz; |
355 | 355 | // df.setBz(bz); /// put it outside the 'if'! Otherwise we have a difference wrt bz Configurable (< 1 permille) in Run2 conv. data |
|
0 commit comments