Skip to content

Commit af007ee

Browse files
committed
Rename workflow for clarity: zdc-task-inter-calib -> zdc-extra-table-producer; update related files
1 parent a455cf5 commit af007ee

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file ZDCInterCalib.h
13-
/// \brief ZDC tower intercalibration task
12+
/// \file ZDCExtra.h
13+
/// \brief ZDC extra table
1414
/// \author Chiara Oppedisano <chiara.oppedisano@cern.ch>, INFN Torino
1515

16-
#ifndef COMMON_DATAMODEL_ZDCINTERCALIB_H_
17-
#define COMMON_DATAMODEL_ZDCINTERCALIB_H_
16+
#ifndef COMMON_DATAMODEL_ZDCEXTRA_H_
17+
#define COMMON_DATAMODEL_ZDCEXTRA_H_
1818

1919
#include <Framework/AnalysisDataModel.h>
2020

2121
#include <cstdint>
2222

2323
namespace o2::aod
2424
{
25-
namespace znoutput // o2-linter: disable=name/workflow-file
25+
namespace zdcextra
2626
{
2727
DECLARE_SOA_COLUMN(ZNApmc, commonPMZNA, float); //! PMC ZNA // o2-linter: disable=name/o2-column
2828
DECLARE_SOA_COLUMN(ZNApm1, ZNAPM1, float); //! PM1 ZNA // o2-linter: disable=name/o2-column
@@ -39,24 +39,24 @@ DECLARE_SOA_COLUMN(ZNCtdc, ZNCTDC, float); //! TDC ZNC /
3939
DECLARE_SOA_COLUMN(Centrality, centrality, float); //! Centrality
4040
DECLARE_SOA_COLUMN(Timestamp, timestamp, uint64_t); //! Timestamp
4141
DECLARE_SOA_COLUMN(SelectionBits, selectionBits, uint8_t); //! Selection Flags
42-
} // namespace znoutput
42+
} // namespace zdcextra
4343

44-
DECLARE_SOA_TABLE(ZDCInterCalib, "AOD", "ZDCIC", o2::soa::Index<>,
45-
znoutput::ZNApmc,
46-
znoutput::ZNApm1,
47-
znoutput::ZNApm2,
48-
znoutput::ZNApm3,
49-
znoutput::ZNApm4,
50-
znoutput::ZNAtdc,
51-
znoutput::ZNCpmc,
52-
znoutput::ZNCpm1,
53-
znoutput::ZNCpm2,
54-
znoutput::ZNCpm3,
55-
znoutput::ZNCpm4,
56-
znoutput::ZNCtdc,
57-
znoutput::Centrality,
58-
znoutput::Timestamp,
59-
znoutput::SelectionBits);
44+
DECLARE_SOA_TABLE(ZDCExtra, "AOD", "ZDCEXTRA", o2::soa::Index<>,
45+
zdcextra::ZNApmc,
46+
zdcextra::ZNApm1,
47+
zdcextra::ZNApm2,
48+
zdcextra::ZNApm3,
49+
zdcextra::ZNApm4,
50+
zdcextra::ZNAtdc,
51+
zdcextra::ZNCpmc,
52+
zdcextra::ZNCpm1,
53+
zdcextra::ZNCpm2,
54+
zdcextra::ZNCpm3,
55+
zdcextra::ZNCpm4,
56+
zdcextra::ZNCtdc,
57+
zdcextra::Centrality,
58+
zdcextra::Timestamp,
59+
zdcextra::SelectionBits);
6060
} // namespace o2::aod
6161

62-
#endif // COMMON_DATAMODEL_ZDCINTERCALIB_H_
62+
#endif // COMMON_DATAMODEL_ZDCEXTRA_H_

Common/TableProducer/zdcTaskInterCalib.cxx renamed to Common/TableProducer/zdcExtraTableProducer.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file zdcTaskInterCalib.cxx
13-
/// \brief Task for ZDC tower inter-calibration
12+
/// \file zdcExtraTableProducer.cxx
13+
/// \brief Task creating table with ZDC PMTs energies
1414
/// \author chiara.oppedisano@cern.ch
1515

1616
#include "Common/CCDB/EventSelectionParams.h"
1717
#include "Common/DataModel/Centrality.h"
1818
#include "Common/DataModel/EventSelection.h"
19-
#include "Common/DataModel/ZDCInterCalib.h"
19+
#include "Common/DataModel/ZDCExtra.h"
2020

2121
#include <Framework/AnalysisDataModel.h>
2222
#include <Framework/AnalysisHelpers.h>
@@ -40,9 +40,9 @@ using namespace o2::aod::evsel;
4040
using BCsRun3 = soa::Join<aod::BCs, aod::Timestamps, aod::BcSels, aod::Run3MatchedToBCSparse>;
4141
using ColEvSels = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Cs>;
4242

43-
struct ZdcTaskInterCalib {
43+
struct zdcExtraTableProducer {
4444

45-
Produces<aod::ZDCInterCalib> zTab;
45+
Produces<aod::ZdcExtras> zdcextras;
4646

4747
// Configurable parameters
4848
//
@@ -245,14 +245,14 @@ struct ZdcTaskInterCalib {
245245
registry.get<TH1>(HIST("ZNAsumq"))->Fill(sumZNA);
246246
}
247247
if (isZNAhit || isZNChit)
248-
zTab(pmcZNA, pmqZNA[0], pmqZNA[1], pmqZNA[2], pmqZNA[3], tdcZNC, pmcZNC, pmqZNC[0], pmqZNC[1], pmqZNC[2], pmqZNC[3], tdcZNA, centrality, foundBC.timestamp(), evSelection);
248+
zdcextras(pmcZNA, pmqZNA[0], pmqZNA[1], pmqZNA[2], pmqZNA[3], tdcZNC, pmcZNC, pmqZNC[0], pmqZNC[1], pmqZNC[2], pmqZNC[3], tdcZNA, centrality, foundBC.timestamp(), evSelection);
249249
}
250250
}
251251
}
252252
};
253253

254-
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) // o2-linter: disable=name/file-cpp
254+
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
255255
{
256256
return WorkflowSpec{
257-
adaptAnalysisTask<ZdcTaskInterCalib>(cfgc)};
257+
adaptAnalysisTask<zdcExtraTableProducer>(cfgc)};
258258
}

0 commit comments

Comments
 (0)