#include <FastSimulation/CalorimeterProperties/interface/PreshowerLayer1Properties.h>
Public Member Functions | |
double | mipsPerGeV () const |
Number of Mips/GeV [Default : 41.7 Mips/GeV or 24 MeV/Mips]. | |
PreshowerLayer1Properties (const edm::ParameterSet &fastDet) | |
double | sensitiveFraction () const |
Fraction of energy collected on sensitive detectors. | |
double | thickness (double eta) const |
Thickness in cm (Pretend it is all lead) Default : 1.02 cm at normal incidence. | |
~PreshowerLayer1Properties () |
Definition at line 19 of file PreshowerLayer1Properties.h.
PreshowerLayer1Properties::PreshowerLayer1Properties | ( | const edm::ParameterSet & | fastDet | ) |
Definition at line 5 of file PreshowerLayer1Properties.cc.
References edm::ParameterSet::getParameter(), PreshowerProperties::mips, and PreshowerProperties::thick.
00006 : PreshowerProperties() 00007 { 00008 // Preshower : mumber of Mips / GeV 00009 mips = fastDet.getParameter<double>("PreshowerLayer1_mipsPerGeV"); 00010 thick = fastDet.getParameter<double>("PreshowerLayer1_thickness"); 00011 }
PreshowerLayer1Properties::~PreshowerLayer1Properties | ( | ) | [inline] |
double PreshowerLayer1Properties::mipsPerGeV | ( | ) | const [inline, virtual] |
Number of Mips/GeV [Default : 41.7 Mips/GeV or 24 MeV/Mips].
Implements PreshowerProperties.
Definition at line 34 of file PreshowerLayer1Properties.h.
References PreshowerProperties::mips.
Referenced by EMShower::compute().
00034 { return mips; }
double PreshowerLayer1Properties::sensitiveFraction | ( | ) | const [inline, virtual] |
Fraction of energy collected on sensitive detectors.
Implements PreshowerProperties.
Definition at line 31 of file PreshowerLayer1Properties.h.
double PreshowerLayer1Properties::thickness | ( | double | eta | ) | const [virtual] |
Thickness in cm (Pretend it is all lead) Default : 1.02 cm at normal incidence.
Implements CalorimeterProperties.
Definition at line 13 of file PreshowerLayer1Properties.cc.
References e, e2, funct::exp(), and PreshowerProperties::thick.
Referenced by EcalHitMaker::preshowerCellLine().
00013 { 00014 00015 // eta is the pseudorapidity 00016 double e = exp(-eta); 00017 double e2 = e*e; 00018 // 1 / cos theta 00019 double cinv = (1.+e2)/(1.-e2); 00020 // double c = (1.-e2)/(1.+e2); 00021 // double s = 2.*e/(1.+e2); 00022 // double t = 2.*e/(1.-e2); 00023 double feta = fabs(eta); 00024 00025 if ( 1.623 < feta && feta < 2.611 ) 00026 { 00027 return thick * fabs(cinv); 00028 } 00029 else 00030 { 00031 return 0; 00032 } 00033 00034 }