File tree 7 files changed +15
-22
lines changed
7 files changed +15
-22
lines changed Original file line number Diff line number Diff line change 90
90
"geomPath" : " ./" ,
91
91
"publishSummary1D" : " 0" ,
92
92
"publishDetailedSummary" : " 0"
93
- },
94
- "grpGeomRequest" : {
95
- "geomRequest" : " Aligned" ,
96
- "askGRPECS" : " false" ,
97
- "askGRPLHCIF" : " false" ,
98
- "askGRPMagField" : " false" ,
99
- "askMatLUT" : " false" ,
100
- "askTime" : " false" ,
101
- "askOnceAllButField" : " true" ,
102
- "needPropagatorD" : " false"
103
93
}
104
94
},
105
95
"ITSTrackTask" : {
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ class QcMFTClusterTask /*final*/ : public TaskInterface // todo add back the "fi
101
101
// dictionary
102
102
const o2::itsmft::TopologyDictionary* mDict = nullptr ;
103
103
104
+ o2::mft::GeometryTGeo* mGeom = nullptr ;
104
105
// where the geometry file is stored
105
106
std::string mGeomPath ;
106
107
Original file line number Diff line number Diff line change 29
29
#include " Common/TH2Ratio.h"
30
30
// O2
31
31
#include " CommonConstants/LHCConstants.h"
32
+ #include " MFTBase/GeometryTGeo.h"
32
33
33
34
using namespace o2 ::quality_control::core;
34
35
using namespace o2 ::quality_control_modules::common;
@@ -57,6 +58,8 @@ class QcMFTTrackTask /*final*/ : public TaskInterface // todo add back the "fina
57
58
void reset () override ;
58
59
59
60
private:
61
+ o2::mft::GeometryTGeo* mGeom = nullptr ;
62
+
60
63
std::unique_ptr<TH1FRatio> mNumberOfTracksPerTF = nullptr ;
61
64
std::unique_ptr<TH1FRatio> mTrackNumberOfClusters = nullptr ;
62
65
std::unique_ptr<TH1FRatio> mCATrackNumberOfClusters = nullptr ;
Original file line number Diff line number Diff line change 41
41
"timeBinSize" : " 0.1" ,
42
42
"ROFLengthInBC" : " 198"
43
43
},
44
- "grpGeomRequest" : {
45
- "geomRequest" : " Aligned" ,
46
- "askGRPECS" : " false" ,
47
- "askGRPLHCIF" : " false" ,
48
- "askGRPMagField" : " false" ,
49
- "askMatLUT" : " false" ,
50
- "askTime" : " false" ,
51
- "askOnceAllButField" : " true" ,
52
- "needPropagatorD" : " false"
53
- },
54
44
"location" : " remote"
55
45
}
56
46
},
Original file line number Diff line number Diff line change 41
41
"TimeBinSize" : " 0.1"
42
42
},
43
43
"grpGeomRequest" : {
44
- "geomRequest" : " Aligned " ,
44
+ "geomRequest" : " None " ,
45
45
"askGRPECS" : " true" ,
46
46
"askGRPLHCIF" : " false" ,
47
47
"askGRPMagField" : " false" ,
Original file line number Diff line number Diff line change @@ -248,7 +248,11 @@ void QcMFTClusterTask::monitorData(o2::framework::ProcessingContext& ctx)
248
248
mDict = mDictPtr .get ();
249
249
ILOG (Info, Support) << " Dictionary loaded with size: " << mDict ->getSize () << ENDM;
250
250
}
251
-
251
+ if (!mGeom ) {
252
+ o2::mft::GeometryTGeo::adopt (TaskInterface::retrieveConditionAny<o2::mft::GeometryTGeo>(" MFT/Config/Geometry" ));
253
+ mGeom = o2::mft::GeometryTGeo::Instance ();
254
+ ILOG (Info, Support) << " GeometryTGeo loaded" << ENDM;
255
+ }
252
256
// normalisation for the summary histogram to TF
253
257
mClusterOccupancySummary ->Fill (-1 , -1 );
254
258
mClusterOccupancy ->Fill (-1 );
Original file line number Diff line number Diff line change @@ -208,6 +208,11 @@ void QcMFTTrackTask::startOfCycle()
208
208
209
209
void QcMFTTrackTask::monitorData (o2::framework::ProcessingContext& ctx)
210
210
{
211
+ if (!mGeom ) {
212
+ o2::mft::GeometryTGeo::adopt (TaskInterface::retrieveConditionAny<o2::mft::GeometryTGeo>(" MFT/Config/Geometry" ));
213
+ mGeom = o2::mft::GeometryTGeo::Instance ();
214
+ ILOG (Info, Support) << " GeometryTGeo loaded" << ENDM;
215
+ }
211
216
auto mNOrbitsPerTF = o2::base::GRPGeomHelper::instance ().getNHBFPerTF ();
212
217
213
218
// get the tracks
You can’t perform that action at this time.
0 commit comments