CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PreshowerLayer2Properties Class Reference

#include <PreshowerLayer2Properties.h>

Inheritance diagram for PreshowerLayer2Properties:
PreshowerProperties CalorimeterProperties

Public Member Functions

double mipsPerGeV () const override
 Number of Mips/GeV [Default : 59.5 Mips/GeV or 0.7*24 MeV/Mips]. More...
 
 PreshowerLayer2Properties (const edm::ParameterSet &fastDet)
 
double pseeIntLenIncm () const
 properties of the material between ES and EE; there is about 12 cm between the two. More...
 
double pseeRadLenIncm () const
 properties of the material between ES and EE More...
 
double sensitiveFraction () const override
 Fraction of energy collected on sensitive detectors. More...
 
double thickness (const double eta) const override
 
 ~PreshowerLayer2Properties () 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 ()
 

Private Attributes

double pseeInteractionLength_
 
double pseeradLenIncm_
 

Additional Inherited Members

- Protected Attributes inherited from PreshowerProperties
double mips
 
double thick
 

Detailed Description

Definition at line 19 of file PreshowerLayer2Properties.h.

Constructor & Destructor Documentation

◆ PreshowerLayer2Properties()

PreshowerLayer2Properties::PreshowerLayer2Properties ( const edm::ParameterSet fastDet)

Definition at line 6 of file PreshowerLayer2Properties.cc.

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

7  // Preshower : mumber of Mips / GeV
8  mips = fastDet.getParameter<double>("PreshowerLayer2_mipsPerGeV");
9  thick = fastDet.getParameter<double>("PreshowerLayer2_thickness");
10  pseeradLenIncm_ = fastDet.getUntrackedParameter<double>("PreshowerEEGapRadLenInCm", 63.);
11  pseeInteractionLength_ = fastDet.getUntrackedParameter<double>("PreshowerEEGapIntLenInCm", 111.);
12 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
T getUntrackedParameter(std::string const &, T const &) const

◆ ~PreshowerLayer2Properties()

PreshowerLayer2Properties::~PreshowerLayer2Properties ( )
inlineoverride

Definition at line 23 of file PreshowerLayer2Properties.h.

23 { ; }

Member Function Documentation

◆ mipsPerGeV()

double PreshowerLayer2Properties::mipsPerGeV ( ) const
inlineoverridevirtual

Number of Mips/GeV [Default : 59.5 Mips/GeV or 0.7*24 MeV/Mips].

Implements PreshowerProperties.

Definition at line 29 of file PreshowerLayer2Properties.h.

References PreshowerProperties::mips.

Referenced by EMShower::compute().

29 { return mips; }

◆ pseeIntLenIncm()

double PreshowerLayer2Properties::pseeIntLenIncm ( ) const
inline

properties of the material between ES and EE; there is about 12 cm between the two.

Definition at line 36 of file PreshowerLayer2Properties.h.

References pseeInteractionLength_.

Referenced by CaloSegment::CaloSegment().

◆ pseeRadLenIncm()

double PreshowerLayer2Properties::pseeRadLenIncm ( ) const
inline

properties of the material between ES and EE

Definition at line 38 of file PreshowerLayer2Properties.h.

References pseeradLenIncm_.

Referenced by CaloSegment::CaloSegment().

◆ sensitiveFraction()

double PreshowerLayer2Properties::sensitiveFraction ( ) const
inlineoverridevirtual

Fraction of energy collected on sensitive detectors.

Implements PreshowerProperties.

Definition at line 26 of file PreshowerLayer2Properties.h.

26 { return 0.00515; }

◆ thickness()

double PreshowerLayer2Properties::thickness ( const double  eta) const
overridevirtual

Thickness in cm (pretend it's all lead) Default : 0.506 cm at normal incidence

Implements CalorimeterProperties.

Definition at line 14 of file PreshowerLayer2Properties.cc.

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

Referenced by EcalHitMaker::preshowerCellLine().

14  {
15  // eta is the pseudorapidity
16  double e = exp(-eta);
17  double e2 = e * e;
18  // 1 / cos theta
19  double cinv = (1. + e2) / (1. - e2);
20  // double c = (1.-e2)/(1.+e2);
21  // double s = 2.*e/(1.+e2);
22  // double t = 2.*e/(1.-e2);
23  double feta = fabs(eta);
24 
25  if (1.637 < feta && feta < 2.625) {
26  return thick * fabs(cinv);
27  } else {
28  return 0;
29  }
30 }

Member Data Documentation

◆ pseeInteractionLength_

double PreshowerLayer2Properties::pseeInteractionLength_
private

Definition at line 41 of file PreshowerLayer2Properties.h.

Referenced by PreshowerLayer2Properties(), and pseeIntLenIncm().

◆ pseeradLenIncm_

double PreshowerLayer2Properties::pseeradLenIncm_
private

Definition at line 42 of file PreshowerLayer2Properties.h.

Referenced by PreshowerLayer2Properties(), and pseeRadLenIncm().