CMS 3D CMS Logo

MuonDetIdAssociator.h
Go to the documentation of this file.
1 #ifndef TrackAssociator_MuonDetIdAssociator_h
2 #define TrackAssociator_MuonDetIdAssociator_h 1
3 // -*- C++ -*-
4 //
5 // Package: TrackAssociator
6 // Class: MuonDetIdAssociator
7 //
8 /*
9 
10  Description: <one line class summary>
11 
12  Implementation:
13  <Notes on implementation>
14 */
15 //
16 // Original Author: Dmytro Kovalskyi
17 // Created: Fri Apr 21 10:59:41 PDT 2006
18 //
19 //
20 
28 
30 public:
32  : DetIdAssociator(48, 48, 0.125), geometry_(nullptr), cscbadchambers_(nullptr), includeBadChambers_(false){};
33  MuonDetIdAssociator(const int nPhi, const int nEta, const double etaBinSize)
35  geometry_(nullptr),
36  cscbadchambers_(nullptr),
38 
40  int nEta,
41  double etaBinSize,
43  const CSCBadChambers* badChambers,
44  bool includeBadChambers,
45  bool includeGEM,
46  bool includeME0)
48  geometry_(geom),
49  cscbadchambers_(badChambers),
53 
54  virtual void setGeometry(const GlobalTrackingGeometry* ptr) { geometry_ = ptr; }
55 
56  virtual void setCSCBadChambers(const CSCBadChambers* ptr) { cscbadchambers_ = ptr; }
57 
58  const GeomDet* getGeomDet(const DetId& id) const override;
59 
60  const char* name() const override { return "AllMuonDetectors"; }
61 
62 protected:
63  void check_setup() const override;
64 
65  GlobalPoint getPosition(const DetId& id) const override;
66 
67  void getValidDetIds(unsigned int, std::vector<DetId>&) const override;
68 
69  std::pair<const_iterator, const_iterator> getDetIdPoints(const DetId& id,
70  std::vector<GlobalPoint>& points) const override;
71 
72  bool insideElement(const GlobalPoint& point, const DetId& id) const override;
73 
75 
80 };
81 #endif
const CSCBadChambers * cscbadchambers_
const GeomDet * getGeomDet(const DetId &id) const override
MuonDetIdAssociator(int nPhi, int nEta, double etaBinSize, const GlobalTrackingGeometry *geom, const CSCBadChambers *badChambers, bool includeBadChambers, bool includeGEM, bool includeME0)
std::pair< const_iterator, const_iterator > getDetIdPoints(const DetId &id, std::vector< GlobalPoint > &points) const override
MuonDetIdAssociator(const int nPhi, const int nEta, const double etaBinSize)
bool insideElement(const GlobalPoint &point, const DetId &id) const override
const char * name() const override
GlobalPoint getPosition(const DetId &id) const override
virtual void setCSCBadChambers(const CSCBadChambers *ptr)
Definition: DetId.h:17
const GlobalTrackingGeometry * geometry_
void check_setup() const override
void getValidDetIds(unsigned int, std::vector< DetId > &) const override
double etaBinSize() const
look-up map bin size in eta dimension
*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
Definition: invegas.h:5
virtual void setGeometry(const GlobalTrackingGeometry *ptr)