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 ( const edm::ParameterSet fastDet)

Definition at line 5 of file PreshowerLayer1Properties.cc.

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

7 {
8  // Preshower : mumber of Mips / GeV
9  mips = fastDet.getParameter<double>("PreshowerLayer1_mipsPerGeV");
10  thick = fastDet.getParameter<double>("PreshowerLayer1_thickness");
11 }
T getParameter(std::string const &) const
PreshowerLayer1Properties::~PreshowerLayer1Properties ( )
inlineoverride

Definition at line 26 of file PreshowerLayer1Properties.h.

26  {
27  ;
28  }

Member Function Documentation

double PreshowerLayer1Properties::mipsPerGeV ( ) const
inlineoverridevirtual

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

Implements PreshowerProperties.

Definition at line 34 of file PreshowerLayer1Properties.h.

References PVValHelper::eta.

Referenced by EMShower::compute().

34 { return mips; }
double PreshowerLayer1Properties::sensitiveFraction ( ) const
inlineoverridevirtual

Fraction of energy collected on sensitive detectors.

Implements PreshowerProperties.

Definition at line 31 of file PreshowerLayer1Properties.h.

31 { return 0.0036; }
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 13 of file PreshowerLayer1Properties.cc.

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

Referenced by EcalHitMaker::preshowerCellLine().

13  {
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.623 < feta && feta < 2.611 )
26  {
27  return thick * fabs(cinv);
28  }
29  else
30  {
31  return 0;
32  }
33 
34 }
Float e2
Definition: deltaR.h:21