ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
LinearService::m_length
double m_length
Definition
LinearService.h:34
LinearService::m_name
std::string m_name
Definition
LinearService.h:33
LinearService::components
const std::vector< EntryType > & components() const
Definition
LinearService.h:29
LinearService::name
const std::string & name() const
Definition
LinearService.h:25
LinearService::m_components
std::vector< EntryType > m_components
Definition
LinearService.h:35
LinearService::LinearService
LinearService()
Definition
LinearService.h:16
LinearService::length
double length() const
Definition
LinearService.h:27
LinearService::EntryType
std::pair< std::string, double > EntryType
Definition
LinearService.h:14
LinearService::LinearService
LinearService(const std::string &name, double lw)
Constructor for elementary material (no components).
Definition
LinearService.h:22
LinearService::LinearService
LinearService(const std::string &name, double lw, const std::vector< EntryType > &cmp)
Definition
LinearService.h:18
Generated on
for ATLAS Offline Software by
1.17.0