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)
38 
40  :DetIdAssociator(pSet.getParameter<int>("nPhi"),pSet.getParameter<int>("nEta"),pSet.getParameter<double>("etaBinSize")),geometry_(nullptr),cscbadchambers_(nullptr),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  void setGeometry(const DetIdAssociatorRecord& iRecord) override;
45 
46  virtual void setCSCBadChambers(const CSCBadChambers* ptr) { cscbadchambers_ = ptr; }
47 
48  void setConditions(const DetIdAssociatorRecord& iRecord) override{
49  edm::ESHandle<CSCBadChambers> cscbadchambersH;
50  iRecord.getRecord<CSCBadChambersRcd>().get(cscbadchambersH);
51  setCSCBadChambers(cscbadchambersH.product());
52  };
53 
54  const GeomDet* getGeomDet( const DetId& id ) const override;
55 
56  const char* name() const override { return "AllMuonDetectors"; }
57 
58  protected:
59 
60  void check_setup() const override;
61 
62  GlobalPoint getPosition(const DetId& id) const override;
63 
64  void getValidDetIds(unsigned int, std::vector<DetId>&) const override;
65 
66  std::pair<const_iterator,const_iterator> getDetIdPoints(const DetId& id, std::vector<GlobalPoint>& points) const override;
67 
68  bool insideElement(const GlobalPoint& point, const DetId& id) const override;
69 
71 
76 
77 };
78 #endif
const CSCBadChambers * cscbadchambers_
bool insideElement(const GlobalPoint &point, const DetId &id) const override
GlobalPoint getPosition(const DetId &id) const override
MuonDetIdAssociator(const edm::ParameterSet &pSet)
#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:18
const GeomDet * getGeomDet(const DetId &id) const override
const GlobalTrackingGeometry * geometry_
void setConditions(const DetIdAssociatorRecord &iRecord) override
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)