Project
Loading...
Searching...
No Matches
Helpers.h
Go to the documentation of this file.
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#ifndef O2_MCH_GEOMETRY_TEST_HELPERS_H
13#define O2_MCH_GEOMETRY_TEST_HELPERS_H
14
15#include <iostream>
16
17class TH2;
18
19namespace o2::mch::test
20{
21
25
27void showGeometryAsTextTree(const char* fromPath = "", int maxdepth = 2, std::ostream& out = std::cout);
28
30void drawGeometry();
31
33void zeroMisAlignGeometry(const std::string& ccdbHost = "http://localhost:8080", const std::string& fileName = "MCHMisAlignment.root");
34
36void misAlignGeometry();
37
39void setVolumeVisibility(const char* pattern, bool visible, bool visibleDaughters);
40
42void setVolumeColor(const char* pattern, int lineColor, int fillColor);
43inline void setVolumeColor(const char* pattern, int color)
44{
46}
47
49TH2* getRadio(int detElemId, float xmin, float ymin, float xmax, float ymax, float xstep, float ystep, float thickness = 5 /* cm */);
50
51class Dummy
52{
53 // to force Root produce a dictionary for namespace test (seems it is doing it fully if there are only functions in the namespace)
54};
55} // namespace o2::mch::test
56
57#endif
void createStandaloneGeometry(const char *name)
GLuint color
Definition glcorearb.h:1272
void setVolumeVisibility(const char *pattern, bool visible, bool visibleDaughters)
set the volume and daughter visibility for all volumes with a name matching the regexp pattern
Definition Helpers.cxx:207
void setVolumeColor(const char *pattern, int lineColor, int fillColor)
set the volume line and fill for all volumes with a name matching the regexp pattern
Definition Helpers.cxx:221
void showGeometryAsTextTree(const char *fromPath, int maxdepth, std::ostream &out)
tree like textual dump of the geometry nodes
Definition Helpers.cxx:92
void misAlignGeometry()
generates misalignments for MCH geometry
Definition Helpers.cxx:183
void drawGeometry()
basic drawing of the geometry
Definition Helpers.cxx:264
void zeroMisAlignGeometry(const std::string &ccdbHost, const std::string &fileName)
generates zero misalignments for MCH geometry
Definition Helpers.cxx:138
std::array< uint16_t, 5 > pattern