Belle II Software development
SVDGeometryPar.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#include <svd/dbobjects/SVDGeometryPar.h>
10#include <framework/logging/Logger.h>
11
12using namespace Belle2;
13using namespace std;
14
15
17{
18 //Check if sensorType already exists
19 std::map<int, SVDSupportRibsPar>::const_iterator cached = m_supportRibs.find(layer);
20 if (cached == m_supportRibs.end()) {
21 return false;
22 }
23 return true;
24}
25
27{
28 //Check if sensorType already exists
29 std::map<int, SVDEndringsPar>::const_iterator cached = m_endrings.find(layer);
30 if (cached == m_endrings.end()) {
31 return false;
32 }
33 return true;
34}
35
37{
38 //Check if sensorType already exists
39 std::map<int, SVDCoolingPipesPar>::const_iterator cached = m_coolingPipes.find(layer);
40 if (cached == m_coolingPipes.end()) {
41 return false;
42 }
43 return true;
44}
45
46
48{
49 //Check if sensorType already exists
50 std::map<int, SVDSupportRibsPar>::const_iterator cached = m_supportRibs.find(layer);
51 if (cached == m_supportRibs.end()) {
52 B2FATAL("No SupportRibs found for layer " << std::to_string(layer));
53 }
54 return cached->second;
55}
56
58{
59 //Check if sensorType already exists
60 std::map<int, SVDEndringsPar>::const_iterator cached = m_endrings.find(layer);
61 if (cached == m_endrings.end()) {
62 B2FATAL("No Endrings found for layer " << std::to_string(layer));
63 }
64 return cached->second;
65}
66
68{
69 //Check if sensorType already exists
70 std::map<int, SVDCoolingPipesPar>::const_iterator cached = m_coolingPipes.find(layer);
71 if (cached == m_coolingPipes.end()) {
72 B2FATAL("No CoolingPipes found for layer " << std::to_string(layer));
73 }
74 return cached->second;
75}
76
77
The Class for SVD Cooling Pipes.
The Class for SVD Endring.
std::map< int, SVDCoolingPipesPar > m_coolingPipes
SVD Cooling Pipes parameters.
bool getEndringsExist(int) const
return if endrings exist
const std::map< int, SVDSupportRibsPar > & getSupportRibs() const
get support ribs
const std::map< int, SVDCoolingPipesPar > & getCoolingPipes() const
get cooling pipes
bool getSupportRibsExist(int) const
return if SVD Support Ribs exist
std::map< int, SVDSupportRibsPar > m_supportRibs
SVD SupportRibs parameters.
bool getCoolingPipesExist(int) const
return if endrings exist
const std::map< int, SVDEndringsPar > & getEndrings() const
get endrings
std::map< int, SVDEndringsPar > m_endrings
SVD Endrings parameters.
The Class for SVD Support Ribs (one layer)
Abstract base class for different kinds of events.
STL namespace.