ATLAS Offline Software
InnerDetector
InDetDetDescr
InDetServMatGeoModel
src
ServiceMaterial.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ServiceMaterial.h
"
6
#include <ostream>
7
8
void
ServiceMaterial::dump
( std::ostream&
os
)
const
9
{
10
os
<< std::endl <<
"Dump of ServiceMaterial "
<<
name
()
11
<<
" containing "
<<
components
().size() <<
" components"
<< std::endl;
12
double
totalWeight = 0;
13
for
(
unsigned
int
i
=0;
i
<
components
().size();
i
++) {
14
ServiceMaterial::Entry
comp
=
components
().at(
i
);
15
os
<<
"Comp. "
<<
i
<<
" name "
<<
comp
.name
16
<<
" number "
<<
comp
.number
17
<<
" weight "
<<
comp
.weight
18
<<
" is linear? "
<<
comp
.linear
19
<< std::endl;
20
totalWeight +=
comp
.weight *
comp
.number;
21
}
22
os
<<
"Total weight: "
<< totalWeight << std::endl;
23
}
plotting.yearwise_luminosity_vs_mu.comp
comp
Definition:
yearwise_luminosity_vs_mu.py:23
ServiceMaterial::name
const std::string & name() const
Constructor for elementary material (no components)
Definition:
ServiceMaterial.h:46
ServiceMaterial::dump
void dump(std::ostream &os) const
Definition:
ServiceMaterial.cxx:8
lumiFormat.i
int i
Definition:
lumiFormat.py:85
ServiceMaterial.h
ServiceMaterial::components
const std::vector< Entry > & components() const
Definition:
ServiceMaterial.h:48
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
ServiceMaterial::Entry
Structure holding one service material.
Definition:
ServiceMaterial.h:21
Generated on Thu Nov 7 2024 21:25:51 for ATLAS Offline Software by
1.8.18