Skip to content

Commit 59b5fc1

Browse files
committed
recovering
1 parent 4c8773b commit 59b5fc1

3 files changed

Lines changed: 49 additions & 92 deletions

File tree

Common/DataModel/Qvectors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ DECLARE_SOA_TABLE(Qvectors, "AOD", "QVECTORDEVS", //! Table with all Qvectors.
124124
using Qvector = Qvectors::iterator;
125125
DECLARE_SOA_TABLE(QvectorsShifteds, "AOD", "QVECTORSCDEVS", //! Table with all shifted Qvectors.
126126
qvec::Cent, qvec::IsCalibrated, qvec::QvecShiftedRe, qvec::QvecShiftedIm, qvec::QvecAmp);
127-
using QvectorShifted = QvectorsShifteds::iterator;
127+
using QvectorShifted = QvectorsShifteds::iterator;
128128

129129
DECLARE_SOA_TABLE(QvectorFT0Cs, "AOD", "QVECTORSFT0C", qvec::IsCalibrated, qvec::QvecFT0CRe, qvec::QvecFT0CIm, qvec::SumAmplFT0C);
130130
DECLARE_SOA_TABLE(QvectorFT0As, "AOD", "QVECTORSFT0A", qvec::IsCalibrated, qvec::QvecFT0ARe, qvec::QvecFT0AIm, qvec::SumAmplFT0A);

Common/TableProducer/qVectorsTable.cxx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ struct qVectorsTable {
9797
Configurable<bool> useCorrectionForRun{"useCorrectionForRun", true, "Get Qvector corrections based on run number instead of timestamp"};
9898
Configurable<std::string> cfgGainEqPath{"cfgGainEqPath", "Users/j/junlee/Qvector/GainEq", "CCDB path for gain equalization constants"};
9999
Configurable<std::string> cfgQvecCalibPath{"cfgQvecCalibPath", "Analysis/EventPlane/QVecCorrections", "CCDB pasth for Q-vecteor calibration constants"};
100+
100101
Configurable<bool> cfgShiftCorr{"cfgShiftCorr", false, "configurable flag for shift correction"};
101102
Configurable<std::string> cfgShiftPath{"cfgShiftPath", "", "CCDB path for shift correction"};
102103

@@ -188,7 +189,7 @@ struct qVectorsTable {
188189
void init(InitContext& initContext)
189190
{
190191
// Check the sub-detector used
191-
auto& workflows = initContext.services().get<RunningWorkflowInfo const>();
192+
const auto& workflows = initContext.services().get<RunningWorkflowInfo const>();
192193
for (DeviceSpec const& device : workflows.devices) {
193194
for (auto const& input : device.inputs) {
194195
if (input.matcher.binding == "Qvectors") {
@@ -280,19 +281,19 @@ struct qVectorsTable {
280281

281282
if (cfgShiftCorr) {
282283
shiftprofile.clear();
283-
for (std::size_t i = 0; i < cfgnMods->size(); i++) {
284+
for (std::size_t i = 0; i < cfgnMods->size(); i++) {
284285
int ind = cfgnMods->at(i);
285286
fullPath = cfgShiftPath;
286287
fullPath += "/v";
287288
fullPath += std::to_string(ind);
288289
auto objshift = getForTsOrRun<TProfile3D>(fullPath, timestamp, runnumber);
289290
shiftprofile.push_back(objshift);
290291
}
291-
}
292+
}
292293

293294
fullPath = cfgGainEqPath;
294295
fullPath += "/FT0";
295-
auto objft0Gain = getForTsOrRun<std::vector<float>>(fullPath, timestamp, runnumber);
296+
const auto objft0Gain = getForTsOrRun<std::vector<float>>(fullPath, timestamp, runnumber);
296297
if (!objft0Gain || cfgCorrLevel == 0) {
297298
for (auto i{0u}; i < 208; i++) {
298299
FT0RelGainConst.push_back(1.);
@@ -303,7 +304,7 @@ struct qVectorsTable {
303304

304305
fullPath = cfgGainEqPath;
305306
fullPath += "/FV0";
306-
auto objfv0Gain = getForTsOrRun<std::vector<float>>(fullPath, timestamp, runnumber);
307+
const auto objfv0Gain = getForTsOrRun<std::vector<float>>(fullPath, timestamp, runnumber);
307308
if (!objfv0Gain || cfgCorrLevel == 0) {
308309
for (auto i{0u}; i < 48; i++) {
309310
FV0RelGainConst.push_back(1.);

0 commit comments

Comments
 (0)