ATLAS Offline Software
Loading...
Searching...
No Matches
InDetServMatGeoModel/src/ServiceVolume.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 "ServiceVolume.h"
6#include "ServicesLayer.h"
7#include "GeoModelKernel/Units.h"
8#include <iostream>
9
10void ServiceVolume::dump( bool dumpMaterial) const
11{
12 using namespace std;
13 if (shape() == Cylinder) cout << "Cylinder ";
14 else if (shape() == Disk) cout << "Disk";
15
16 cout << "Radial extent " << m_rMin << "," << m_rMax
17 << " Z extent " << m_zMin << "," << m_zMax;
18
19 cout << " routes " << layers().size() << " layers" << endl;
20
21 if ( dumpMaterial && !materials().empty()) {
22 for (std::vector<ServiceMaterial>::const_iterator i=materials().begin(); i!=materials().end(); ++i) {
23 cout << " service material " << i->name() << " has the following components" << endl;
24 for ( ServiceMaterial::EntryIter ient= i->components().begin(); ient!=i->components().end(); ++ient) {
25 cout << ient->name << " linear? " << ient->linear
26 << " number " << ient->number
27 << " l/w " << ient->weight
28 << " total l/w " << ient->weight*ient->number << endl;
29 }
30 }
31 cout << endl;
32 }
33}
34
36{
37 //FIXME: add it back!!!
38 /*
39 // Here we treat the fixed mass end of stave material as linear material, with mass per mm equal
40 // to the EOS mass of one stave (this should be set in the weight table), "length" inside the volume
41 // equal to the number of staves in the layer.
42 if (l->type() == DetType::Pixel) {
43 m_materials.push_back( ServiceMaterial( "PixelEOS", l->nStaves()));
44 }
45 else {
46 m_materials.push_back( ServiceMaterial( "StripEOS", l->nStaves()));
47 }
48 */
49}
static const Attributes_t empty
EntryContainer::const_iterator EntryIter
const LayerContainer & layers() const
const std::vector< ServiceMaterial > & materials() const
void addEosServices(const ServicesLayer *l)
void dump(bool dumpMaterial=true) const
STL namespace.