CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 Number of Mips/GeV [Default : 41.7 Mips/GeV or 24 MeV/Mips]. More...
 
 PreshowerLayer1Properties (const edm::ParameterSet &fastDet)
 
double sensitiveFraction () const
 Fraction of energy collected on sensitive detectors. More...
 
double thickness (double eta) const
 
 ~PreshowerLayer1Properties ()
 
- Public Member Functions inherited from PreshowerProperties
double criticalEnergy () const
 Electron critical energy in GeV. More...
 
double interactionLength () const
 Muon critical energy in GeV. More...
 
double moliereRadius () const
 Moliere Radius in cm. More...
 
 PreshowerProperties ()
 
double radLenIncm () const
 Radiation length in cm. More...
 
double radLenIngcm2 () const
 Radiation length in g/cm^2. More...
 
double rho () const
 Density in g/cm3. More...
 
double theAeff () const
 Effective A. More...
 
double theZeff () const
 Effective Z. More...
 
 ~PreshowerProperties ()
 
- 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 ( )
inline

Definition at line 26 of file PreshowerLayer1Properties.h.

26  {
27  ;
28  }

Member Function Documentation

double PreshowerLayer1Properties::mipsPerGeV ( ) const
inlinevirtual

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().

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

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
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 alignCSCRings::e, reco::e2, create_public_lumi_plots::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 }
T eta() const
Float e2
Definition: deltaR.h:23