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 ( 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 {
8  // Preshower : mumber of Mips / GeV
9  mips = fastDet.getParameter<double>("PreshowerLayer2_mipsPerGeV");
10  thick = fastDet.getParameter<double>("PreshowerLayer2_thickness");
11  pseeradLenIncm_ = fastDet.getUntrackedParameter<double>("PreshowerEEGapRadLenInCm",63.);
12  pseeInteractionLength_ = fastDet.getUntrackedParameter<double>("PreshowerEEGapIntLenInCm",111.);
13 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
PreshowerLayer2Properties::~PreshowerLayer2Properties ( )
inlineoverride

Definition at line 26 of file PreshowerLayer2Properties.h.

26  {
27  ;}

Member Function Documentation

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 33 of file PreshowerLayer2Properties.h.

References PVValHelper::eta.

Referenced by EMShower::compute().

33 { return mips; }
double PreshowerLayer2Properties::pseeIntLenIncm ( ) const
inline

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

Definition at line 40 of file PreshowerLayer2Properties.h.

Referenced by CaloSegment::CaloSegment().

double PreshowerLayer2Properties::pseeRadLenIncm ( ) const
inline

properties of the material between ES and EE

Definition at line 42 of file PreshowerLayer2Properties.h.

Referenced by CaloSegment::CaloSegment().

double PreshowerLayer2Properties::sensitiveFraction ( ) const
inlineoverridevirtual

Fraction of energy collected on sensitive detectors.

Implements PreshowerProperties.

Definition at line 30 of file PreshowerLayer2Properties.h.

30 { return 0.00515; }
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 15 of file PreshowerLayer2Properties.cc.

References MillePedeFileConverter_cfg::e, JetChargeProducer_cfi::exp, and PreshowerProperties::thick.

Referenced by EcalHitMaker::preshowerCellLine().

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

Member Data Documentation

double PreshowerLayer2Properties::pseeInteractionLength_
private

Definition at line 45 of file PreshowerLayer2Properties.h.

Referenced by PreshowerLayer2Properties().

double PreshowerLayer2Properties::pseeradLenIncm_
private

Definition at line 46 of file PreshowerLayer2Properties.h.

Referenced by PreshowerLayer2Properties().