Belle II Software  release-05-01-25
BeamPipeGeo.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Luka Santelj *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <framework/gearbox/GearDir.h>
12 #include <ir/dbobjects/BeamPipeGeo.h>
13 
14 using namespace std;
15 using namespace Belle2;
16 
17 void BeamPipeGeo::initialize(const GearDir& content)
18 {
19  //------------------------------
20  // Get BeamPipe geometry parameters from the gearbox
21  //------------------------------
22 
23  GearDir cSafety(content, "Safety/");
24  addParameter("Safety.L1", cSafety.getLength("L1"));
25 
26  addParameter("LimitStepLength", content.getInt("LimitStepLength"));
27 
28  std::vector<std::string> names = {"Lv1SUS", "Lv2OutTi", "Lv2OutBe", "Lv2InBe", "Lv2Paraf", "Lv2Vacuum", "Lv3AuCoat", "Lv1TaFwd", "Lv2VacFwd", "Lv1TaBwd", "Lv2VacBwd", "Flange", "AreaTubeFwd", "Lv1TaLERUp", "Lv2VacLERUp", "Lv1TaHERDwn", "Lv2VacHERDwn", "AreaTubeBwd", "Lv1TaHERUp", "Lv2VacHERUp", "Lv1TaLERDwn", "Lv2VacLERDwn"};
29 
30 
31  for (auto name : names) {
32  GearDir sect(content, name + "/");
33  addParameters(sect, name);
34  }
35 
36 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::GearDir
GearDir is the basic class used for accessing the parameter store.
Definition: GearDir.h:41
Belle2::gearbox::Interface::getLength
double getLength(const std::string &path="") const noexcept(false)
Get the parameter path as a double converted to the standard length unit.
Definition: Interface.h:261