CMS 3D CMS Logo

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

#include <EcalDetIdAssociator.h>

Inheritance diagram for HEcalDetIdAssociator:
HCaloDetIdAssociator HDetIdAssociator

Public Member Functions

 HEcalDetIdAssociator ()
 
- Public Member Functions inherited from HCaloDetIdAssociator
 HCaloDetIdAssociator ()
 
 HCaloDetIdAssociator (const int nPhi, const int nEta, const double etaBinSize)
 
virtual void setGeometry (const CaloGeometry *ptr)
 
- Public Member Functions inherited from HDetIdAssociator
virtual std::set< DetIdgetCrossedDetIds (const std::set< DetId > &, const std::vector< GlobalPoint > &trajectory)
 
virtual std::set< DetIdgetDetIdsCloseToAPoint (const GlobalPoint &, const int idR=0)
 
virtual std::set< DetIdgetDetIdsCloseToAPoint (const GlobalPoint &point, const double dR=0)
 
virtual std::set< DetIdgetDetIdsInACone (const std::set< DetId > &, const std::vector< GlobalPoint > &trajectory, const double)
 
virtual std::set< DetIdgetMaxEDetId (const std::set< DetId > &, edm::Handle< CaloTowerCollection > caloTowers)
 
virtual std::set< DetIdgetMaxEDetId (const std::set< DetId > &, edm::Handle< HBHERecHitCollection > recHits)
 
virtual std::vector< GlobalPointgetTrajectory (const FreeTrajectoryState &, const std::vector< GlobalPoint > &)
 
 HDetIdAssociator ()
 
 HDetIdAssociator (const int nPhi, const int nEta, const double etaBinSize)
 
virtual int iEta (const GlobalPoint &)
 
virtual int iPhi (const GlobalPoint &)
 
virtual void setPropagator (Propagator *ptr)
 
virtual ~HDetIdAssociator ()
 

Protected Member Functions

std::set< DetIdgetASetOfValidDetIds () override
 
- Protected Member Functions inherited from HCaloDetIdAssociator
void check_setup () override
 
std::vector< GlobalPointgetDetIdPoints (const DetId &id) override
 
GlobalPoint getPosition (const DetId &id) override
 
bool insideElement (const GlobalPoint &point, const DetId &id) override
 
- Protected Member Functions inherited from HDetIdAssociator
virtual void buildMap ()
 
virtual bool nearElement (const GlobalPoint &point, const DetId &id, const double distance)
 

Additional Inherited Members

- Protected Attributes inherited from HCaloDetIdAssociator
const CaloGeometrygeometry_
 
- Protected Attributes inherited from HDetIdAssociator
const double etaBinSize_
 
PropagatorivProp_
 
const int nEta_
 
const int nPhi_
 
std::vector< std::vector< std::set< DetId > > > * theMap_
 

Detailed Description

Definition at line 22 of file EcalDetIdAssociator.h.

Constructor & Destructor Documentation

◆ HEcalDetIdAssociator()

HEcalDetIdAssociator::HEcalDetIdAssociator ( )
inline

Definition at line 24 of file EcalDetIdAssociator.h.

24 : HCaloDetIdAssociator(180, 150, 0.04){};

Member Function Documentation

◆ getASetOfValidDetIds()

std::set<DetId> HEcalDetIdAssociator::getASetOfValidDetIds ( )
inlineoverrideprotectedvirtual

Reimplemented from HCaloDetIdAssociator.

Definition at line 27 of file EcalDetIdAssociator.h.

27  {
28  std::set<DetId> setOfValidIds;
29  const std::vector<DetId>& vectOfValidIds = geometry_->getValidDetIds(DetId::Ecal, 1); //EB
30  for (std::vector<DetId>::const_iterator it = vectOfValidIds.begin(); it != vectOfValidIds.end(); ++it)
31  setOfValidIds.insert(*it);
32 
33  // vectOfValidIds.clear();
34  const std::vector<DetId>& vectOfValidIdsEE = geometry_->getValidDetIds(DetId::Ecal, 2); //EE
35  for (std::vector<DetId>::const_iterator it = vectOfValidIdsEE.begin(); it != vectOfValidIdsEE.end(); ++it)
36  setOfValidIds.insert(*it);
37 
38  return setOfValidIds;
39  }

References DetId::Ecal, HCaloDetIdAssociator::geometry_, and CaloGeometry::getValidDetIds().

HCaloDetIdAssociator::HCaloDetIdAssociator
HCaloDetIdAssociator()
Definition: CaloDetIdAssociator.h:28
HCaloDetIdAssociator::geometry_
const CaloGeometry * geometry_
Definition: CaloDetIdAssociator.h:76
DetId::Ecal
Definition: DetId.h:27
CaloGeometry::getValidDetIds
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
Definition: CaloGeometry.cc:75