ATLAS Offline Software
InnerDetector
InDetDetDescr
InDetServMatGeoModel
src
LinearService.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef LinearService_H
6
#define LinearService_H
7
8
#include <string>
9
#include <vector>
10
11
class
LinearService
{
12
public
:
13
14
typedef
std::pair< std::string, double>
EntryType
;
15
16
LinearService
() {}
17
18
LinearService
(
const
std::string&
name
,
double
lw
,
const
std::vector< EntryType>&
cmp
) :
19
m_name
(
name
),
m_length
(
lw
),
m_components
(
cmp
) {}
20
22
LinearService
(
const
std::string&
name
,
double
lw
) :
23
m_name
(
name
),
m_length
(
lw
),
m_components
() {}
24
25
const
std::string&
name
()
const
{
return
m_name
;}
26
27
double
length
()
const
{
return
m_length
;}
28
29
const
std::vector< EntryType>&
components
()
const
{
return
m_components
;}
30
31
private
:
32
33
std::string
m_name
;
34
double
m_length
;
35
std::vector< EntryType>
m_components
;
36
37
};
38
39
#endif
python.EI_Lib.cmp
def cmp(x, y)
Definition:
EI_Lib.py:6
LinearService::m_components
std::vector< EntryType > m_components
Definition:
LinearService.h:35
python.LumiCalcWorking.lw
lw
Definition:
LumiCalcWorking.py:112
LinearService::EntryType
std::pair< std::string, double > EntryType
Definition:
LinearService.h:14
LinearService::name
const std::string & name() const
Definition:
LinearService.h:25
LinearService::LinearService
LinearService(const std::string &name, double lw)
Constructor for elementary material (no components)
Definition:
LinearService.h:22
LinearService
Definition:
LinearService.h:11
LinearService::components
const std::vector< EntryType > & components() const
Definition:
LinearService.h:29
LinearService::m_length
double m_length
Definition:
LinearService.h:34
LinearService::length
double length() const
Definition:
LinearService.h:27
LinearService::LinearService
LinearService()
Definition:
LinearService.h:16
LinearService::LinearService
LinearService(const std::string &name, double lw, const std::vector< EntryType > &cmp)
Definition:
LinearService.h:18
LinearService::m_name
std::string m_name
Definition:
LinearService.h:33
Generated on Mon Mar 10 2025 21:14:16 for ATLAS Offline Software by
1.8.18