Belle II Software  release-08-01-10
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 
12 using namespace Belle2;
13 using 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 
26 bool SVDGeometryPar::getEndringsExist(int layer) const
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.
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
bool getCoolingPipesExist(int) const
return if endrings exist
const std::map< int, SVDEndringsPar > & getEndrings() const
get endrings
The Class for SVD Support Ribs (one layer)
Abstract base class for different kinds of events.