1 #ifndef HTrackAssociator_HCaloDetIdAssociator_h 2 #define HTrackAssociator_HCaloDetIdAssociator_h 1 48 std::set<DetId> setOfValidIds;
50 for(std::vector<DetId>::const_iterator it = vectOfValidIds.begin(); it != vectOfValidIds.end(); ++it)
51 setOfValidIds.insert(*it);
57 std::vector<GlobalPoint>
points;
59 LogDebug(
"CaloDetIdAssociator") <<
"Cannot find sub-detector geometry for " <<
id.rawId() <<
"\n";
62 LogDebug(
"CaloDetIdAssociator") <<
"Cannot find CaloCell geometry for " <<
id.rawId() <<
"\n";
65 points.
assign( cor.begin(), cor.end() ) ;
virtual void check_setup()
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
const CaloGeometry * geometry_
bool insideElement(const GlobalPoint &point, const DetId &id) override
std::vector< GlobalPoint > getDetIdPoints(const DetId &id) override
GlobalPoint getPosition(const DetId &id) override
CaloGeometry const * getGeometry()
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
virtual std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const
Get the cell geometry of a given detector id. Should return false if not found.
std::set< DetId > getASetOfValidDetIds() override
void assign(const T &t=T())
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
virtual void setGeometry(const CaloGeometry *ptr)
void check_setup() override
HCaloDetIdAssociator(const int nPhi, const int nEta, const double etaBinSize)
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point