Skip to content

Commit 7d53bf6

Browse files
authored
Create testCollisionTypeHelper.C
1 parent 9471c55 commit 7d53bf6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
12+
#include "Common/Core/CollisionTypeHelper.h"
13+
14+
#include "CCDB/BasicCCDBManager.h"
15+
#include "DataFormatsParameters/GRPLHCIFData.h"
16+
17+
void testCollisionTypeHelper(int runNumber = 564275)
18+
{
19+
20+
o2::common::core::CollisionSystemType collSysType;
21+
auto& ccdb = o2::ccdb::BasicCCDBManager::instance();
22+
ccdb.setURL("http://alice-ccdb.cern.ch");
23+
o2::parameters::GRPLHCIFData* grpo = ccdb.getSpecificForRun<o2::parameters::GRPLHCIFData>("GLO/Config/GRPLHCIF",
24+
runNumber);
25+
grpo->print();
26+
int collsys = CollisionSystemType::getCollisionTypeFromGrp(grpo);
27+
}

0 commit comments

Comments
 (0)