Skip to content

Commit dd8eb9c

Browse files
committed
fix default name in the BC pattern gen. macro
1 parent c9a1455 commit dd8eb9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

macro/CreateBCPattern.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
using namespace std;
1111

12-
void CreateBCPattern(const std::string& outFileName = "bcPattern.root", const string& objName = "ccdb_object")
12+
void CreateBCPattern(const std::string& outFileName = "bcPattern.root", const string& objName = "")
1313
{
1414
// example of interacting BC pattern creation
1515

@@ -43,7 +43,7 @@ void CreateBCPattern(const std::string& outFileName = "bcPattern.root", const st
4343
pattern.print();
4444

4545
if (!outFileName.empty()) {
46-
std::string nm = objName.empty() ? objName : o2::BunchFilling::Class()->GetName();
46+
std::string nm = !objName.empty() ? objName : o2::BunchFilling::Class()->GetName();
4747
LOG(INFO) << "Storing pattern with name " << nm << " in a file " << outFileName;
4848
TFile outf(outFileName.c_str(), "update");
4949
outf.WriteObjectAny(&pattern, pattern.Class(), nm.c_str());

0 commit comments

Comments
 (0)