CMS 3D CMS Logo

ZdcHardcodeGeometryLoader Class Reference

Date
2008/04/21 22:20:16
Revision
1.3
More...

#include <Geometry/ForwardGeometry/interface/ZdcHardcodeGeometryLoader.h>

List of all members.

Public Types

typedef CaloSubdetectorGeometryReturnType

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 CaloCellGeometrymakeCell (const HcalZDCDetId &detId, CaloSubdetectorGeometry *geom) const

Private Attributes

const ZdcTopologyextTopology
float theEMSectiondX
float theEMSectiondY
float theEMSectiondZ
float theHADSectiondX
float theHADSectiondY
float theHADSectiondZ
float theLUMSectiondX
float theLUMSectiondY
float theLUMSectiondZ
ZdcTopologytheTopology


Detailed Description

Date
2008/04/21 22:20:16
Revision
1.3

Author:
E. Garcia - UIC

Definition at line 19 of file ZdcHardcodeGeometryLoader.h.


Member Typedef Documentation

typedef CaloSubdetectorGeometry* ZdcHardcodeGeometryLoader::ReturnType

Definition at line 22 of file ZdcHardcodeGeometryLoader.h.


Constructor & Destructor Documentation

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 ; }


Member Function Documentation

void ZdcHardcodeGeometryLoader::fill ( HcalZDCDetId::Section  section,
CaloSubdetectorGeometry cg 
) [private]

Referenced by load().

void ZdcHardcodeGeometryLoader::init ( void   )  [private]

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]


Member Data Documentation

const ZdcTopology* ZdcHardcodeGeometryLoader::extTopology [private]

Definition at line 38 of file ZdcHardcodeGeometryLoader.h.

Referenced by load().

float ZdcHardcodeGeometryLoader::theEMSectiondX [private]

Definition at line 40 of file ZdcHardcodeGeometryLoader.h.

Referenced by init().

float ZdcHardcodeGeometryLoader::theEMSectiondY [private]

Definition at line 41 of file ZdcHardcodeGeometryLoader.h.

Referenced by init().

float ZdcHardcodeGeometryLoader::theEMSectiondZ [private]

Definition at line 42 of file ZdcHardcodeGeometryLoader.h.

Referenced by init().

float ZdcHardcodeGeometryLoader::theHADSectiondX [private]

Definition at line 46 of file ZdcHardcodeGeometryLoader.h.

Referenced by init().

float ZdcHardcodeGeometryLoader::theHADSectiondY [private]

Definition at line 47 of file ZdcHardcodeGeometryLoader.h.

Referenced by init().

float ZdcHardcodeGeometryLoader::theHADSectiondZ [private]

Definition at line 48 of file ZdcHardcodeGeometryLoader.h.

Referenced by init().

float ZdcHardcodeGeometryLoader::theLUMSectiondX [private]

Definition at line 43 of file ZdcHardcodeGeometryLoader.h.

Referenced by init().

float ZdcHardcodeGeometryLoader::theLUMSectiondY [private]

Definition at line 44 of file ZdcHardcodeGeometryLoader.h.

Referenced by init().

float ZdcHardcodeGeometryLoader::theLUMSectiondZ [private]

Definition at line 45 of file ZdcHardcodeGeometryLoader.h.

Referenced by init().

ZdcTopology* ZdcHardcodeGeometryLoader::theTopology [private]

Definition at line 37 of file ZdcHardcodeGeometryLoader.h.

Referenced by ~ZdcHardcodeGeometryLoader().


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