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 // $Id: MuonDetIdAssociator.h,v 1.9 2010/02/18 01:21:50 dmytro Exp $
19 //
20 //
21 
29 
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")){};
41 
42  virtual void setGeometry(const GlobalTrackingGeometry* ptr){ geometry_ = ptr; }
43 
44  virtual void setGeometry(const DetIdAssociatorRecord& iRecord);
45 
46  virtual void setCSCBadChambers(const CSCBadChambers* ptr){ cscbadchambers_ = ptr; }
47 
48  virtual void setConditions(const DetIdAssociatorRecord& iRecord){
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;
55 
56  virtual const char* name() const { return "AllMuonDetectors"; }
57 
58  protected:
59 
60  virtual void check_setup() const;
61 
62  virtual GlobalPoint getPosition(const DetId& id) const;
63 
64  virtual const std::vector<DetId>& getValidDetIds(unsigned int) const;
65 
66  virtual std::pair<const_iterator,const_iterator> getDetIdPoints(const DetId& id) const;
67 
68  virtual bool insideElement(const GlobalPoint& point, const DetId& id) const;
69 
71 
74  mutable std::vector<GlobalPoint> points_;
75  mutable std::vector<DetId> validIds_;
76 
77 };
78 #endif
const CSCBadChambers * cscbadchambers_
MuonDetIdAssociator(const edm::ParameterSet &pSet)
virtual const std::vector< DetId > & getValidDetIds(unsigned int) const
virtual GlobalPoint getPosition(const DetId &id) const
virtual void check_setup() const
MuonDetIdAssociator(const int nPhi, const int nEta, const double etaBinSize)
double etaBinSize() const
look-up map bin size in eta dimension
std::vector< DetId > validIds_
virtual bool insideElement(const GlobalPoint &point, const DetId &id) const
virtual void setConditions(const DetIdAssociatorRecord &iRecord)
virtual const GeomDet * getGeomDet(const DetId &id) const
std::vector< GlobalPoint > points_
virtual void setCSCBadChambers(const CSCBadChambers *ptr)
virtual const char * name() const
Definition: DetId.h:20
T const * product() const
Definition: ESHandle.h:62
const GlobalTrackingGeometry * geometry_
virtual std::pair< const_iterator, const_iterator > getDetIdPoints(const DetId &id) const
*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)