test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ECALEndcapProperties.cc
Go to the documentation of this file.
2 
3 //This class header
5 #include "TMath.h"
6 #include <iostream>
8 
10 {
11 
12  edm::ParameterSet fastDetEndcap = fastDet.getParameter<edm::ParameterSet>("EndcapCalorimeterProperties");
13 
14  lightColl_ = fastDetEndcap.getParameter<double>("lightColl");
15  lightCollUnif_ = fastDetEndcap.getParameter<double>("lightCollUnif");
16  photoStatistics_ = fastDetEndcap.getParameter<double>("photoStatistics");
17  thickness_ = fastDetEndcap.getParameter<double>("thickness");
18  interactionLength_ = fastDetEndcap.getParameter<double>("interactionLength");
19 
20  Aeff_ = fastDetEndcap.getParameter<double>("Aeff");
21  Zeff_ = fastDetEndcap.getParameter<double>("Zeff");
22  rho_ = fastDetEndcap.getParameter<double>("rho");
23  radLenIngcm2_ = fastDetEndcap.getParameter<double>("radLenIngcm2");
24 
25  // Parameters that might be calculated out of the formulas
26 
27  radLenIncm_ = fastDetEndcap.getParameter<double>("radLenIncm");
28  radLenIncm_ = (radLenIncm_ < 0) ? radLenIngcm2_/rho_ : radLenIncm_;
29 
30  criticalEnergy_ = fastDetEndcap.getParameter<double>("criticalEnergy");
31  criticalEnergy_ = (criticalEnergy_ < 0) ? 2.66E-3*TMath::Power((radLenIngcm2_*Zeff_/Aeff_),1.1) : criticalEnergy_;
32 
33  moliereRadius_ = fastDetEndcap.getParameter<double>("moliereRadius");
34  moliereRadius_ = (moliereRadius_ < 0) ? scaleEnergy_/criticalEnergy_*radLenIncm_ : moliereRadius_;
35 
36  Fs_ = fastDetEndcap.getParameter<double>("Fs");
37  ehat_ = fastDetEndcap.getParameter<double>("ehat");
38  resE_ = fastDetEndcap.getParameter<double>("resE");
39 
40  da_ = fastDetEndcap.getParameter<double>("da");
41  dp_ = fastDetEndcap.getParameter<double>("dp");
42 
43  bHom_ = fastDetEndcap.getParameter<bool>("bHom");
44 
45  bool debug = fastDetEndcap.getParameter<bool>("debug");
46 
47  if (debug)
48  edm::LogInfo("ECALProperties") <<" ========== Endcap ========= \n"
49  <<" isHom ? " << bHom_ << "\n"
50  <<" da = " << da_ << " dp = " << dp_
51  <<" lightColl = " << lightColl_ << "\n"
52  <<" lightCollUnif_ = " << lightCollUnif_ << "\n"
53  <<" photoStatistics_ = " << photoStatistics_ << " photons/GeV\n"
54  <<" thickness_ = " << thickness_ << " in cm \n"
55  <<" interactionLength_ = " << interactionLength_ << " cm \n"
56  <<" Aeff_ = " << Aeff_ << "\n"
57  <<" Zeff_ = " << Zeff_ << "\n"
58  <<" rho_ = " << rho_ << " g/cm3\n"
59  <<" radLenIngcm2_ = " << radLenIngcm2_ << " g*cm2\n"
60  <<" radLenIncm_ = " << radLenIncm_ << " cm\n"
61  <<" moliereRadius_ = " << moliereRadius_ << " cm\n"
62  <<" criticalEnergy_ = " << criticalEnergy_ << " GeV\n"
63  <<" scaleEnergy_ = " << scaleEnergy_ << " GeV\n"
64  <<" Fs = " << Fs_ << " ehat = " << ehat_ << " resE = " << resE_ << "\n";
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_
ECALEndcapProperties(const edm::ParameterSet &fastDet)
double photoStatistics_