Skip to content

Commit ff27715

Browse files
authored
Remove Run2 option (#1070)
1 parent 09afe4f commit ff27715

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

Common/TableProducer/trackPropagation.cxx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "DetectorsBase/GeometryManager.h"
2525
#include "CommonUtils/NameConf.h"
2626
#include "CCDB/CcdbApi.h"
27-
#include "DataFormatsParameters/GRPObject.h"
2827
#include "DataFormatsParameters/GRPMagField.h"
2928
#include "CCDB/BasicCCDBManager.h"
3029
#include "Framework/HistogramRegistry.h"
@@ -61,17 +60,14 @@ struct TrackPropagation {
6160
o2::base::Propagator::MatCorrType matCorr = o2::base::Propagator::MatCorrType::USEMatCorrLUT;
6261

6362
const o2::dataformats::MeanVertexObject* mVtx = nullptr;
64-
o2::parameters::GRPObject* grpo = nullptr;
6563
o2::parameters::GRPMagField* grpmag = nullptr;
6664
o2::base::MatLayerCylSet* lut = nullptr;
6765

6866
Configurable<std::string> ccdburl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
6967
Configurable<std::string> lutPath{"lutPath", "GLO/Param/MatLUT", "Path of the Lut parametrization"};
7068
Configurable<std::string> geoPath{"geoPath", "GLO/Config/GeometryAligned", "Path of the geometry file"};
71-
Configurable<std::string> grpPath{"grpPath", "GLO/GRP/GRP", "Path of the grp file"};
7269
Configurable<std::string> grpmagPath{"grpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
7370
Configurable<std::string> mVtxPath{"mVtxPath", "GLO/Calib/MeanVertex", "Path of the mean vertex file"};
74-
Configurable<bool> isRun2{"isRun2", false, "Flag to check the CCDB for GRPObject before asking for the GRPMagField"};
7571

7672
void init(o2::framework::InitContext& initContext)
7773
{
@@ -104,15 +100,9 @@ struct TrackPropagation {
104100
if (runNumber == bc.runNumber()) {
105101
return;
106102
}
107-
if (isRun2) {
108-
grpo = ccdb->getForTimeStamp<o2::parameters::GRPObject>(grpPath, bc.timestamp());
109-
LOGF(info, "Setting magnetic field to %d kG for run %d from its GRP CCDB object", grpo->getNominalL3Field(), bc.runNumber());
110-
o2::base::Propagator::initFieldFromGRP(grpo);
111-
} else {
112-
grpmag = ccdb->getForTimeStamp<o2::parameters::GRPMagField>(grpmagPath, bc.timestamp());
113-
LOG(info) << "Setting magnetic field to current " << grpmag->getL3Current() << " A for run " << bc.runNumber() << " from its GRPMagField CCDB object";
114-
o2::base::Propagator::initFieldFromGRP(grpmag);
115-
}
103+
grpmag = ccdb->getForTimeStamp<o2::parameters::GRPMagField>(grpmagPath, bc.timestamp());
104+
LOG(info) << "Setting magnetic field to current " << grpmag->getL3Current() << " A for run " << bc.runNumber() << " from its GRPMagField CCDB object";
105+
o2::base::Propagator::initFieldFromGRP(grpmag);
116106
o2::base::Propagator::Instance()->setMatLUT(lut);
117107
mVtx = ccdb->getForTimeStamp<o2::dataformats::MeanVertexObject>(mVtxPath, bc.timestamp());
118108
runNumber = bc.runNumber();

0 commit comments

Comments
 (0)