![]() |
![]() |
#include <TrackerTopologyEP.h>
Public Types | |
typedef boost::shared_ptr < TrackerTopology > | ReturnType |
Public Member Functions | |
ReturnType | produce (const IdealGeometryRecord &) |
TrackerTopologyEP (const edm::ParameterSet &) | |
~TrackerTopologyEP () | |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Attributes | |
TrackerTopology::PixelBarrelValues | pxbVals_ |
TrackerTopology::PixelEndcapValues | pxfVals_ |
TrackerTopology::TECValues | tecVals_ |
TrackerTopology::TIBValues | tibVals_ |
TrackerTopology::TIDValues | tidVals_ |
TrackerTopology::TOBValues | tobVals_ |
Definition at line 26 of file TrackerTopologyEP.h.
typedef boost::shared_ptr<TrackerTopology> TrackerTopologyEP::ReturnType |
Definition at line 32 of file TrackerTopologyEP.h.
TrackerTopologyEP::TrackerTopologyEP | ( | const edm::ParameterSet & | conf | ) |
Definition at line 24 of file TrackerTopologyEP.cc.
References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, edm::ParameterSet::getParameter(), TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::TIBValues::layerMask_, TrackerTopology::TOBValues::layerMask_, TrackerTopology::TIBValues::layerStartBit_, TrackerTopology::TOBValues::layerStartBit_, TrackerTopology::PixelBarrelValues::layerStartBit_, TrackerTopology::TIDValues::module_fw_bwMask_, TrackerTopology::TIDValues::module_fw_bwStartBit_, TrackerTopology::TOBValues::moduleMask_, TrackerTopology::TECValues::moduleMask_, TrackerTopology::PixelEndcapValues::moduleMask_, TrackerTopology::TIBValues::moduleMask_, TrackerTopology::TIDValues::moduleMask_, TrackerTopology::PixelBarrelValues::moduleMask_, TrackerTopology::TIBValues::moduleStartBit_, TrackerTopology::TIDValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::moduleStartBit_, TrackerTopology::PixelBarrelValues::moduleStartBit_, TrackerTopology::TOBValues::moduleStartBit_, TrackerTopology::TECValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, TrackerTopology::TECValues::petal_fw_bwMask_, TrackerTopology::TECValues::petal_fw_bwStartBit_, TrackerTopology::TECValues::petalMask_, TrackerTopology::TECValues::petalStartBit_, pxbVals_, pxfVals_, TrackerTopology::TIDValues::ringMask_, TrackerTopology::TECValues::ringMask_, TrackerTopology::TIDValues::ringStartBit_, TrackerTopology::TECValues::ringStartBit_, TrackerTopology::TOBValues::rod_fw_bwMask_, TrackerTopology::TOBValues::rod_fw_bwStartBit_, TrackerTopology::TOBValues::rodMask_, TrackerTopology::TOBValues::rodStartBit_, edm::ESProducer::setWhatProduced(), TrackerTopology::TECValues::sideMask_, TrackerTopology::TIDValues::sideMask_, TrackerTopology::PixelEndcapValues::sideMask_, TrackerTopology::PixelEndcapValues::sideStartBit_, TrackerTopology::TECValues::sideStartBit_, TrackerTopology::TIDValues::sideStartBit_, TrackerTopology::TIDValues::sterMask_, TrackerTopology::TECValues::sterMask_, TrackerTopology::TIBValues::sterMask_, TrackerTopology::TOBValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, TrackerTopology::TOBValues::sterStartBit_, TrackerTopology::TECValues::sterStartBit_, TrackerTopology::TIBValues::sterStartBit_, TrackerTopology::TIBValues::str_fw_bwMask_, TrackerTopology::TIBValues::str_fw_bwStartBit_, TrackerTopology::TIBValues::str_int_extMask_, TrackerTopology::TIBValues::str_int_extStartBit_, TrackerTopology::TIBValues::strMask_, TrackerTopology::TIBValues::strStartBit_, tecVals_, tibVals_, tidVals_, tobVals_, TrackerTopology::TIDValues::wheelMask_, TrackerTopology::TECValues::wheelMask_, TrackerTopology::TIDValues::wheelStartBit_, and TrackerTopology::TECValues::wheelStartBit_.
{ edm::LogInfo("TRACKER") << "TrackerTopologyIdealEP::TrackerTopologyIdealEP"; pxbVals_.layerStartBit_=conf.getParameter<unsigned int>("pxb_layerStartBit"); pxbVals_.ladderStartBit_=conf.getParameter<unsigned int>("pxb_ladderStartBit"); pxbVals_.moduleStartBit_=conf.getParameter<unsigned int>("pxb_moduleStartBit"); pxbVals_.layerMask_=conf.getParameter<unsigned int>("pxb_layerMask"); pxbVals_.ladderMask_=conf.getParameter<unsigned int>("pxb_ladderMask"); pxbVals_.moduleMask_=conf.getParameter<unsigned int>("pxb_moduleMask"); pxfVals_.sideStartBit_=conf.getParameter<unsigned int>("pxf_sideStartBit"); pxfVals_.diskStartBit_=conf.getParameter<unsigned int>("pxf_diskStartBit"); pxfVals_.bladeStartBit_=conf.getParameter<unsigned int>("pxf_bladeStartBit"); pxfVals_.panelStartBit_=conf.getParameter<unsigned int>("pxf_panelStartBit"); pxfVals_.moduleStartBit_=conf.getParameter<unsigned int>("pxf_moduleStartBit"); pxfVals_.sideMask_=conf.getParameter<unsigned int>("pxf_sideMask"); pxfVals_.diskMask_=conf.getParameter<unsigned int>("pxf_diskMask"); pxfVals_.bladeMask_=conf.getParameter<unsigned int>("pxf_bladeMask"); pxfVals_.panelMask_=conf.getParameter<unsigned int>("pxf_panelMask"); pxfVals_.moduleMask_=conf.getParameter<unsigned int>("pxf_moduleMask"); tecVals_.sideStartBit_=conf.getParameter<unsigned int>("tec_sideStartBit"); tecVals_.wheelStartBit_=conf.getParameter<unsigned int>("tec_wheelStartBit"); tecVals_.petal_fw_bwStartBit_=conf.getParameter<unsigned int>("tec_petal_fw_bwStartBit"); tecVals_.petalStartBit_=conf.getParameter<unsigned int>("tec_petalStartBit"); tecVals_.ringStartBit_=conf.getParameter<unsigned int>("tec_ringStartBit"); tecVals_.moduleStartBit_=conf.getParameter<unsigned int>("tec_moduleStartBit"); tecVals_.sterStartBit_=conf.getParameter<unsigned int>("tec_sterStartBit"); tecVals_.sideMask_=conf.getParameter<unsigned int>("tec_sideMask"); tecVals_.wheelMask_=conf.getParameter<unsigned int>("tec_wheelMask"); tecVals_.petal_fw_bwMask_=conf.getParameter<unsigned int>("tec_petal_fw_bwMask"); tecVals_.petalMask_=conf.getParameter<unsigned int>("tec_petalMask"); tecVals_.ringMask_=conf.getParameter<unsigned int>("tec_ringMask"); tecVals_.moduleMask_=conf.getParameter<unsigned int>("tec_moduleMask"); tecVals_.sterMask_=conf.getParameter<unsigned int>("tec_sterMask"); tibVals_.layerStartBit_=conf.getParameter<unsigned int>("tib_layerStartBit"); tibVals_.str_fw_bwStartBit_=conf.getParameter<unsigned int>("tib_str_fw_bwStartBit"); tibVals_.str_int_extStartBit_=conf.getParameter<unsigned int>("tib_str_int_extStartBit"); tibVals_.strStartBit_=conf.getParameter<unsigned int>("tib_strStartBit"); tibVals_.moduleStartBit_=conf.getParameter<unsigned int>("tib_moduleStartBit"); tibVals_.sterStartBit_=conf.getParameter<unsigned int>("tib_sterStartBit"); tibVals_.layerMask_=conf.getParameter<unsigned int>("tib_layerMask"); tibVals_.str_fw_bwMask_=conf.getParameter<unsigned int>("tib_str_fw_bwMask"); tibVals_.str_int_extMask_=conf.getParameter<unsigned int>("tib_str_int_extMask"); tibVals_.strMask_=conf.getParameter<unsigned int>("tib_strMask"); tibVals_.moduleMask_=conf.getParameter<unsigned int>("tib_moduleMask"); tibVals_.sterMask_=conf.getParameter<unsigned int>("tib_sterMask"); tidVals_.sideStartBit_=conf.getParameter<unsigned int>("tid_sideStartBit"); tidVals_.wheelStartBit_=conf.getParameter<unsigned int>("tid_wheelStartBit"); tidVals_.ringStartBit_=conf.getParameter<unsigned int>("tid_ringStartBit"); tidVals_.module_fw_bwStartBit_=conf.getParameter<unsigned int>("tid_module_fw_bwStartBit"); tidVals_.moduleStartBit_=conf.getParameter<unsigned int>("tid_moduleStartBit"); tidVals_.sterStartBit_=conf.getParameter<unsigned int>("tid_sterStartBit"); tidVals_.sideMask_=conf.getParameter<unsigned int>("tid_sideMask"); tidVals_.wheelMask_=conf.getParameter<unsigned int>("tid_wheelMask"); tidVals_.ringMask_=conf.getParameter<unsigned int>("tid_ringMask"); tidVals_.module_fw_bwMask_=conf.getParameter<unsigned int>("tid_module_fw_bwMask"); tidVals_.moduleMask_=conf.getParameter<unsigned int>("tid_moduleMask"); tidVals_.sterMask_=conf.getParameter<unsigned int>("tid_sterMask"); tobVals_.layerStartBit_=conf.getParameter<unsigned int>("tob_layerStartBit"); tobVals_.rod_fw_bwStartBit_=conf.getParameter<unsigned int>("tob_rod_fw_bwStartBit"); tobVals_.rodStartBit_=conf.getParameter<unsigned int>("tob_rodStartBit"); tobVals_.moduleStartBit_=conf.getParameter<unsigned int>("tob_moduleStartBit"); tobVals_.sterStartBit_=conf.getParameter<unsigned int>("tob_sterStartBit"); tobVals_.layerMask_=conf.getParameter<unsigned int>("tob_layerMask"); tobVals_.rod_fw_bwMask_=conf.getParameter<unsigned int>("tob_rod_fw_bwMask"); tobVals_.rodMask_=conf.getParameter<unsigned int>("tob_rodMask"); tobVals_.moduleMask_=conf.getParameter<unsigned int>("tob_moduleMask"); tobVals_.sterMask_=conf.getParameter<unsigned int>("tob_sterMask"); setWhatProduced(this); }
TrackerTopologyEP::~TrackerTopologyEP | ( | ) |
Definition at line 97 of file TrackerTopologyEP.cc.
{ }
void TrackerTopologyEP::fillDescriptions | ( | edm::ConfigurationDescriptions & | descriptions | ) | [static] |
Definition at line 102 of file TrackerTopologyEP.cc.
References edm::ParameterSetDescription::add(), and edm::ConfigurationDescriptions::add().
{ edm::ParameterSetDescription ttc; ttc.add<unsigned int>("pxb_layerStartBit",16); ttc.add<unsigned int>("pxb_ladderStartBit",8); ttc.add<unsigned int>("pxb_moduleStartBit",2); ttc.add<unsigned int>("pxb_layerMask",0xF); ttc.add<unsigned int>("pxb_ladderMask",0xFF); ttc.add<unsigned int>("pxb_moduleMask",0x3F); ttc.add<unsigned int>("pxf_sideStartBit",23); ttc.add<unsigned int>("pxf_diskStartBit",16); ttc.add<unsigned int>("pxf_bladeStartBit",10); ttc.add<unsigned int>("pxf_panelStartBit",8); ttc.add<unsigned int>("pxf_moduleStartBit",2); ttc.add<unsigned int>("pxf_sideMask",0x3); ttc.add<unsigned int>("pxf_diskMask",0xF); ttc.add<unsigned int>("pxf_bladeMask",0x3F); ttc.add<unsigned int>("pxf_panelMask",0x3); ttc.add<unsigned int>("pxf_moduleMask",0x3F); ttc.add<unsigned int>("tec_sideStartBit",18); ttc.add<unsigned int>("tec_wheelStartBit",14); ttc.add<unsigned int>("tec_petal_fw_bwStartBit",12); ttc.add<unsigned int>("tec_petalStartBit",8); ttc.add<unsigned int>("tec_ringStartBit",5); ttc.add<unsigned int>("tec_moduleStartBit",2); ttc.add<unsigned int>("tec_sterStartBit",0); ttc.add<unsigned int>("tec_sideMask",0x3); ttc.add<unsigned int>("tec_wheelMask",0xF); ttc.add<unsigned int>("tec_petal_fw_bwMask",0x3); ttc.add<unsigned int>("tec_petalMask",0xF); ttc.add<unsigned int>("tec_ringMask",0x7); ttc.add<unsigned int>("tec_moduleMask",0x7); ttc.add<unsigned int>("tec_sterMask",0x3); ttc.add<unsigned int>("tib_layerStartBit",14); ttc.add<unsigned int>("tib_str_fw_bwStartBit",12); ttc.add<unsigned int>("tib_str_int_extStartBit",10); ttc.add<unsigned int>("tib_strStartBit",4); ttc.add<unsigned int>("tib_moduleStartBit",2); ttc.add<unsigned int>("tib_sterStartBit",0); ttc.add<unsigned int>("tib_layerMask",0x7); ttc.add<unsigned int>("tib_str_fw_bwMask",0x3); ttc.add<unsigned int>("tib_str_int_extMask",0x3); ttc.add<unsigned int>("tib_strMask",0x3F); ttc.add<unsigned int>("tib_moduleMask",0x3); ttc.add<unsigned int>("tib_sterMask",0x3); ttc.add<unsigned int>("tid_sideStartBit",13); ttc.add<unsigned int>("tid_wheelStartBit",11); ttc.add<unsigned int>("tid_ringStartBit",9); ttc.add<unsigned int>("tid_module_fw_bwStartBit",7); ttc.add<unsigned int>("tid_moduleStartBit",2); ttc.add<unsigned int>("tid_sterStartBit",0); ttc.add<unsigned int>("tid_sideMask",0x3); ttc.add<unsigned int>("tid_wheelMask",0x3); ttc.add<unsigned int>("tid_ringMask",0x3); ttc.add<unsigned int>("tid_module_fw_bwMask",0x3); ttc.add<unsigned int>("tid_moduleMask",0x1F); ttc.add<unsigned int>("tid_sterMask",0x3); ttc.add<unsigned int>("tob_layerStartBit",14); ttc.add<unsigned int>("tob_rod_fw_bwStartBit",12); ttc.add<unsigned int>("tob_rodStartBit",5); ttc.add<unsigned int>("tob_moduleStartBit",2); ttc.add<unsigned int>("tob_sterStartBit",0); ttc.add<unsigned int>("tob_layerMask",0x7); ttc.add<unsigned int>("tob_rod_fw_bwMask",0x3); ttc.add<unsigned int>("tob_rodMask",0x7F); ttc.add<unsigned int>("tob_moduleMask",0x7); ttc.add<unsigned int>("tob_sterMask",0x3); descriptions.add( "trackerTopologyConstants", ttc ); }
TrackerTopologyEP::ReturnType TrackerTopologyEP::produce | ( | const IdealGeometryRecord & | iRecord | ) |
Definition at line 184 of file TrackerTopologyEP.cc.
References pxbVals_, pxfVals_, tecVals_, tibVals_, tidVals_, and tobVals_.
{ edm::LogInfo("TrackerTopologyEP") << "TrackerTopologyIdealEP::produce(const IdealGeometryRecord& iRecord)"; ReturnType myTopo(new TrackerTopology(pxbVals_, pxfVals_, tecVals_, tibVals_, tidVals_, tobVals_)); return myTopo ; }
Definition at line 40 of file TrackerTopologyEP.h.
Referenced by produce(), and TrackerTopologyEP().
Definition at line 41 of file TrackerTopologyEP.h.
Referenced by produce(), and TrackerTopologyEP().
Definition at line 42 of file TrackerTopologyEP.h.
Referenced by produce(), and TrackerTopologyEP().
Definition at line 43 of file TrackerTopologyEP.h.
Referenced by produce(), and TrackerTopologyEP().
Definition at line 44 of file TrackerTopologyEP.h.
Referenced by produce(), and TrackerTopologyEP().
Definition at line 45 of file TrackerTopologyEP.h.
Referenced by produce(), and TrackerTopologyEP().