ATLAS Offline Software
TRT_PAI_element.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "TRT_PAI_element.h"
6 #include <cmath>
7 #include <vector>
8 #include <string>
9 #include <iostream>
10 
11 //____________________________________________________________________________
12 
14  const float *E,
15  const float *S,
16  int N,
17  double Z,
18  double A) :
19  m_name(nm),
20  m_atomicA(A),
21  m_atomicZ(Z)
22 {
23  for ( int i=0; i<N; ++i ) {
24  m_lnEnergyLvls.push_back( std::log(E[i]) );
25  m_lnCrossScts.push_back( std::log(S[i]) );
26  }
27  return;
28 }
29 
30 //____________________________________________________________________________
31 
32 double TRT_PAI_element::getDensity(double tempK) {
33  double density = m_atomicA/22400.;
34  if ( tempK>0. ) density = density*293./tempK;
35  return density;
36 }
37 
38 //____________________________________________________________________________
TRT_PAI_element::m_lnEnergyLvls
std::vector< float > m_lnEnergyLvls
Definition: TRT_PAI_element.h:70
Monitored::Z
@ Z
Definition: HistogramFillerUtils.h:24
JetTiledMap::N
@ N
Definition: TiledEtaPhiMap.h:44
JetTiledMap::S
@ S
Definition: TiledEtaPhiMap.h:44
dqt_zlumi_alleff_HIST.A
A
Definition: dqt_zlumi_alleff_HIST.py:110
TRT_PAI_element::m_atomicA
double m_atomicA
Definition: TRT_PAI_element.h:72
lumiFormat.i
int i
Definition: lumiFormat.py:92
TRT_PAI_element::m_lnCrossScts
std::vector< float > m_lnCrossScts
Definition: TRT_PAI_element.h:71
VP1PartSpect::E
@ E
Definition: VP1PartSpectFlags.h:21
TRT_PAI_element::getDensity
double getDensity(double tempK=293.)
Get density of element at atmospheric preassure.
Definition: TRT_PAI_element.cxx:32
TRT_PAI_element.h
CalibCoolCompareRT.nm
nm
Definition: CalibCoolCompareRT.py:110
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TRT_PAI_element::TRT_PAI_element
TRT_PAI_element()
Default constructor for unnamed element.
Definition: TRT_PAI_element.h:19