ATLAS Offline Software
Loading...
Searching...
No Matches
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
12public:
13
14 typedef std::pair< std::string, double> EntryType;
15
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) :
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
31private:
32
33 std::string m_name;
34 double m_length;
35 std::vector< EntryType> m_components;
36
37};
38
39#endif
std::string m_name
const std::vector< EntryType > & components() const
const std::string & name() const
std::vector< EntryType > m_components
double length() const
std::pair< std::string, double > EntryType
LinearService(const std::string &name, double lw)
Constructor for elementary material (no components)
LinearService(const std::string &name, double lw, const std::vector< EntryType > &cmp)