CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions
EcalDetIdAssociator Class Reference

#include <EcalDetIdAssociator.h>

Inheritance diagram for EcalDetIdAssociator:
CaloDetIdAssociator DetIdAssociator

Public Member Functions

 CaloDetIdAssociator ()
 
 CaloDetIdAssociator (const int nPhi, const int nEta, const double etaBinSize, CaloGeometry const *geom)
 
 EcalDetIdAssociator ()
 
const char * name () const override
 
- Public Member Functions inherited from CaloDetIdAssociator
 CaloDetIdAssociator ()
 
 CaloDetIdAssociator (const int nPhi, const int nEta, const double etaBinSize, CaloGeometry const *geom)
 
const GeomDetgetGeomDet (const DetId &id) const override
 
- Public Member Functions inherited from DetIdAssociator
virtual void buildMap ()
 make the look-up map More...
 
 DetIdAssociator (const int nPhi, const int nEta, const double etaBinSize)
 
double etaBinSize () const
 look-up map bin size in eta dimension More...
 
virtual std::vector< DetIdgetCrossedDetIds (const std::set< DetId > &, const std::vector< GlobalPoint > &trajectory) const
 
virtual std::vector< DetIdgetCrossedDetIds (const std::set< DetId > &, const std::vector< SteppingHelixStateInfo > &trajectory, const double toleranceInSigmas=-1) const
 
virtual std::set< DetIdgetDetIdsCloseToAPoint (const GlobalPoint &, const int iN=0) const
 
virtual std::set< DetIdgetDetIdsCloseToAPoint (const GlobalPoint &direction, const MapRange &mapRange) const
 
virtual std::set< DetIdgetDetIdsCloseToAPoint (const GlobalPoint &direction, const unsigned int iNEtaPlus, const unsigned int iNEtaMinus, const unsigned int iNPhiPlus, const unsigned int iNPhiMinus) const
 
virtual std::set< DetIdgetDetIdsCloseToAPoint (const GlobalPoint &point, const double d=0) const
 
virtual std::set< DetIdgetDetIdsCloseToAPoint (const GlobalPoint &point, const double dThetaPlus, const double dThetaMinus, const double dPhiPlus, const double dPhiMinus) const
 
virtual std::set< DetIdgetDetIdsInACone (const std::set< DetId > &, const std::vector< GlobalPoint > &trajectory, const double dR) const
 
virtual int iEta (const GlobalPoint &) const
 look-up map eta index More...
 
virtual int iPhi (const GlobalPoint &) const
 look-up map phi index More...
 
int nEtaBins () const
 number of bins of the look-up map in eta dimension More...
 
int nPhiBins () const
 number of bins of the look-up map in phi dimension More...
 
virtual bool selectAllInACone (const double dR) const
 helper to see if getDetIdsInACone is useful More...
 
const FiducialVolumevolume () const
 get active detector volume More...
 
virtual ~DetIdAssociator ()
 

Protected Member Functions

const unsigned int getNumberOfSubdetectors () const override
 
void getValidDetIds (unsigned int subDetectorIndex, std::vector< DetId > &validIds) const override
 
- Protected Member Functions inherited from CaloDetIdAssociator
void check_setup () const override
 
bool crossedElement (const GlobalPoint &, const GlobalPoint &, const DetId &id, const double tolerance=-1, const SteppingHelixStateInfo *=nullptr) const override
 
std::pair< const_iterator, const_iteratorgetDetIdPoints (const DetId &id, std::vector< GlobalPoint > &points) const override
 
GlobalPoint getPosition (const DetId &id) const override
 
bool insideElement (const GlobalPoint &point, const DetId &id) const override
 
- Protected Member Functions inherited from DetIdAssociator
virtual void dumpMapContent (int, int) const
 
virtual void dumpMapContent (int, int, int, int) const
 
void fillSet (std::set< DetId > &set, unsigned int iEta, unsigned int iPhi) const
 
