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

virtual std::set< DetIdgetASetOfValidDetIds ()
 
- Protected Member Functions inherited from HCaloDetIdAssociator
virtual void check_setup ()
 
virtual std::vector< GlobalPointgetDetIdPoints (const DetId &id)
 
virtual GlobalPoint getPosition (const DetId &id)
 
virtual bool insideElement (const GlobalPoint &point, const DetId &id)
 
- 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 ( )
inline

Definition at line 24 of file EcalDetIdAssociator.h.

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

Member Function Documentation

virtual std::set<DetId> HEcalDetIdAssociator::getASetOfValidDetIds ( )
inlineprotectedvirtual

Reimplemented from HCaloDetIdAssociator.

Definition at line 26 of file EcalDetIdAssociator.h.

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

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