test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
ECALBarrelProperties Class Reference

#include <ECALBarrelProperties.h>

Inheritance diagram for ECALBarrelProperties:
ECALProperties CalorimeterProperties

Public Member Functions

 ECALBarrelProperties (const edm::ParameterSet &fastDet)
 
double lightCollectionEfficiency () const
 Light Collection efficiency [Default : 3.0%]. More...
 
double lightCollectionUniformity () const
 Light Collection uniformity 0.003 for Standard ECAL. More...
 
double photoStatistics () const
 Photostatistics (photons/GeV) in the homegeneous material: 50E3 for Standard ECAL. More...
 
double thickness (double eta) const
 Thickness (in cm): 23.0 for Standard ECAL. More...
 
virtual ~ECALBarrelProperties ()
 
- Public Member Functions inherited from ECALProperties
double criticalEnergy () const
 Critical energy in GeV (2.66E-3*(x0*Z/A)^1.1): 8.74E-3 for Standard ECAL. More...
 
double da () const
 the width of the active layer in the case of the homogeneous detector More...
 
double dp () const
 the width of the passive layer in the case of the homogeneous detector More...
 
 ECALProperties ()
 
double ehat () const
 ehat = e/mip of the calorimeter. 0 for homogeneous one More...
 
double interactionLength () const
 Interaction length in cm: 18.5 for Standard ECAL. More...
 
bool isHom () const
 a rough estimate of ECAL resolution sigma/E = resE/sqrt(E) More...
 
double moliereRadius () const
 Moliere Radius in cm : 2.190 for Standard ECAL. More...
 
double radLenIncm () const
 Radiation length in cm. More...
 
double radLenIngcm2 () const
 Radiation length in cm but static. More...
 
double resE () const
 a rough estimate of ECAL resolution sigma/E = resE/sqrt(E) More...
 
double rho () const
 Density in g/cm3: 8.280 for Standard ECAL. More...
 
double theAeff () const
 Effective A: 170.87 for Standard ECAL. More...
 
double theFs () const
 Sampling fraction Fs of the calorimeter. 0 for homogeneous one. More...
 
double theZeff () const
 Effective Z: 68.36 for Standard ECAL. More...
 
virtual ~ECALProperties ()
 
- Public Member Functions inherited from CalorimeterProperties
 CalorimeterProperties ()
 
virtual ~CalorimeterProperties ()
 

Additional Inherited Members

- Protected Attributes inherited from ECALProperties
double Aeff_
 
bool bHom_
 
double criticalEnergy_
 
double da_
 
double dp_
 
double ehat_
 
double Fs_
 
double interactionLength_
 
double lightColl_
 
double lightCollUnif_
 
double moliereRadius_
 
double photoStatistics_
 
double radLenIncm_
 
double radLenIngcm2_
 
double resE_
 
double rho_
 
const double scaleEnergy_
 
double thickness_
 
double Zeff_
 

Detailed Description

Definition at line 18 of file ECALBarrelProperties.h.

Constructor & Destructor Documentation

ECALBarrelProperties::ECALBarrelProperties ( const edm::ParameterSet fastDet)

Definition at line 9 of file ECALBarrelProperties.cc.

References ECALProperties::Aeff_, ECALProperties::bHom_, ECALProperties::criticalEnergy_, ECALProperties::da_, debug, ECALProperties::dp_, ECALProperties::ehat_, ECALProperties::Fs_, edm::ParameterSet::getParameter(), ECALProperties::interactionLength_, ECALProperties::lightColl_, ECALProperties::lightCollUnif_, ECALProperties::moliereRadius_, ECALProperties::photoStatistics_, ECALProperties::radLenIncm_, ECALProperties::radLenIngcm2_, ECALProperties::resE_, ECALProperties::rho_, ECALProperties::scaleEnergy_, ECALProperties::thickness_, and ECALProperties::Zeff_.

