CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
EcalPreshowerGeometry Class Referencefinal

#include <EcalPreshowerGeometry.h>

Inheritance diagram for EcalPreshowerGeometry:
CaloSubdetectorGeometry

Public Types

enum  { k_NumberOfCellsForCorners = ESDetId::kSizeForDenseIndexing }
 
enum  { k_NumberOfShapes = 4 }
 
enum  { k_NumberOfParametersPerShape = 4 }
 
typedef EcalPreshowerGeometryRecord AlignedRecord
 
typedef ESAlignmentRcd AlignmentRecord
 
typedef CaloCellGeometry::CCGFloat CCGFloat
 
typedef std::vector
< PreshowerStrip
CellVec
 
typedef ESDetId DetIdType
 
typedef IdealGeometryRecord IdealRecord
 
typedef
EcalPreshowerNumberingScheme 
NumberingScheme
 
typedef
CaloSubdetectorGeometry::ParVec 
ParVec
 
typedef
CaloSubdetectorGeometry::ParVecVec 
ParVecVec
 
typedef PEcalPreshowerRcd PGeometryRecord
 
typedef CaloCellGeometry::Pt3D Pt3D
 
typedef CaloCellGeometry::Pt3DVec Pt3DVec
 
- Public Types inherited from CaloSubdetectorGeometry
typedef CaloCellGeometry::CCGFloat CCGFloat
 
typedef std::vector
< CaloCellGeometry const * > 
CellSet
 
typedef std::set< DetIdDetIdSet
 
typedef std::vector< CCGFloatDimVec
 
typedef std::vector< unsigned int > IVec
 
typedef CaloCellGeometry::ParMgr ParMgr
 
typedef CaloCellGeometry::ParVec ParVec
 
typedef CaloCellGeometry::ParVecVec ParVecVec
 
typedef std::vector< CCGFloatTrVec
 

Public Member Functions

 EcalPreshowerGeometry ()
 
virtual DetId getClosestCell (const GlobalPoint &r) const
 
virtual DetId getClosestCellInPlane (const GlobalPoint &r, int plane) const
 
virtual void initializeParms ()
 
virtual void newCell (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)
 
virtual unsigned int numberOfParametersPerShape () const
 
virtual unsigned int numberOfShapes () const
 
virtual unsigned int numberOfTransformParms () const
 
bool present (const DetId &id) const override
 is this detid present in the geometry? More...
 
void setzPlanes (CCGFloat z1minus, CCGFloat z2minus, CCGFloat z1plus, CCGFloat z2plus)
 
virtual ~EcalPreshowerGeometry ()
 The EcalPreshowerGeometry will delete all its cell geometries at destruction time. More...
 
- Public Member Functions inherited from CaloSubdetectorGeometry
void allocateCorners (CaloCellGeometry::CornersVec::size_type n)
 
void allocatePar (ParVec::size_type n, unsigned int m)
 
 CaloSubdetectorGeometry ()
 
CaloCellGeometry::CornersMgrcornersMgr ()
 
CCGFloat deltaEta (const DetId &detId) const
 
CCGFloat deltaPhi (const DetId &detId) const
 
virtual void fillDefaultNamedParameters () const
 
virtual DetIdSet getCells (const GlobalPoint &r, double dR) const
 Get a list of all cells within a dR of the given cell. More...
 
virtual CellSet getCellSet (const GlobalPoint &r, double dR) const
 
virtual const CaloCellGeometrygetGeometry (const DetId &id) const
 Get the cell geometry of a given detector id. Should return false if not found. More...
 
virtual void getSummary (TrVec &trVector, IVec &iVector, DimVec &dimVector, IVec &dinsVector) const
 
virtual const std::vector
< DetId > & 
getValidDetIds (DetId::Detector det=DetId::Detector(0), int subdet=0) const
 Get a list of valid detector ids (for the given subdetector) More...
 
ParMgrparMgr ()
 
const ParMgrparMgrConst () const
 
ParVecVecparVecVec ()
 
const ParVecVecparVecVec () const
 
virtual ~CaloSubdetectorGeometry ()
 The base class DOES assume that it owns the CaloCellGeometry objects. More...
 

Static Public Member Functions

static unsigned int alignmentTransformIndexGlobal (const DetId &id)
 
