CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
31 
33  public:
35  MuonDetIdAssociator(const int nPhi, const int nEta, const double etaBinSize)
36  :DetIdAssociator(nPhi, nEta, etaBinSize),geometry_(0),cscbadchambers_(0),includeBadChambers_(0){};
37 
39  :DetIdAssociator(pSet.getParameter<int>("nPhi"),pSet.getParameter<int>("nEta"),pSet.getParameter<double>("etaBinSize")),geometry_(0),cscbadchambers_(0),includeBadChambers_(pSet.getParameter<bool>("includeBadChambers")){};
40 
41  virtual void setGeometry(const GlobalTrackingGeometry* ptr) { geometry_ = ptr; }
42 
43  virtual void setGeometry(const DetIdAssociatorRecord& iRecord) override;
44 
45  virtual void setCSCBadChambers(const CSCBadChambers* ptr) { cscbadchambers_ = ptr; }
46 
47  virtual void setConditions(const DetIdAssociatorRecord& iRecord) override{
48  edm::ESHandle<CSCBadChambers> cscbadchambersH;
49  iRecord.getRecord<CSCBadChambersRcd>().get(cscbadchambersH);
50  setCSCBadChambers(cscbadchambersH.product());
51  };
52 
53  virtual const GeomDet* getGeomDet( const DetId& id ) const override;
54 
55  virtual const char* name() const override { return "AllMuonDetectors"; }
56 
57  protected:
58 
59  virtual void check_setup() const override;
60 
61  virtual GlobalPoint getPosition(const DetId& id) const override;
62 
63  virtual void getValidDetIds(unsigned int, std::vector<DetId>&) const override;
64 
65  virtual std::pair<const_iterator,const_iterator> getDetIdPoints(const DetId& id, std::vector<GlobalPoint>& points) const override;
66 
67  virtual bool insideElement(const GlobalPoint& point, const DetId& id) const override;
68 
70 
73 
74 };
75 #endif
const CSCBadChambers * cscbadchambers_
MuonDetIdAssociator(const edm::ParameterSet &pSet)
virtual const GeomDet * getGeomDet(const DetId &id) const override
virtual 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)
double etaBinSize() const
look-up map bin size in eta dimension
virtual bool insideElement(const GlobalPoint &point, const DetId &id) const override
virtual GlobalPoint getPosition(const DetId &id) const override
virtual const char * name() const override
virtual void setConditions(const DetIdAssociatorRecord &iRecord) override
virtual void setCSCBadChambers(const CSCBadChambers *ptr)
Definition: DetId.h:18
T const * product() const
Definition: ESHandle.h:62
const GlobalTrackingGeometry * geometry_
virtual void check_setup() const override
virtual void getValidDetIds(unsigned int, std::vector< DetId > &) const override
*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)