Belle II Software  release-05-01-25
SVDGeometryPar.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Benjamin Schwenker *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <svd/dbobjects/SVDGeometryPar.h>
12 #include <framework/logging/Logger.h>
13 
14 using namespace Belle2;
15 using namespace std;
16 
17 
19 {
20  //Check if sensorType already exists
21  std::map<int, SVDSupportRibsPar>::const_iterator cached = m_supportRibs.find(layer);
22  if (cached == m_supportRibs.end()) {
23  return false;
24  }
25  return true;
26 }
27 
28 bool SVDGeometryPar::getEndringsExist(int layer) const
29 {
30  //Check if sensorType already exists
31  std::map<int, SVDEndringsPar>::const_iterator cached = m_endrings.find(layer);
32  if (cached == m_endrings.end()) {
33  return false;
34  }
35  return true;
36 }
37 
39 {
40  //Check if sensorType already exists
41  std::map<int, SVDCoolingPipesPar>::const_iterator cached = m_coolingPipes.find(layer);
42  if (cached == m_coolingPipes.end()) {
43  return false;
44  }
45  return true;
46 }
47 
48 
50 {
51  //Check if sensorType already exists
52  std::map<int, SVDSupportRibsPar>::const_iterator cached = m_supportRibs.find(layer);
53  if (cached == m_supportRibs.end()) {
54  B2FATAL("No SupportRibs found for layer " << std::to_string(layer));
55  }
56  return cached->second;
57 }
58 
60 {
61  //Check if sensorType already exists
62  std::map<int, SVDEndringsPar>::const_iterator cached = m_endrings.find(layer);
63  if (cached == m_endrings.end()) {
64  B2FATAL("No Endrings found for layer " << std::to_string(layer));
65  }
66  return cached->second;
67 }
68 
70 {
71  //Check if sensorType already exists
72  std::map<int, SVDCoolingPipesPar>::const_iterator cached = m_coolingPipes.find(layer);
73  if (cached == m_coolingPipes.end()) {
74  B2FATAL("No CoolingPipes found for layer " << std::to_string(layer));
75  }
76  return cached->second;
77 }
78 
79 
Belle2::SVDGeometryPar::getCoolingPipesExist
bool getCoolingPipesExist(int) const
return if endrings exist
Definition: SVDGeometryPar.cc:38
Belle2::SVDEndringsPar
The Class for SVD Endring.
Definition: SVDEndringsPar.h:82
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SVDGeometryPar::getCoolingPipes
const std::map< int, SVDCoolingPipesPar > & getCoolingPipes() const
get cooling pipes
Definition: SVDGeometryPar.h:58
Belle2::SVDCoolingPipesPar
The Class for SVD Cooling Pipes.
Definition: SVDCoolingPipesPar.h:35
Belle2::SVDSupportRibsPar
The Class for SVD Support Ribs (one layer)
Definition: SVDSupportRibsPar.h:146
Belle2::SVDGeometryPar::getEndrings
const std::map< int, SVDEndringsPar > & getEndrings() const
get endrings
Definition: SVDGeometryPar.h:52
Belle2::SVDGeometryPar::getEndringsExist
bool getEndringsExist(int) const
return if endrings exist
Definition: SVDGeometryPar.cc:28
Belle2::SVDGeometryPar::getSupportRibsExist
bool getSupportRibsExist(int) const
return if SVD Support Ribs exist
Definition: SVDGeometryPar.cc:18
Belle2::SVDGeometryPar::getSupportRibs
const std::map< int, SVDSupportRibsPar > & getSupportRibs() const
get support ribs
Definition: SVDGeometryPar.h:64