CMS 3D CMS Logo

PreshowerLayer1Properties Class Reference

#include <FastSimulation/CalorimeterProperties/interface/PreshowerLayer1Properties.h>

Inheritance diagram for PreshowerLayer1Properties:

PreshowerProperties CalorimeterProperties

List of all members.

Public Member Functions

double mipsPerGeV () const
 Number of Mips/GeV [Default : 41.7 Mips/GeV or 24 MeV/Mips].
 PreshowerLayer1Properties (const edm::ParameterSet &fastDet)
double sensitiveFraction () const
 Fraction of energy collected on sensitive detectors.
double thickness (double eta) const
 Thickness in cm (Pretend it is all lead) Default : 1.02 cm at normal incidence.
 ~PreshowerLayer1Properties ()


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.

00006   : PreshowerProperties()
00007 {
00008   // Preshower : mumber of Mips / GeV 
00009   mips = fastDet.getParameter<double>("PreshowerLayer1_mipsPerGeV");
00010   thick = fastDet.getParameter<double>("PreshowerLayer1_thickness");
00011 }

PreshowerLayer1Properties::~PreshowerLayer1Properties (  )  [inline]

Definition at line 26 of file PreshowerLayer1Properties.h.

00026                                {
00027     ;
00028   }


Member Function Documentation

double PreshowerLayer1Properties::mipsPerGeV (  )  const [inline, virtual]

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

00034 { return mips; }

double PreshowerLayer1Properties::sensitiveFraction (  )  const [inline, virtual]

Fraction of energy collected on sensitive detectors.

Implements PreshowerProperties.

Definition at line 31 of file PreshowerLayer1Properties.h.

00031 { 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 e, e2, funct::exp(), and PreshowerProperties::thick.

Referenced by EcalHitMaker::preshowerCellLine().

00013                                                             { 
00014 
00015   // eta is the pseudorapidity
00016   double e  = exp(-eta);
00017   double e2 = e*e;
00018   // 1 / cos theta
00019   double cinv  = (1.+e2)/(1.-e2);
00020   //    double c  = (1.-e2)/(1.+e2);
00021   //    double s  = 2.*e/(1.+e2);
00022   //    double t  = 2.*e/(1.-e2);
00023   double feta = fabs(eta);
00024   
00025   if ( 1.623 < feta && feta < 2.611 ) 
00026     {
00027       return thick * fabs(cinv); 
00028     }
00029   else
00030     {
00031       return 0;
00032     }
00033   
00034 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:30:16 2009 for CMSSW by  doxygen 1.5.4