Skip to content

Commit 941734f

Browse files
committed
Global digitization configurable params
At the moment just the URL for the CCDB to use
1 parent 156cc7b commit 941734f

4 files changed

Lines changed: 55 additions & 2 deletions

File tree

Common/SimConfig/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
o2_add_library(SimConfig
1212
SOURCES src/SimConfig.cxx src/ConfigurableParam.cxx
13-
src/ConfigurableParamHelper.cxx src/SimCutParams.cxx
14-
src/G4Params.cxx
13+
src/ConfigurableParamHelper.cxx src/SimCutParams.cxx
14+
src/DigiParams.cxx src/G4Params.cxx
1515
PUBLIC_LINK_LIBRARIES O2::CommonUtils
1616
O2::DetectorsCommonDataFormats
1717
FairRoot::Base Boost::program_options
@@ -20,6 +20,7 @@ o2_add_library(SimConfig
2020
o2_target_root_dictionary(SimConfig
2121
HEADERS include/SimConfig/SimConfig.h
2222
include/SimConfig/SimCutParams.h
23+
include/SimConfig/DigiParams.h
2324
include/SimConfig/ConfigurableParam.h
2425
include/SimConfig/ConfigurableParamHelper.h
2526
include/SimConfig/G4Params.h)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Copyright CERN and copyright holders of ALICE O2. This software is
2+
// distributed under the terms of the GNU General Public License v3 (GPL
3+
// Version 3), copied verbatim in the file "COPYING".
4+
//
5+
// See http://alice-o2.web.cern.ch/license for full licensing information.
6+
//
7+
// In applying this license CERN does not waive the privileges and immunities
8+
// granted to it by virtue of its status as an Intergovernmental Organization
9+
// or submit itself to any jurisdiction.
10+
11+
#ifndef O2_CONF_DIGIPARAMS_H_
12+
#define O2_CONF_DIGIPARAMS_H_
13+
14+
// Global parameters for digitization
15+
16+
#include "SimConfig/ConfigurableParam.h"
17+
#include "SimConfig/ConfigurableParamHelper.h"
18+
#include <string>
19+
20+
namespace o2
21+
{
22+
namespace conf
23+
{
24+
// Global parameters for digitization
25+
26+
struct DigiParams : public o2::conf::ConfigurableParamHelper<DigiParams> {
27+
28+
std::string ccdb = "http://ccdb-test.cern.ch:8080"; // URL for CCDB acces
29+
30+
O2ParamDef(DigiParams, "DigiParams");
31+
};
32+
33+
} // namespace conf
34+
} // namespace o2
35+
36+
#endif
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright CERN and copyright holders of ALICE O2. This software is
2+
// distributed under the terms of the GNU General Public License v3 (GPL
3+
// Version 3), copied verbatim in the file "COPYING".
4+
//
5+
// See http://alice-o2.web.cern.ch/license for full licensing information.
6+
//
7+
// In applying this license CERN does not waive the privileges and immunities
8+
// granted to it by virtue of its status as an Intergovernmental Organization
9+
// or submit itself to any jurisdiction.
10+
11+
#include "SimConfig/DigiParams.h"
12+
13+
O2ParamImpl(o2::conf::DigiParams);

Common/SimConfig/src/SimConfigLinkDef.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#pragma link C++ class o2::conf::SimCutParams + ;
2020
#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::conf::SimCutParams> + ;
2121

22+
#pragma link C++ class o2::conf::DigiParams + ;
23+
#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::conf::DigiParams> + ;
24+
2225
#pragma link C++ enum o2::conf::EG4Physics;
2326
#pragma link C++ struct o2::conf::G4Params + ;
2427
#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::conf::G4Params> + ;

0 commit comments

Comments
 (0)