CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

Constructor & Destructor Documentation

HHcalDetIdAssociator::HHcalDetIdAssociator ( )
inline

Definition at line 26 of file HcalDetIdAssociator.h.

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

Member Function Documentation

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

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:90