static unsigned int alignmentTransformIndexLocal (const DetId &id)
 
static std::string dbString ()
 
static DetId detIdFromLocalAlignmentIndex (unsigned int iLoc)
 
static std::string hitString ()
 
static void localCorners (Pt3DVec &lc, const CCGFloat *pv, unsigned int i, Pt3D &ref)
 
static unsigned int numberOfAlignments ()
 
static std::string producerTag ()
 

Protected Member Functions

const CaloCellGeometrycellGeomPtr (uint32_t index) const override
 Get the cell geometry of a given detector id. Should return nulptr if not found. More...
 
- Protected Member Functions inherited from CaloSubdetectorGeometry
void addValidID (const DetId &id)
 
virtual unsigned int indexFor (const DetId &id) const
 
virtual unsigned int sizeForDenseIndex (const DetId &id) const
 

Private Attributes

CellVec m_cellVec
 
const CCGFloat m_xInterLadGap
 
const CCGFloat m_xIntraLadGap
 
const CCGFloat m_xWidWaf
 
const CCGFloat m_yCtrOff
 
const CCGFloat m_yWidAct
 
CCGFloat m_zplane [4]
 

Additional Inherited Members

- Static Protected Member Functions inherited from CaloSubdetectorGeometry
static CCGFloat deltaR (const GlobalPoint &p1, const GlobalPoint &p2)
 
- Protected Attributes inherited from CaloSubdetectorGeometry
ParVecVec m_parVecVec
 
std::vector< DetIdm_validIds
 

Detailed Description

Definition at line 15 of file EcalPreshowerGeometry.h.

Member Typedef Documentation

Definition at line 26 of file EcalPreshowerGeometry.h.

Definition at line 27 of file EcalPreshowerGeometry.h.

Definition at line 21 of file EcalPreshowerGeometry.h.

Definition at line 19 of file EcalPreshowerGeometry.h.

Definition at line 33 of file EcalPreshowerGeometry.h.

Definition at line 25 of file EcalPreshowerGeometry.h.

Definition at line 30 of file EcalPreshowerGeometry.h.

Definition at line 31 of file EcalPreshowerGeometry.h.

Definition at line 32 of file EcalPreshowerGeometry.h.

Definition at line 28 of file EcalPreshowerGeometry.h.

Definition at line 22 of file EcalPreshowerGeometry.h.

Definition at line 23 of file EcalPreshowerGeometry.h.

Member Enumeration Documentation

anonymous enum
anonymous enum
Enumerator
k_NumberOfShapes 

Definition at line 37 of file EcalPreshowerGeometry.h.

anonymous enum
Enumerator
k_NumberOfParametersPerShape 

Definition at line 39 of file EcalPreshowerGeometry.h.

Constructor & Destructor Documentation

EcalPreshowerGeometry::EcalPreshowerGeometry ( )

Definition at line 13 of file EcalPreshowerGeometry.cc.

EcalPreshowerGeometry::~EcalPreshowerGeometry ( )
virtual

The EcalPreshowerGeometry will delete all its cell geometries at destruction time.

Definition at line 28 of file EcalPreshowerGeometry.cc.

Member Function Documentation

unsigned int EcalPreshowerGeometry::alignmentTransformIndexGlobal ( const DetId id)
static

Definition at line 79 of file EcalPreshowerGeometry.cc.

unsigned int EcalPreshowerGeometry::alignmentTransformIndexLocal ( const DetId id)
static

Definition at line 33 of file EcalPreshowerGeometry.cc.

const CaloCellGeometry * EcalPreshowerGeometry::cellGeomPtr ( uint32_t  index) const
overrideprotectedvirtual

Get the cell geometry of a given detector id. Should return nulptr if not found.

Implements CaloSubdetectorGeometry.

Definition at line 260 of file EcalPreshowerGeometry.cc.

static std::string EcalPreshowerGeometry::dbString ( )
inlinestatic

Definition at line 41 of file EcalPreshowerGeometry.h.

41 { return "PEcalPreshowerRcd" ; }
DetId EcalPreshowerGeometry::detIdFromLocalAlignmentIndex ( unsigned int  iLoc)
static

Definition at line 73 of file EcalPreshowerGeometry.cc.

Referenced by WriteESAlignments::convert().

