Skip to content

Commit 8318fb3

Browse files
committed
moved zorroSummary to init func
1 parent e53a291 commit 8318fb3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

PWGLF/Tasks/Strangeness/strangenessInJets.cxx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,12 @@ using MCTracks = soa::Join<StrHadronDaughterTracks, aod::McTrackLabels>;
7474

7575
struct StrangenessInJets {
7676

77-
// Zorro initialization
78-
Zorro zorro;
79-
OutputObj<ZorroSummary> zorroSummary{"zorroSummary"};
80-
zorroSummary.setObject(zorro.getZorroSummary());
8177
Service<o2::ccdb::BasicCCDBManager> ccdb;
8278
o2::ccdb::CcdbApi ccdbApi;
8379

80+
Zorro zorro;
81+
OutputObj<ZorroSummary> zorroSummary{"zorroSummary"};
82+
8483
HistogramRegistry registryData{"registryData", {}, OutputObjHandlingPolicy::AnalysisObject, true, true};
8584
HistogramRegistry registryMC{"registryMC", {}, OutputObjHandlingPolicy::AnalysisObject, true, true};
8685
HistogramRegistry registryQC{"registryQC", {}, OutputObjHandlingPolicy::AnalysisObject, true, true};
@@ -187,7 +186,7 @@ struct StrangenessInJets {
187186

188187
// Jet background subtraction
189188
JetBkgSubUtils backgroundSub;
190-
189+
191190
void initCCDB(aod::BCsWithTimestamps::iterator const& bc)
192191
{
193192
if (cfgSkimmedProcessing) {
@@ -197,6 +196,10 @@ struct StrangenessInJets {
197196

198197
void init(InitContext const&)
199198
{
199+
if (cfgSkimmedProcessing) {
200+
zorroSummary.setObject(zorro.getZorroSummary());
201+
}
202+
200203
ccdb->setURL(urlToCcdb.value);
201204
ccdb->setCaching(true);
202205
ccdb->setLocalObjectValidityChecking();

0 commit comments

Comments
 (0)