You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Common/TableProducer/muonRealignment.cxx
+19-49Lines changed: 19 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@
13
13
/// \brief Task for muon re-alignment at analysis level
14
14
/// \author Chi Zhang <chi.zhang@cern.ch>, CEA-Saclay
15
15
16
-
#include<filesystem>
17
16
#include<string>
18
17
#include"Framework/AnalysisDataModel.h"
19
18
#include"Framework/AnalysisTask.h"
@@ -79,15 +78,11 @@ struct MuonRealignment {
79
78
Configurable<std::string> geoRefPath{"geoRefPath", "GLO/Config/GeometryAligned", "Path of the reference geometry file"};
80
79
Configurable<std::string> geoNewPath{"geoNewPath", "GLO/Config/GeometryAligned", "Path of the new geometry file"};
81
80
Configurable<std::string> grpmagPath{"grpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
82
-
Configurable<std::string> grpPathLocal{"grpPathLocal", "", "Local path of the GRP object if not using CCDB"};
83
-
Configurable<std::string> geoNewPathLocal{"geoNewPathLocal", "", "Local path of the GRP object if not using CCDB"};
84
81
Configurable<int64_t> nolaterthanRef{"ccdb-no-later-than-ref", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "latest acceptable timestamp of creation for the object of reference basis"};
85
82
Configurable<int64_t> nolaterthanNew{"ccdb-no-later-than-new", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "latest acceptable timestamp of creation for the object of new basis"};
86
83
Configurable<double> cfgChamberResolutionX{"cfgChamberResolutionX", 0.04, "Chamber resolution along X configuration for refit"}; // 0.4cm pp, 0.2cm PbPb
87
84
Configurable<double> cfgChamberResolutionY{"cfgChamberResolutionY", 0.04, "Chamber resolution along Y configuration for refit"}; // 0.4cm pp, 0.2cm PbPb
88
85
Configurable<double> cfgSigmaCutImprove{"cfgSigmaCutImprove", 6., "Sigma cut for track improvement"}; // 6 for pp, 4 for PbPb
89
-
Configurable<bool> fUseRemoteField{"cfgUseRemoteField", true, "Chose whether to fetch the magnetic field from ccdb or set it manually"};
90
-
Configurable<bool> fUseRemoteGeometry{"cfgUseRemoteGeometry", false, "Chose whether to fetch new geometry from ccdb or set it manually"};
91
86
92
87
parameters::GRPMagField* grpmag = nullptr;
93
88
base::MatLayerCylSet* lut = nullptr;
@@ -234,7 +229,7 @@ struct MuonRealignment {
234
229
FwdTrkCovRealignInfo fwdTrkCovRealignInfo;
235
230
for (autoconst& muon : muons) {
236
231
int muonRealignId = muon.globalIndex();
237
-
if (int(muon.trackType() > 2)) {
232
+
if (static_cast<int>(muon.trackType() > 2)) {
238
233
239
234
auto clustersSliced = clusters.sliceBy(perMuon, muon.globalIndex()); // Slice clusters by muon id
240
235
mch::Track convertedTrack = mch::Track(); // Temporary variable to store re-aligned clusters
@@ -333,25 +328,14 @@ struct MuonRealignment {
333
328
auto bc = collision.templatebc_as<aod::BCsWithTimestamps>();
334
329
if (fCurrentRun != bc.runNumber()) {
335
330
// Load magnetic field information from CCDB/local
0 commit comments