CMS 3D CMS Logo

PreshowerLayer1Properties.cc
Go to the documentation of this file.
2 //This class header
4 #include <cmath>
6  // Preshower : mumber of Mips / GeV
7  mips = fastDet.getParameter<double>("PreshowerLayer1_mipsPerGeV");
8  thick = fastDet.getParameter<double>("PreshowerLayer1_thickness");
9 }
10 
12  // eta is the pseudorapidity
13  double e = exp(-eta);
14  double e2 = e * e;
15  // 1 / cos theta
16  double cinv = (1. + e2) / (1. - e2);
17  // double c = (1.-e2)/(1.+e2);
18  // double s = 2.*e/(1.+e2);
19  // double t = 2.*e/(1.-e2);
20  double feta = fabs(eta);
21 
22  if (1.623 < feta && feta < 2.611) {
23  return thick * fabs(cinv);
24  } else {
25  return 0;
26  }
27 }
PreshowerProperties::thick
double thick
Definition: PreshowerProperties.h:48
PreshowerLayer1Properties.h
PreshowerLayer1Properties::PreshowerLayer1Properties
PreshowerLayer1Properties(const edm::ParameterSet &fastDet)
Definition: PreshowerLayer1Properties.cc:5
PreshowerLayer1Properties::thickness
double thickness(double eta) const override
Definition: PreshowerLayer1Properties.cc:11
PreshowerProperties::mips
double mips
Definition: PreshowerProperties.h:49
PreshowerProperties
Definition: PreshowerProperties.h:15
PVValHelper::eta
Definition: PVValidationHelpers.h:69
JetMETHLTOfflineSource_cfi.feta
feta
Definition: JetMETHLTOfflineSource_cfi.py:30
edm::ParameterSet
Definition: ParameterSet.h:47
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ParameterSet.h
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37