File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments