CMS 3D CMS Logo

List of all members | Public Member Functions
PreshowerLayer1Properties Class Reference

#include <PreshowerLayer1Properties.h>

Inheritance diagram for PreshowerLayer1Properties:
PreshowerProperties CalorimeterProperties

Public Member Functions

double mipsPerGeV () const override
 Number of Mips/GeV [Default : 41.7 Mips/GeV or 24 MeV/Mips]. More...
 
 PreshowerLayer1Properties (const edm::ParameterSet &fastDet)
 
double sensitiveFraction () const override
 Fraction of energy collected on sensitive detectors. More...
 
double thickness (double eta) const override
 
 ~PreshowerLayer1Properties () override
 
- Public Member Functions inherited from PreshowerProperties
double criticalEnergy () const override
 Electron critical energy in GeV. More...
 
double interactionLength () const override
 Muon critical energy in GeV. More...
 
double moliereRadius () const override
 Moliere Radius in cm. More...
 
 PreshowerProperties ()
 
double radLenIncm () const override
 Radiation length in cm. More...
 
double radLenIngcm2 () const override
 Radiation length in g/cm^2. More...
 
double rho () const override
 Density in g/cm3. More...
 
double theAeff () const override
 Effective A. More...
 
double theZeff () const override
 Effective Z. More...
 
 ~PreshowerProperties () override
 
- Public Member Functions inherited from CalorimeterProperties
 CalorimeterProperties ()
 
virtual ~CalorimeterProperties ()
 

Additional Inherited Members

- Protected Attributes inherited from PreshowerProperties
double mips
 
double thick
 

Detailed Description

Definition at line 19 of file PreshowerLayer1Properties.h.

Constructor & Destructor Documentation

◆ PreshowerLayer1Properties()

PreshowerLayer1Properties::PreshowerLayer1Properties ( const edm::ParameterSet fastDet)

Definition at line 5 of file PreshowerLayer1Properties.cc.

6  // Preshower : mumber of Mips / GeV
7  mips = fastDet.getParameter<double>("PreshowerLayer1_mipsPerGeV");
8  thick = fastDet.getParameter<double>("PreshowerLayer1_thickness");
9 }

References edm::ParameterSet::getParameter(), PreshowerProperties::mips, and PreshowerProperties::thick.

◆ ~PreshowerLayer1Properties()

PreshowerLayer1Properties::~PreshowerLayer1Properties ( )
inlineoverride

Definition at line 23 of file PreshowerLayer1Properties.h.

23 { ; }

Member Function Documentation

◆ mipsPerGeV()

double PreshowerLayer1Properties::mipsPerGeV ( ) const
inlineoverridevirtual

Number of Mips/GeV [Default : 41.7 Mips/GeV or 24 MeV/Mips].

Implements PreshowerProperties.

Definition at line 29 of file PreshowerLayer1Properties.h.

29 { return mips; }

References PreshowerProperties::mips.

Referenced by EMShower::compute().

◆ sensitiveFraction()

double PreshowerLayer1Properties::sensitiveFraction ( ) const
inlineoverridevirtual

Fraction of energy collected on sensitive detectors.

Implements PreshowerProperties.

Definition at line 26 of file PreshowerLayer1Properties.h.

26 { return 0.0036; }

◆ thickness()

double PreshowerLayer1Properties::thickness ( double  eta) const
overridevirtual

Thickness in cm (Pretend it is all lead) Default : 1.02 cm at normal incidence

Implements CalorimeterProperties.

Definition at line 11 of file PreshowerLayer1Properties.cc.

11  {
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 }

References MillePedeFileConverter_cfg::e, PVValHelper::eta, JetChargeProducer_cfi::exp, JetMETHLTOfflineSource_cfi::feta, and PreshowerProperties::thick.

Referenced by EcalHitMaker::preshowerCellLine().

PreshowerProperties::thick
double thick
Definition: PreshowerProperties.h:48
PreshowerProperties::mips
double mips
Definition: PreshowerProperties.h:49
PVValHelper::eta
Definition: PVValidationHelpers.h:69
JetMETHLTOfflineSource_cfi.feta
feta
Definition: JetMETHLTOfflineSource_cfi.py:30
PreshowerProperties::PreshowerProperties
PreshowerProperties()
Definition: PreshowerProperties.h:17
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37