unsigned int index (unsigned int iEta, unsigned int iPhi) const
 
virtual bool nearElement (const GlobalPoint &point, const DetId &id, const double distance) const
 

Additional Inherited Members

- Public Types inherited from DetIdAssociator
typedef std::vector< GlobalPoint >::const_iterator const_iterator
 
enum  PropagationTarget { Barrel, ForwardEndcap, BackwardEndcap }
 
- Protected Attributes inherited from CaloDetIdAssociator
std::vector< GlobalPointdummy_
 
const CaloGeometrygeometry_
 
- Protected Attributes inherited from DetIdAssociator
std::vector< DetIdcontainer_
 
const double etaBinSize_
 
std::vector< std::pair< unsigned int, unsigned int > > lookupMap_
 
double maxEta_
 
double minTheta_
 
const int nEta_
 
const int nPhi_
 
bool theMapIsValid_
 
FiducialVolume volume_
 

Detailed Description

Definition at line 23 of file EcalDetIdAssociator.h.

Constructor & Destructor Documentation

◆ EcalDetIdAssociator()

EcalDetIdAssociator::EcalDetIdAssociator ( )
inline

Definition at line 25 of file EcalDetIdAssociator.h.

25 : CaloDetIdAssociator(360, 300, 0.02, nullptr){};

Member Function Documentation

◆ CaloDetIdAssociator() [1/2]

CaloDetIdAssociator::CaloDetIdAssociator
inline

Definition at line 29 of file CaloDetIdAssociator.h.

29 : DetIdAssociator(72, 70, 0.087), geometry_(nullptr){};

◆ CaloDetIdAssociator() [2/2]

CaloDetIdAssociator::CaloDetIdAssociator
inline

Definition at line 30 of file CaloDetIdAssociator.h.

◆ getNumberOfSubdetectors()

const unsigned int EcalDetIdAssociator::getNumberOfSubdetectors ( ) const
inlineoverrideprotectedvirtual

Reimplemented from DetIdAssociator.

Definition at line 32 of file EcalDetIdAssociator.h.

32 { return 2; }

◆ getValidDetIds()

void EcalDetIdAssociator::getValidDetIds ( unsigned int  subDetectorIndex,
std::vector< DetId > &  validIds 
) const
inlineoverrideprotectedvirtual

Reimplemented from CaloDetIdAssociator.

Definition at line 33 of file EcalDetIdAssociator.h.

33  {
34  if (subDetectorIndex == 0)
36  else
38  };

References DetId::Ecal, EcalBarrel, EcalEndcap, CaloDetIdAssociator::geometry_, and CaloGeometry::getValidDetIds().

◆ name()

const char* EcalDetIdAssociator::name ( void  ) const
inlineoverridevirtual

Reimplemented from CaloDetIdAssociator.

Definition at line 29 of file EcalDetIdAssociator.h.

29 { return "ECAL"; }

Referenced by config.CFG::__str__(), and validation.Sample::digest().

DetIdAssociator::DetIdAssociator
DetIdAssociator(const int nPhi, const int nEta, const double etaBinSize)
Definition: DetIdAssociator.cc:24
EcalBarrel
Definition: EcalSubdetector.h:10
DetIdAssociator::etaBinSize
double etaBinSize() const
look-up map bin size in eta dimension
Definition: DetIdAssociator.h:108
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
EcalEndcap
Definition: EcalSubdetector.h:10
CaloDetIdAssociator::CaloDetIdAssociator
CaloDetIdAssociator()
Definition: CaloDetIdAssociator.h:29
HLT_2018_cff.nEta
nEta
Definition: HLT_2018_cff.py:5271
DetId::Ecal
Definition: DetId.h:27
CaloDetIdAssociator::geometry_
const CaloGeometry * geometry_
Definition: CaloDetIdAssociator.h:56
CaloGeometry::getValidDetIds
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
Definition: CaloGeometry.cc:75
HLT_2018_cff.nPhi
nPhi
Definition: HLT_2018_cff.py:5272