CMS 3D CMS Logo

Public Member Functions | Private Attributes

HcalTBSimParameterMap Class Reference

#include <HcalTBSimParameterMap.h>

Inheritance diagram for HcalTBSimParameterMap:
CaloVSimParameterMap

List of all members.

Public Member Functions

HcalSimParameters hbParameters () const
 accessors
 HcalTBSimParameterMap ()
 hardcoded default parameters
 HcalTBSimParameterMap (const edm::ParameterSet &p)
 configurable parameters
HcalSimParameters heParameters () const
HcalSimParameters hoParameters () const
virtual const CaloSimParameterssimParameters (const DetId &id) const
virtual ~HcalTBSimParameterMap ()

Private Attributes

HcalSimParameters theHBParameters
HcalSimParameters theHEParameters
HcalSimParameters theHOParameters

Detailed Description

Definition at line 8 of file HcalTBSimParameterMap.h.


Constructor & Destructor Documentation

HcalTBSimParameterMap::HcalTBSimParameterMap ( )

hardcoded default parameters

Definition at line 7 of file HcalTBSimParameterMap.cc.

                                             :
  theHBParameters(2000., std::vector<double>(16, 0.3305), 117, 5, 10, 5, 
                  true, false, 1, std::vector<double>(16, 117.)),
  theHEParameters(2000., std::vector<double>(16, 0.3305), 178, 5, 10, 5, 
                  true, false, 16, std::vector<double>(16, 178.)),
  theHOParameters(4000., std::vector<double>(16, 0.3065), 217, 5, 10, 5, 
                  true, false, 1, std::vector<double>(16, 217.)) {}
HcalTBSimParameterMap::HcalTBSimParameterMap ( const edm::ParameterSet p)

configurable parameters

Definition at line 22 of file HcalTBSimParameterMap.cc.

                                                                      :
  theHBParameters(p.getUntrackedParameter<double>("photomultiplierGainTBHB",2000.),
                  p.getUntrackedParameter<std::vector<double> >("photoelectronsToAnalogTBHB",std::vector<double>(16, 0.3305)),
                  p.getUntrackedParameter<double>("samplingFactorTBHB",117),
                  p.getUntrackedParameter<double>("timePhaseTBHB",5),
                  p.getUntrackedParameter<int>("readoutFrameSizeTB",10),
                  p.getUntrackedParameter<int>("binOfMaximumTBHB",5),
                  p.getUntrackedParameter<bool>("doPhotostatisticsTB",true),
                  p.getUntrackedParameter<bool>("syncPhaseTB",true),
                  p.getUntrackedParameter<int>("firstRingTBHB",1), 
                  p.getUntrackedParameter<std::vector<double> >("samplingFactorsTBHB", std::vector<double>(16, 117.)) ),
  theHEParameters(p.getUntrackedParameter<double>("photomultiplierGainTBHE",2000.),
                  p.getUntrackedParameter<std::vector<double> >("photoelectronsToAnalogTBHE",std::vector<double>(16, 0.3305)),
                  p.getUntrackedParameter<double>("samplingFactorTBHE",178),
                  p.getUntrackedParameter<double>("timePhaseTBHE",5),
                  p.getUntrackedParameter<int>("readoutFrameSizeTB",10),
                  p.getUntrackedParameter<int>("binOfMaximumTBHE",5),
                  p.getUntrackedParameter<bool>("doPhotostatisticsTB",true),
                  p.getUntrackedParameter<bool>("syncPhaseTB",true),
                  p.getUntrackedParameter<int>("firstRingTBHE",16), 
                  p.getUntrackedParameter<std::vector<double> >("samplingFactorsTBHE", std::vector<double>(16, 178.)) ),
  theHOParameters(p.getUntrackedParameter<double>("photomultiplierGainTBHE",4000.),
                  p.getUntrackedParameter<std::vector<double> >("photoelectronsToAnalogTBHO",std::vector<double>(16, 3065)),
                  p.getUntrackedParameter<double>("samplingFactorTBHO",217),
                  p.getUntrackedParameter<double>("timePhaseTBHO",5),
                  p.getUntrackedParameter<int>("readoutFrameSizeTB",10),
                  p.getUntrackedParameter<int>("binOfMaximumTBHO",5),
                  p.getUntrackedParameter<bool>("doPhotostatisticsTB",true),
                  p.getUntrackedParameter<bool>("syncPhaseTB",true),
                  p.getUntrackedParameter<int>("firstRingTBHO",1), 
                  p.getUntrackedParameter<std::vector<double> >("samplingFactorsTBHO", std::vector<double>(16, 217.)) ) {}
virtual HcalTBSimParameterMap::~HcalTBSimParameterMap ( ) [inline, virtual]

Definition at line 16 of file HcalTBSimParameterMap.h.

{}

Member Function Documentation

HcalSimParameters HcalTBSimParameterMap::hbParameters ( ) const [inline]

accessors

Definition at line 21 of file HcalTBSimParameterMap.h.

References theHBParameters.

{return theHBParameters;}
HcalSimParameters HcalTBSimParameterMap::heParameters ( ) const [inline]

Definition at line 22 of file HcalTBSimParameterMap.h.

References theHEParameters.

{return theHEParameters;}
HcalSimParameters HcalTBSimParameterMap::hoParameters ( ) const [inline]

Definition at line 23 of file HcalTBSimParameterMap.h.

References theHOParameters.

{return theHOParameters;}
const CaloSimParameters & HcalTBSimParameterMap::simParameters ( const DetId id) const [virtual]

Implements CaloVSimParameterMap.

Definition at line 55 of file HcalTBSimParameterMap.cc.

References HcalBarrel, HcalEndcap, HcalDetId::subdet(), theHBParameters, theHEParameters, and theHOParameters.

Referenced by HcalTBDigiProducer::HcalTBDigiProducer(), and HcalTBDigiProducer::setPhaseShift().

                                                                                        {
  HcalDetId hcalDetId(detId);
  if(hcalDetId.subdet() == HcalBarrel) {
    return theHBParameters;
  } else if(hcalDetId.subdet() == HcalEndcap) {
    return theHEParameters;
  } else {
    return theHOParameters;
  }
}

Member Data Documentation

Definition at line 26 of file HcalTBSimParameterMap.h.

Referenced by hbParameters(), and simParameters().

Definition at line 27 of file HcalTBSimParameterMap.h.

Referenced by heParameters(), and simParameters().

Definition at line 28 of file HcalTBSimParameterMap.h.

Referenced by hoParameters(), and simParameters().