CMS 3D CMS Logo

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

#include <HcalDetIdAssociator.h>

Inheritance diagram for HHcalDetIdAssociator:
HCaloDetIdAssociator HDetIdAssociator

Public Member Functions

 HHcalDetIdAssociator ()
 
- 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 24 of file HcalDetIdAssociator.h.

Constructor & Destructor Documentation

◆ HHcalDetIdAssociator()

HHcalDetIdAssociator::HHcalDetIdAssociator ( )
inline

Definition at line 26 of file HcalDetIdAssociator.h.

26 : HCaloDetIdAssociator(72, 70, 0.087){};

Member Function Documentation

◆ getASetOfValidDetIds()

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

Reimplemented from HCaloDetIdAssociator.

Definition at line 29 of file HcalDetIdAssociator.h.

29  {
30  std::set<DetId> setOfValidIds;
31  const std::vector<DetId>& vectOfValidIds = geometry_->getValidDetIds(DetId::Hcal, 1); //HB
32  for (std::vector<DetId>::const_iterator it = vectOfValidIds.begin(); it != vectOfValidIds.end(); ++it)
33  setOfValidIds.insert(*it);
34 
35  // vectOfValidIds.clear();
36  const std::vector<DetId>& vectOfValidIdsHE = geometry_->getValidDetIds(DetId::Hcal, 2); //HE
37  for (std::vector<DetId>::const_iterator it = vectOfValidIdsHE.begin(); it != vectOfValidIdsHE.end(); ++it)
38  setOfValidIds.insert(*it);
39 
40  return setOfValidIds;
41  }

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

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