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 ( )
inline

Definition at line 26 of file HcalDetIdAssociator.h.

Member Function Documentation

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

Reimplemented from HCaloDetIdAssociator.

Definition at line 28 of file HcalDetIdAssociator.h.

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

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