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 
32 
34  public:
36  MuonDetIdAssociator(const int nPhi, const int nEta, const double etaBinSize)
37  :DetIdAssociator(nPhi, nEta, etaBinSize),geometry_(0),cscbadchambers_(0),includeBadChambers_(0){};
38 
40  :DetIdAssociator(pSet.getParameter<int>("nPhi"),pSet.getParameter<int>("nEta"),pSet.getParameter<double>("etaBinSize")),geometry_(0),cscbadchambers_(0),includeBadChambers_(pSet.getParameter<bool>("includeBadChambers")),includeGEM_(pSet.getParameter<bool>("includeGEM")),includeME0_(pSet.getParameter<bool>("includeME0")){};
41 
42  virtual void setGeometry(const GlobalTrackingGeometry* ptr) { geometry_ = ptr; }
43 
44  virtual void setGeometry(const DetIdAssociatorRecord& iRecord) override;
45 
46  virtual void setCSCBadChambers(const CSCBadChambers* ptr) { cscbadchambers_ = ptr; }
47 
48  virtual void setConditions(const DetIdAssociatorRecord& iRecord) override{
49  edm::ESHandle<CSCBadChambers> cscbadchambersH;
50  iRecord.getRecord<CSCBadChambersRcd>().get(cscbadchambersH);
51  setCSCBadChambers(cscbadchambersH.product());
52  };
53 
54  virtual const GeomDet* getGeomDet( const DetId& id ) const override;
55 
56  virtual const char* name() const override { return "AllMuonDetectors"; }
57 
58  protected:
59 
60  virtual void check_setup() const override;
61 
62  virtual GlobalPoint getPosition(const DetId& id) const override;
63 
64  virtual void getValidDetIds(unsigned int, std::vector<DetId>&) const override;
65 
66  virtual std::pair<const_iterator,const_iterator> getDetIdPoints(const DetId& id, std::vector<GlobalPoint>& points) const override;
67 
68  virtual bool insideElement(const GlobalPoint& point, const DetId& id) const override;
69 
71 
76 
77 };
78 #endif
const CSCBadChambers * cscbadchambers_
virtual bool insideElement(const GlobalPoint &point, const DetId &id) const override
virtual GlobalPoint getPosition(const DetId &id) const override
MuonDetIdAssociator(const edm::ParameterSet &pSet)
MuonDetIdAssociator(const int nPhi, const int nEta, const double etaBinSize)
double etaBinSize() const
look-up map bin size in eta dimension
virtual void getValidDetIds(unsigned int, std::vector< DetId > &) const override
virtual void setConditions(const DetIdAssociatorRecord &iRecord) override
virtual void setCSCBadChambers(const CSCBadChambers *ptr)
virtual void check_setup() const override
virtual std::pair< const_iterator, const_iterator > getDetIdPoints(const DetId &id, std::vector< GlobalPoint > &points) const override
Definition: DetId.h:18
virtual const GeomDet * getGeomDet(const DetId &id) const override
const GlobalTrackingGeometry * geometry_
T const * product() const
Definition: ESHandle.h:86
*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)
virtual const char * name() const override