Skip to content

Commit eccdf2e

Browse files
committed
Minor adjustments for next steps
1 parent 34edffa commit eccdf2e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Common/TableProducer/trackPropagationTester.cxx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ struct TrackPropagationTester {
5959
o2::common::TrackPropagationProducts trackPropagationProducts;
6060
o2::common::TrackPropagationConfigurables trackPropagationConfigurables;
6161

62+
// CCDB boilerplate declarations
63+
o2::framework::Configurable<std::string> ccdburl{"ccdburl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
6264
Service<o2::ccdb::BasicCCDBManager> ccdb;
6365

6466
o2::common::StandardCCDBLoader ccdbLoader;
@@ -68,12 +70,18 @@ struct TrackPropagationTester {
6870

6971
void init(o2::framework::InitContext& initContext)
7072
{
71-
ccdbLoader.init(standardCCDBLoaderConfigurables, ccdb);
73+
// CCDB boilerplate init
74+
ccdb->setCaching(true);
75+
ccdb->setLocalObjectValidityChecking();
76+
ccdb->setURL(ccdburl.value);
77+
78+
// task-specific
7279
trackPropagation.init(trackPropagationConfigurables, registry, initContext);
7380
}
7481

7582
void processReal(soa::Join<aod::StoredTracksIU, aod::TracksCovIU, aod::TracksExtra> const& tracks, aod::Collisions const&, aod::BCs const& bcs)
7683
{
84+
// task-specific
7785
ccdbLoader.initCCDBfromBCs(standardCCDBLoaderConfigurables, ccdb, bcs);
7886
trackPropagation.fillTrackTables<false>(trackPropagationConfigurables, ccdbLoader, tracks, trackPropagationProducts, registry);
7987
}

Common/Tools/StandardCCDBLoader.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@ class StandardCCDBLoader
5858
o2::base::MatLayerCylSet* lut = nullptr;
5959
int runNumber = -1;
6060

61-
template <typename TConfigurableGroup, typename TCCDB>
62-
void init(TConfigurableGroup const& cGroup, TCCDB& ccdb)
63-
{
64-
ccdb->setCaching(true);
65-
ccdb->setLocalObjectValidityChecking();
66-
ccdb->setURL(cGroup.ccdburl.value);
67-
}
68-
6961
template <typename TConfigurableGroup, typename TCCDB, typename TBCs>
7062
void initCCDBfromBCs(TConfigurableGroup const& cGroup, TCCDB& ccdb, TBCs& bcs, bool getMeanVertex = true)
7163
{

0 commit comments

Comments
 (0)