1616#include " Common/Core/fwdtrackUtilities.h"
1717#include " Common/DataModel/TrackSelectionTables.h"
1818
19- #include " CCDB/BasicCCDBManager.h"
20- #include " DataFormatsParameters/GRPMagField.h"
21- #include " DetectorsBase/GeometryManager.h"
22- #include " DetectorsBase/Propagator.h"
23- #include " GlobalTracking/MatchGlobalFwd.h"
19+ #include < CCDB/BasicCCDBManager.h>
20+ #include < DataFormatsParameters/GRPMagField.h>
21+ #include < DetectorsBase/GeometryManager.h>
22+ #include < DetectorsBase/Propagator.h>
23+ #include < GlobalTracking/MatchGlobalFwd.h>
2424#include < Framework/AnalysisDataModel.h>
2525#include < Framework/AnalysisHelpers.h>
2626#include < Framework/AnalysisTask.h>
3232#include < Math/SMatrix.h>
3333
3434#include < vector>
35+ #include < string>
3536
3637using namespace o2 ;
3738using namespace o2 ::framework;
@@ -44,8 +45,8 @@ using MuonsWithCov = soa::Join<aod::FwdTracks, aod::FwdTracksCov>;
4445
4546struct FwdTrackExtension {
4647 Produces<aod::FwdTracksDCA> fwdDCA;
47- Configurable<std::string> geoPath {" geoPath" , " GLO/Config/GeometryAligned" , " Path of the geometry file" };
48- Configurable<std::string> grpmagPath {" grpmagPath" , " GLO/Config/GRPMagField" , " CCDB path of the GRPMagField object" };
48+ Configurable<std::string> fGeoPath {" geoPath" , " GLO/Config/GeometryAligned" , " Path of the geometry file" };
49+ Configurable<std::string> fGrpmagPath {" grpmagPath" , " GLO/Config/GRPMagField" , " CCDB path of the GRPMagField object" };
4950 Configurable<std::string> fConfigCcdbUrl {" ccdb-url" , " http://alice-ccdb.cern.ch" , " url of the ccdb repository" };
5051 Configurable<bool > fRefitGlobalMuon {" refitGlobal" , true , " Recompute parameters of global muons" };
5152
@@ -62,15 +63,15 @@ struct FwdTrackExtension {
6263
6364 if (!o2::base::GeometryManager::isGeometryLoaded ()) {
6465 LOGF (info, " Load geometry from CCDB" );
65- fCCDB ->get <TGeoManager>(geoPath );
66+ fCCDB ->get <TGeoManager>(fGeoPath );
6667 }
6768 }
6869
6970 void process (aod::Collisions::iterator const & collision, o2::aod::BCsWithTimestamps const & /* ...*/ , MuonsWithCov const & tracks, aod::MFTTracks const & /* ...*/ )
7071 {
7172 auto bc = collision.template bc_as <o2::aod::BCsWithTimestamps>();
7273 if (fCurrentRun != bc.runNumber ()) {
73- grpmag = fCCDB ->getForTimeStamp <o2::parameters::GRPMagField>(grpmagPath , bc.timestamp ());
74+ grpmag = fCCDB ->getForTimeStamp <o2::parameters::GRPMagField>(fGrpmagPath , bc.timestamp ());
7475 if (grpmag != nullptr ) {
7576 LOGF (info, " Init field from GRP" );
7677 o2::base::Propagator::initFieldFromGRP (grpmag);
@@ -80,7 +81,7 @@ struct FwdTrackExtension {
8081 fCurrentRun = bc.runNumber ();
8182 }
8283 const float zField = grpmag->getNominalL3Field ();
83- for (auto & track : tracks) {
84+ for (const auto & track : tracks) {
8485 const auto trackType = track.trackType ();
8586 o2::dataformats::GlobalFwdTrack fwdtrack = o2::aod::fwdtrackutils::getTrackParCovFwd (track, track);
8687 if (fRefitGlobalMuon && (trackType == o2::aod::fwdtrack::ForwardTrackTypeEnum::GlobalMuonTrack || trackType == o2::aod::fwdtrack::ForwardTrackTypeEnum::GlobalForwardTrack)) {
0 commit comments