#include <Geometry/ForwardGeometry/interface/ZdcHardcodeGeometryLoader.h>
Public Types | |
typedef CaloSubdetectorGeometry * | ReturnType |
Public Member Functions | |
ReturnType | load () |
virtual ReturnType | load (DetId::Detector det, int subdet) |
ZdcHardcodeGeometryLoader (const ZdcTopology &ht) | |
ZdcHardcodeGeometryLoader () | |
virtual | ~ZdcHardcodeGeometryLoader () |
Private Member Functions | |
void | fill (HcalZDCDetId::Section section, CaloSubdetectorGeometry *cg) |
void | init () |
const CaloCellGeometry * | makeCell (const HcalZDCDetId &detId, CaloSubdetectorGeometry *geom) const |
Private Attributes | |
const ZdcTopology * | extTopology |
float | theEMSectiondX |
float | theEMSectiondY |
float | theEMSectiondZ |
float | theHADSectiondX |
float | theHADSectiondY |
float | theHADSectiondZ |
float | theLUMSectiondX |
float | theLUMSectiondY |
float | theLUMSectiondZ |
ZdcTopology * | theTopology |
Definition at line 19 of file ZdcHardcodeGeometryLoader.h.
Definition at line 22 of file ZdcHardcodeGeometryLoader.h.
ZdcHardcodeGeometryLoader::ZdcHardcodeGeometryLoader | ( | ) |
Definition at line 9 of file ZdcHardcodeGeometryLoader.cc.
References init().
00009 : 00010 theTopology ( new ZdcTopology ) , 00011 extTopology ( theTopology ) 00012 { 00013 init(); 00014 }
ZdcHardcodeGeometryLoader::ZdcHardcodeGeometryLoader | ( | const ZdcTopology & | ht | ) | [explicit] |
Definition at line 16 of file ZdcHardcodeGeometryLoader.cc.
References init().
00016 : 00017 theTopology( 0 ) , 00018 extTopology( &ht ) 00019 { 00020 init(); 00021 }
virtual ZdcHardcodeGeometryLoader::~ZdcHardcodeGeometryLoader | ( | ) | [inline, virtual] |
Definition at line 26 of file ZdcHardcodeGeometryLoader.h.
References theTopology.
00026 { delete theTopology ; }
void ZdcHardcodeGeometryLoader::fill | ( | HcalZDCDetId::Section | section, | |
CaloSubdetectorGeometry * | cg | |||
) | [private] |
Referenced by load().
Definition at line 23 of file ZdcHardcodeGeometryLoader.cc.
References dXPlate, dYLUM, dYPlate, theEMSectiondX, theEMSectiondY, theEMSectiondZ, theHADSectiondX, theHADSectiondY, theHADSectiondZ, theLUMSectiondX, theLUMSectiondY, and theLUMSectiondZ.
Referenced by ZdcHardcodeGeometryLoader().
00023 { 00024 theEMSectiondX = 2.*dXPlate; 00025 theEMSectiondY = 2.*dYPlate; 00026 theEMSectiondZ = 99.0; 00027 theLUMSectiondX = 2.*dXPlate; 00028 theLUMSectiondY = 2*dYLUM; 00029 theLUMSectiondZ = 94.0; 00030 theHADSectiondX = 2.*dXPlate; 00031 theHADSectiondY = 2.*dYPlate; 00032 theHADSectiondZ = 139.2; 00033 }
ZdcHardcodeGeometryLoader::ReturnType ZdcHardcodeGeometryLoader::load | ( | ) |
Definition at line 49 of file ZdcHardcodeGeometryLoader.cc.
References HcalZDCDetId::EM, extTopology, fill(), HcalZDCDetId::HAD, and HcalZDCDetId::LUM.
00050 { 00051 ReturnType hg(new ZdcGeometry( extTopology ) ); 00052 fill(HcalZDCDetId::EM ,hg ); 00053 fill(HcalZDCDetId::LUM ,hg ); 00054 fill(HcalZDCDetId::HAD ,hg ); 00055 return hg; 00056 }
ZdcHardcodeGeometryLoader::ReturnType ZdcHardcodeGeometryLoader::load | ( | DetId::Detector | det, | |
int | subdet | |||
) | [virtual] |
Definition at line 36 of file ZdcHardcodeGeometryLoader.cc.
References HcalZDCDetId::EM, extTopology, fill(), HcalZDCDetId::HAD, HcalZDCDetId::LUM, and HcalZDCDetId::SubdetectorId.
Referenced by ZdcHardcodeGeometryEP::produceAligned(), and ZdcHardcodeGeometryEP::produceIdeal().
00037 { 00038 ReturnType hg(new ZdcGeometry( extTopology ) ); 00039 if(subdet == HcalZDCDetId::SubdetectorId) 00040 { 00041 fill(HcalZDCDetId::EM ,hg ); 00042 fill(HcalZDCDetId::LUM ,hg ); 00043 fill(HcalZDCDetId::HAD ,hg ); 00044 } 00045 return hg; 00046 }
const CaloCellGeometry* ZdcHardcodeGeometryLoader::makeCell | ( | const HcalZDCDetId & | detId, | |
CaloSubdetectorGeometry * | geom | |||
) | const [private] |
const ZdcTopology* ZdcHardcodeGeometryLoader::extTopology [private] |
float ZdcHardcodeGeometryLoader::theEMSectiondX [private] |
float ZdcHardcodeGeometryLoader::theEMSectiondY [private] |
float ZdcHardcodeGeometryLoader::theEMSectiondZ [private] |
float ZdcHardcodeGeometryLoader::theHADSectiondX [private] |
float ZdcHardcodeGeometryLoader::theHADSectiondY [private] |
float ZdcHardcodeGeometryLoader::theHADSectiondZ [private] |
float ZdcHardcodeGeometryLoader::theLUMSectiondX [private] |
float ZdcHardcodeGeometryLoader::theLUMSectiondY [private] |
float ZdcHardcodeGeometryLoader::theLUMSectiondZ [private] |
Definition at line 37 of file ZdcHardcodeGeometryLoader.h.
Referenced by ~ZdcHardcodeGeometryLoader().