CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ECALBarrelProperties.cc
Go to the documentation of this file.
2 
3 //This class header
5 #include "TMath.h"
6 #include <iostream>
8 
10 {
11 
12  using namespace std;
13 
14  edm::ParameterSet fastDetBarrel = fastDet.getParameter<edm::ParameterSet>("BarrelCalorimeterProperties");
15 
16  lightColl_ = fastDetBarrel.getParameter<double>("lightColl");
17  lightCollUnif_ = fastDetBarrel.getParameter<double>("lightCollUnif");
18  photoStatistics_ = fastDetBarrel.getParameter<double>("photoStatistics");
19  thickness_ = fastDetBarrel.getParameter<double>("thickness");
20  interactionLength_ = fastDetBarrel.getParameter<double>("interactionLength");
21 
22  Aeff_ = fastDetBarrel.getParameter<double>("Aeff");
23  Zeff_ = fastDetBarrel.getParameter<double>("Zeff");
24  rho_ = fastDetBarrel.getParameter<double>("rho");
25  radLenIngcm2_ = fastDetBarrel.getParameter<double>("radLenIngcm2");
26 
27  radLenIncm_ = fastDetBarrel.getParameter<double>("radLenIncm");
29 
30  criticalEnergy_ = fastDetBarrel.getParameter<double>("criticalEnergy");
31  criticalEnergy_ = (criticalEnergy_ < 0) ? 2.66E-3*TMath::Power((radLenIngcm2_*Zeff_/Aeff_),1.1) : criticalEnergy_;
32 
33  moliereRadius_ = fastDetBarrel.getParameter<double>("moliereRadius");
35 
36  Fs_ = fastDetBarrel.getParameter<double>("Fs");
37  ehat_ = fastDetBarrel.getParameter<double>("ehat");
38  resE_ = fastDetBarrel.getParameter<double>("resE");
39 
40  bHom_ = fastDetBarrel.getParameter<bool>("bHom");
41 
42  bool debug = fastDetBarrel.getParameter<bool>("debug");
43 
44  if (debug)
45  LogDebug("ECALEndcapProperties") <<" ========== Barrel ========= " << endl
46  <<" \t\t isHom ? " << bHom_ << endl
47  <<" lightColl = " << lightColl_ << endl
48  <<" lightCollUnif_ = " << lightCollUnif_ << endl
49  <<" photoStatistics_ = " << photoStatistics_ << endl
50  <<" thickness_ = " << thickness_ << endl
51  <<" interactionLength_ = " << interactionLength_ << endl
52  <<" Aeff_ = " << Aeff_ << endl
53  <<" Zeff_ = " << Zeff_ << endl
54  <<" rho_ = " << rho_ << endl
55  <<" radLenIngcm2_ = " << radLenIngcm2_ << endl
56  <<" radLenIncm_ = " << radLenIncm_ << endl
57  <<" moliereRadius_ = " << moliereRadius_ << endl
58  <<" criticalEnergy_ = " << criticalEnergy_ << endl
59  <<" scaleEnergy_ = " << scaleEnergy_ << endl
60  <<" Fs = " << Fs_ << " ehat = " << ehat_ << " resE = " << resE_ << endl;
61 
62 
63 
64 
65 
66 }
#define LogDebug(id)
T getParameter(std::string const &) const
const double scaleEnergy_
double moliereRadius_
double criticalEnergy_
ECALBarrelProperties(const edm::ParameterSet &fastDet)
double radLenIngcm2_
double lightCollUnif_
double interactionLength_
double photoStatistics_
#define debug
Definition: MEtoEDMFormat.h:34