DetId EcalPreshowerGeometry::getClosestCell ( const GlobalPoint r) const
virtual

Reimplemented from CaloSubdetectorGeometry.

Definition at line 169 of file EcalPreshowerGeometry.cc.

DetId EcalPreshowerGeometry::getClosestCellInPlane ( const GlobalPoint r,
int  plane 
) const
virtual

Definition at line 175 of file EcalPreshowerGeometry.cc.

Referenced by PreshowerHitMaker::addHit().

static std::string EcalPreshowerGeometry::hitString ( )
inlinestatic

Definition at line 68 of file EcalPreshowerGeometry.h.

68 { return "EcalHitsES" ; }
void EcalPreshowerGeometry::initializeParms ( )
virtual

Reimplemented from CaloSubdetectorGeometry.

Definition at line 86 of file EcalPreshowerGeometry.cc.

void EcalPreshowerGeometry::localCorners ( Pt3DVec lc,
const CCGFloat pv,
unsigned int  i,
Pt3D ref 
)
static

Definition at line 239 of file EcalPreshowerGeometry.cc.

void EcalPreshowerGeometry::newCell ( const GlobalPoint f1,
const GlobalPoint f2,
const GlobalPoint f3,
const CCGFloat parm,
const DetId detId 
)
virtual

Implements CaloSubdetectorGeometry.

Definition at line 248 of file EcalPreshowerGeometry.cc.

static unsigned int EcalPreshowerGeometry::numberOfAlignments ( )
inlinestatic

Definition at line 72 of file EcalPreshowerGeometry.h.

72 { return 8 ; }
virtual unsigned int EcalPreshowerGeometry::numberOfParametersPerShape ( ) const
inlinevirtual
virtual unsigned int EcalPreshowerGeometry::numberOfShapes ( ) const
inlinevirtual
virtual unsigned int EcalPreshowerGeometry::numberOfTransformParms ( ) const
inlinevirtual

Reimplemented from CaloSubdetectorGeometry.

Definition at line 66 of file EcalPreshowerGeometry.h.

66 { return 3 ; }
bool EcalPreshowerGeometry::present ( const DetId id) const
inlineoverridevirtual

is this detid present in the geometry?

Reimplemented from CaloSubdetectorGeometry.

Definition at line 93 of file EcalPreshowerGeometry.h.

References CaloGenericDetId::denseIndex(), cmsHarvester::index, and m_cellVec.

93  {
94  if(id==DetId(0)) return false;
95  // not needed???
96  auto index = CaloGenericDetId( id ).denseIndex();
97  return index < m_cellVec.size();
98  }
uint32_t denseIndex() const
Definition: DetId.h:18
static std::string EcalPreshowerGeometry::producerTag ( )
inlinestatic

Definition at line 70 of file EcalPreshowerGeometry.h.

Referenced by PCaloGeometryBuilder::beginRun(), and CaloGeometryBuilder::produceAligned().

70 { return "EcalPreshower" ; }
void EcalPreshowerGeometry::setzPlanes ( CCGFloat  z1minus,
CCGFloat  z2minus,
CCGFloat  z1plus,
CCGFloat  z2plus 
)

Definition at line 150 of file EcalPreshowerGeometry.cc.

Member Data Documentation

CellVec EcalPreshowerGeometry::m_cellVec
private

Definition at line 119 of file EcalPreshowerGeometry.h.

Referenced by present().

const CCGFloat EcalPreshowerGeometry::m_xInterLadGap
private

Definition at line 111 of file EcalPreshowerGeometry.h.

const CCGFloat EcalPreshowerGeometry::m_xIntraLadGap
private

Definition at line 112 of file EcalPreshowerGeometry.h.

const CCGFloat EcalPreshowerGeometry::m_xWidWaf
private

Definition at line 110 of file EcalPreshowerGeometry.h.

const CCGFloat EcalPreshowerGeometry::m_yCtrOff
private

Definition at line 115 of file EcalPreshowerGeometry.h.

const CCGFloat EcalPreshowerGeometry::m_yWidAct
private

Definition at line 114 of file EcalPreshowerGeometry.h.

CCGFloat EcalPreshowerGeometry::m_zplane[4]
private

Definition at line 117 of file EcalPreshowerGeometry.h.