10 {
11 
12  edm::ParameterSet fastDetBarrel = fastDet.getParameter<edm::ParameterSet>("BarrelCalorimeterProperties");
13 
14  lightColl_ = fastDetBarrel.getParameter<double>("lightColl");
15  lightCollUnif_ = fastDetBarrel.getParameter<double>("lightCollUnif");
16  photoStatistics_ = fastDetBarrel.getParameter<double>("photoStatistics");
17  thickness_ = fastDetBarrel.getParameter<double>("thickness");
18  interactionLength_ = fastDetBarrel.getParameter<double>("interactionLength");
19 
20  Aeff_ = fastDetBarrel.getParameter<double>("Aeff");
21  Zeff_ = fastDetBarrel.getParameter<double>("Zeff");
22  rho_ = fastDetBarrel.getParameter<double>("rho");
23  radLenIngcm2_ = fastDetBarrel.getParameter<double>("radLenIngcm2");
24 
25  radLenIncm_ = fastDetBarrel.getParameter<double>("radLenIncm");
26  radLenIncm_ = (radLenIncm_ < 0) ? radLenIngcm2_/rho_ : radLenIncm_;
27 
28  criticalEnergy_ = fastDetBarrel.getParameter<double>("criticalEnergy");
29  criticalEnergy_ = (criticalEnergy_ < 0) ? 2.66E-3*TMath::Power((radLenIngcm2_*Zeff_/Aeff_),1.1) : criticalEnergy_;
30 
31  moliereRadius_ = fastDetBarrel.getParameter<double>("moliereRadius");
32  moliereRadius_ = (moliereRadius_ < 0) ? scaleEnergy_/criticalEnergy_*radLenIncm_ : moliereRadius_;
33 
34  Fs_ = fastDetBarrel.getParameter<double>("Fs");
35  ehat_ = fastDetBarrel.getParameter<double>("ehat");
36  resE_ = fastDetBarrel.getParameter<double>("resE");
37 
38  da_ = fastDetBarrel.getParameter<double>("da");
39  dp_ = fastDetBarrel.getParameter<double>("dp");
40 
41  bHom_ = fastDetBarrel.getParameter<bool>("bHom");
42 
43  bool debug = fastDetBarrel.getParameter<bool>("debug");
44 
45 
46  if (debug)
47  edm::LogInfo("ECALProperties") <<" ========== Barrel ========= " << "\n"
48  <<" isHom ? " << bHom_ << "\n"
49  <<" da = " << da_ << " dp = " << dp_
50  <<" lightColl = " << lightColl_ << "\n"
51  <<" lightCollUnif_ = " << lightCollUnif_ << "\n"
52  <<" photoStatistics_ = " << photoStatistics_ << " photons/GeV\n"
53  <<" thickness_ = " << thickness_ << " cm\n"
54  <<" interactionLength_ = " << interactionLength_ << " cm\n"
55  <<" Aeff_ = " << Aeff_ << "\n"
56  <<" Zeff_ = " << Zeff_ << "\n"
57  <<" rho_ = " << rho_ << " g/cm3\n"
58  <<" radLenIngcm2_ = " << radLenIngcm2_ << " g*cm2\n"
59  <<" radLenIncm_ = " << radLenIncm_ << " cm\n"
60  <<" moliereRadius_ = " << moliereRadius_ << " cm\n"
61  <<" criticalEnergy_ = " << criticalEnergy_ << " GeV\n"
62  <<" scaleEnergy_ = " << scaleEnergy_ << " GeV\n"
63  <<" Fs = " << Fs_ << " ehat = " << ehat_ << " resE = " << resE_ << "\n";
64 
65 
66 }
T getParameter(std::string const &) const
const double scaleEnergy_
double moliereRadius_
double criticalEnergy_
double radLenIngcm2_
#define debug
Definition: HDRShower.cc:19
double lightCollUnif_
double interactionLength_
double photoStatistics_
virtual ECALBarrelProperties::~ECALBarrelProperties ( )
inlinevirtual

Definition at line 25 of file ECALBarrelProperties.h.

25 { }

Member Function Documentation

double ECALBarrelProperties::lightCollectionEfficiency ( ) const
inlinevirtual

Light Collection efficiency [Default : 3.0%].

Implements ECALProperties.

Definition at line 34 of file ECALBarrelProperties.h.

References ECALProperties::lightColl_.

34 { return lightColl_; }
double ECALBarrelProperties::lightCollectionUniformity ( ) const
inlinevirtual

Light Collection uniformity 0.003 for Standard ECAL.

Implements ECALProperties.

Definition at line 37 of file ECALBarrelProperties.h.

References ECALProperties::lightCollUnif_.

37 {return lightCollUnif_;}
double lightCollUnif_
double ECALBarrelProperties::photoStatistics ( ) const
inlinevirtual

Photostatistics (photons/GeV) in the homegeneous material: 50E3 for Standard ECAL.

Implements ECALProperties.

Definition at line 31 of file ECALBarrelProperties.h.

References ECALProperties::photoStatistics_.

31 { return photoStatistics_; }
double photoStatistics_
double ECALBarrelProperties::thickness ( double  eta) const
inlinevirtual

Thickness (in cm): 23.0 for Standard ECAL.

Implements CalorimeterProperties.

Definition at line 28 of file ECALBarrelProperties.h.

References ECALProperties::thickness_.

28 { return thickness_; }