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:
33  MuonDetIdAssociator(const int nPhi, const int nEta, const double etaBinSize)
34  : DetIdAssociator(nPhi, nEta, etaBinSize),
38 
40  int nEta,
41  double etaBinSize,
43  const CSCBadChambers* badChambers,
44  bool includeBadChambers,
45  bool includeGEM,
46  bool includeME0)
47  : DetIdAssociator(nPhi, nEta, etaBinSize),
48  geometry_(geom),
49  cscbadchambers_(badChambers),
50  includeBadChambers_(includeBadChambers),
51  includeGEM_(includeGEM),
52  includeME0_(includeME0){};
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_
bool insideElement(const GlobalPoint &point, const DetId &id) const override
GlobalPoint getPosition(const DetId &id) const override
MuonDetIdAssociator(int nPhi, int nEta, double etaBinSize, const GlobalTrackingGeometry *geom, const CSCBadChambers *badChambers, bool includeBadChambers, bool includeGEM, bool includeME0)
#define nullptr
MuonDetIdAssociator(const int nPhi, const int nEta, const double etaBinSize)
double etaBinSize() const
look-up map bin size in eta dimension
const char * name() const override
void getValidDetIds(unsigned int, std::vector< DetId > &) const override
virtual void setCSCBadChambers(const CSCBadChambers *ptr)
void check_setup() const override
std::pair< const_iterator, const_iterator > getDetIdPoints(const DetId &id, std::vector< GlobalPoint > &points) const override
Definition: DetId.h:17
const GeomDet * getGeomDet(const DetId &id) const override
const GlobalTrackingGeometry * geometry_
*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)