CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
MuonIdDQM Class Reference

#include <MuonIdDQM.h>

Inheritance diagram for MuonIdDQM:
edm::EDAnalyzer

Public Member Functions

 MuonIdDQM (const edm::ParameterSet &)
 
 ~MuonIdDQM ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void endJob ()
 
virtual void Fill (MonitorElement *, float)
 

Private Attributes

std::string baseFolder_
 
edm::Handle< CSCSegmentCollectioncscSegmentCollectionH_
 
DQMStoredbe_
 
edm::Handle
< DTRecSegment4DCollection
dtSegmentCollectionH_
 
edm::ESHandle
< GlobalTrackingGeometry
geometry_
 
MonitorElementhCSCDdXdZ [4][4]
 
MonitorElementhCSCDdYdZ [4][4]
 
MonitorElementhCSCDx [4][4]
 
MonitorElementhCSCDy [4][4]
 
MonitorElementhCSCNumSegments [4][4]
 
MonitorElementhCSCPulldXdZ [4][4]
 
MonitorElementhCSCPulldYdZ [4][4]
 
MonitorElementhCSCPullx [4][4]
 
MonitorElementhCSCPully [4][4]
 
MonitorElementhDTDdXdZ [4][4]
 
MonitorElementhDTDdYdZ [4][3]
 
MonitorElementhDTDx [4][4]
 
MonitorElementhDTDy [4][3]
 
MonitorElementhDTNumSegments [4][4]
 
MonitorElementhDTPulldXdZ [4][4]
 
MonitorElementhDTPulldYdZ [4][3]
 
MonitorElementhDTPullx [4][4]
 
MonitorElementhDTPully [4][3]
 
MonitorElementhNumChambers [4]
 
MonitorElementhNumMatches [4]
 
MonitorElementhSegmentIsAssociatedBool
 
edm::InputTag inputCSCSegmentCollection_
 
edm::InputTag inputDTRecSegment4DCollection_
 
edm::InputTag inputMuonCollection_
 
edm::Handle< reco::MuonCollectionmuonCollectionH_
 
bool useGlobalMuons_
 
bool useGlobalMuonsNotTrackerMuons_
 
bool useTrackerMuons_
 
bool useTrackerMuonsNotGlobalMuons_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Definition at line 51 of file MuonIdDQM.h.

Constructor & Destructor Documentation

MuonIdDQM::MuonIdDQM ( const edm::ParameterSet iConfig)
explicit

Definition at line 3 of file MuonIdDQM.cc.

References baseFolder_, dbe_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), inputCSCSegmentCollection_, inputDTRecSegment4DCollection_, inputMuonCollection_, cppFunctionSkipper::operator, useGlobalMuons_, useGlobalMuonsNotTrackerMuons_, useTrackerMuons_, and useTrackerMuonsNotGlobalMuons_.

4 {
5  inputMuonCollection_ = iConfig.getParameter<edm::InputTag>("inputMuonCollection");
6  inputDTRecSegment4DCollection_ = iConfig.getParameter<edm::InputTag>("inputDTRecSegment4DCollection");
7  inputCSCSegmentCollection_ = iConfig.getParameter<edm::InputTag>("inputCSCSegmentCollection");
8  useTrackerMuons_ = iConfig.getUntrackedParameter<bool>("useTrackerMuons");
9  useGlobalMuons_ = iConfig.getUntrackedParameter<bool>("useGlobalMuons");
10  useTrackerMuonsNotGlobalMuons_ = iConfig.getUntrackedParameter<bool>("useTrackerMuonsNotGlobalMuons");
11  useGlobalMuonsNotTrackerMuons_ = iConfig.getUntrackedParameter<bool>("useGlobalMuonsNotTrackerMuons");
12  baseFolder_ = iConfig.getUntrackedParameter<std::string>("baseFolder");
13 
14  dbe_ = 0;
15  dbe_ = edm::Service<DQMStore>().operator->();
16 }
bool useTrackerMuons_
Definition: MuonIdDQM.h:68
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool useGlobalMuonsNotTrackerMuons_
Definition: MuonIdDQM.h:71
DQMStore * dbe_
Definition: MuonIdDQM.h:62
edm::InputTag inputDTRecSegment4DCollection_
Definition: MuonIdDQM.h:66
edm::InputTag inputCSCSegmentCollection_
Definition: MuonIdDQM.h:67
bool useTrackerMuonsNotGlobalMuons_
Definition: MuonIdDQM.h:70
edm::InputTag inputMuonCollection_
Definition: MuonIdDQM.h:65
bool useGlobalMuons_
Definition: MuonIdDQM.h:69
std::string baseFolder_
Definition: MuonIdDQM.h:72
MuonIdDQM::~MuonIdDQM ( )

Definition at line 18 of file MuonIdDQM.cc.

18 {}

Member Function Documentation

void MuonIdDQM::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDAnalyzer.

Definition at line 121 of file MuonIdDQM.cc.

References MuonSubdetId::CSC, cscSegmentCollectionH_, MuonSubdetId::DT, dtSegmentCollectionH_, Fill(), MonitorElement::Fill(), geometry_, edm::EventSetup::get(), edm::Event::getByLabel(), hCSCDdXdZ, hCSCDdYdZ, hCSCDx, hCSCDy, hCSCNumSegments, hCSCPulldXdZ, hCSCPulldYdZ, hCSCPullx, hCSCPully, hDTDdXdZ, hDTDdYdZ, hDTDx, hDTDy, hDTNumSegments, hDTPulldXdZ, hDTPulldYdZ, hDTPullx, hDTPully, hNumChambers, hNumMatches, hSegmentIsAssociatedBool, i, inputCSCSegmentCollection_, inputDTRecSegment4DCollection_, inputMuonCollection_, metsig::muon, muonCollectionH_, dt_dqm_sourceclient_common_cff::reco, mathSSE::sqrt(), relativeConstraints::station, useGlobalMuons_, useGlobalMuonsNotTrackerMuons_, useTrackerMuons_, useTrackerMuonsNotGlobalMuons_, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV3DBase< T, PVType, FrameType >::y(), LocalError::yy(), and PV3DBase< T, PVType, FrameType >::z().

122 {
123  using namespace edm;
124  using namespace reco;
125 
130 
131  for(MuonCollection::const_iterator muon = muonCollectionH_->begin();
132  muon != muonCollectionH_->end(); ++muon)
133  {
134  // trackerMuon == 0; globalMuon == 1; trackerMuon && !globalMuon == 2; globalMuon && !trackerMuon == 3
135  for (unsigned int i = 0; i < 4; i++) {
136  if (i == 0 && (! useTrackerMuons_ || ! muon->isTrackerMuon())) continue;
137  if (i == 1 && (! useGlobalMuons_ || ! muon->isGlobalMuon())) continue;
138  if (i == 2 && (! useTrackerMuonsNotGlobalMuons_ || (! (muon->isTrackerMuon() && ! muon->isGlobalMuon())))) continue;
139  if (i == 3 && (! useGlobalMuonsNotTrackerMuons_ || (! (muon->isGlobalMuon() && ! muon->isTrackerMuon())))) continue;
140 
141  hNumChambers[i]->Fill(muon->numberOfChambers());
142  hNumMatches[i]->Fill(muon->numberOfMatches(Muon::SegmentAndTrackArbitration));
143 
144  // by station
145  for(int station = 0; station < 4; ++station)
146  {
147  // only fill num segments if we crossed (or nearly crossed) a chamber
148  if (muon->trackX(station+1, MuonSubdetId::DT, Muon::NoArbitration) < 900000)
149  hDTNumSegments[i][station]->Fill(muon->numberOfSegments(station+1, MuonSubdetId::DT, Muon::NoArbitration));
150  Fill(hDTDx[i][station], muon->dX(station+1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration));
151  Fill(hDTPullx[i][station], muon->pullX(station+1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration, true));
152  Fill(hDTDdXdZ[i][station], muon->dDxDz(station+1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration));
153  Fill(hDTPulldXdZ[i][station], muon->pullDxDz(station+1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration, true));
154 
155  if (station < 3) {
156  Fill(hDTDy[i][station], muon->dY(station+1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration));
157  Fill(hDTPully[i][station], muon->pullY(station+1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration, true));
158  Fill(hDTDdYdZ[i][station], muon->dDyDz(station+1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration));
159  Fill(hDTPulldYdZ[i][station], muon->pullDyDz(station+1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration, true));
160  }
161 
162  // only fill num segments if we crossed (or nearly crossed) a chamber
163  if (muon->trackX(station+1, MuonSubdetId::CSC, Muon::NoArbitration) < 900000)
164  hCSCNumSegments[i][station]->Fill(muon->numberOfSegments(station+1, MuonSubdetId::CSC, Muon::NoArbitration));
165  Fill(hCSCDx[i][station], muon->dX(station+1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration));
166  Fill(hCSCPullx[i][station], muon->pullX(station+1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration, true));
167  Fill(hCSCDdXdZ[i][station], muon->dDxDz(station+1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration));
168  Fill(hCSCPulldXdZ[i][station], muon->pullDxDz(station+1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration, true));
169  Fill(hCSCDy[i][station], muon->dY(station+1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration));
170  Fill(hCSCPully[i][station], muon->pullY(station+1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration, true));
171  Fill(hCSCDdYdZ[i][station], muon->dDyDz(station+1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration));
172  Fill(hCSCPulldYdZ[i][station], muon->pullDyDz(station+1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration, true));
173  }
174  }
175  }// muon
176 
178  segment != dtSegmentCollectionH_->end(); ++segment)
179  {
180  LocalPoint segmentLocalPosition = segment->localPosition();
181  LocalVector segmentLocalDirection = segment->localDirection();
182  LocalError segmentLocalPositionError = segment->localPositionError();
183  LocalError segmentLocalDirectionError = segment->localDirectionError();
184  bool segmentFound = false;
185 
186  for(MuonCollection::const_iterator muon = muonCollectionH_->begin();
187  muon != muonCollectionH_->end(); ++muon)
188  {
189  if (! muon->isMatchesValid())
190  continue;
191 
192  for(std::vector<MuonChamberMatch>::const_iterator chamberMatch = muon->matches().begin();
193  chamberMatch != muon->matches().end(); ++chamberMatch) {
194  for(std::vector<MuonSegmentMatch>::const_iterator segmentMatch = chamberMatch->segmentMatches.begin();
195  segmentMatch != chamberMatch->segmentMatches.end(); ++segmentMatch)
196  {
197  if (fabs(segmentMatch->x - segmentLocalPosition.x() ) < 1E-6 &&
198  fabs(segmentMatch->y - segmentLocalPosition.y() ) < 1E-6 &&
199  fabs(segmentMatch->dXdZ - segmentLocalDirection.x()/segmentLocalDirection.z()) < 1E-6 &&
200  fabs(segmentMatch->dYdZ - segmentLocalDirection.y()/segmentLocalDirection.z()) < 1E-6 &&
201  fabs(segmentMatch->xErr - sqrt(segmentLocalPositionError.xx()) ) < 1E-6 &&
202  fabs(segmentMatch->yErr - sqrt(segmentLocalPositionError.yy()) ) < 1E-6 &&
203  fabs(segmentMatch->dXdZErr - sqrt(segmentLocalDirectionError.xx()) ) < 1E-6 &&
204  fabs(segmentMatch->dYdZErr - sqrt(segmentLocalDirectionError.yy()) ) < 1E-6)
205  {
206  segmentFound = true;
207  break;
208  }
209  }// segmentMatch
210  if (segmentFound) break;
211  }// chamberMatch
212  if (segmentFound) break;
213  }// muon
214 
215  if (segmentFound)
217  else
219  }// dt segment
220 
222  segment != cscSegmentCollectionH_->end(); ++segment)
223  {
224  LocalPoint segmentLocalPosition = segment->localPosition();
225  LocalVector segmentLocalDirection = segment->localDirection();
226  LocalError segmentLocalPositionError = segment->localPositionError();
227  LocalError segmentLocalDirectionError = segment->localDirectionError();
228  bool segmentFound = false;
229 
230  for(MuonCollection::const_iterator muon = muonCollectionH_->begin();
231  muon != muonCollectionH_->end(); ++muon)
232  {
233  if (! muon->isMatchesValid())
234  continue;
235 
236  for(std::vector<MuonChamberMatch>::const_iterator chamberMatch = muon->matches().begin();
237  chamberMatch != muon->matches().end(); ++chamberMatch) {
238  for(std::vector<MuonSegmentMatch>::const_iterator segmentMatch = chamberMatch->segmentMatches.begin();
239  segmentMatch != chamberMatch->segmentMatches.end(); ++segmentMatch)
240  {
241  if (fabs(segmentMatch->x - segmentLocalPosition.x() ) < 1E-6 &&
242  fabs(segmentMatch->y - segmentLocalPosition.y() ) < 1E-6 &&
243  fabs(segmentMatch->dXdZ - segmentLocalDirection.x()/segmentLocalDirection.z()) < 1E-6 &&
244  fabs(segmentMatch->dYdZ - segmentLocalDirection.y()/segmentLocalDirection.z()) < 1E-6 &&
245  fabs(segmentMatch->xErr - sqrt(segmentLocalPositionError.xx()) ) < 1E-6 &&
246  fabs(segmentMatch->yErr - sqrt(segmentLocalPositionError.yy()) ) < 1E-6 &&
247  fabs(segmentMatch->dXdZErr - sqrt(segmentLocalDirectionError.xx()) ) < 1E-6 &&
248  fabs(segmentMatch->dYdZErr - sqrt(segmentLocalDirectionError.yy()) ) < 1E-6)
249  {
250  segmentFound = true;
251  break;
252  }
253  }// segmentMatch
254  if (segmentFound) break;
255  }// chamberMatch
256  if (segmentFound) break;
257  }// muon
258 
259  if (segmentFound)
261  else
263  }// csc segment
264 }
bool useTrackerMuons_
Definition: MuonIdDQM.h:68
MonitorElement * hCSCDx[4][4]
Definition: MuonIdDQM.h:94
int i
Definition: DBlmapReader.cc:9
float xx() const
Definition: LocalError.h:24
MonitorElement * hCSCDdYdZ[4][4]
Definition: MuonIdDQM.h:100
MonitorElement * hCSCDdXdZ[4][4]
Definition: MuonIdDQM.h:96
MonitorElement * hCSCPulldXdZ[4][4]
Definition: MuonIdDQM.h:97
T y() const
Definition: PV3DBase.h:62
bool useGlobalMuonsNotTrackerMuons_
Definition: MuonIdDQM.h:71
edm::InputTag inputDTRecSegment4DCollection_
Definition: MuonIdDQM.h:66
edm::InputTag inputCSCSegmentCollection_
Definition: MuonIdDQM.h:67
bool useTrackerMuonsNotGlobalMuons_
Definition: MuonIdDQM.h:70
MonitorElement * hDTDdYdZ[4][3]
Definition: MuonIdDQM.h:91
void Fill(long long x)
MonitorElement * hDTPully[4][3]
Definition: MuonIdDQM.h:90
C::const_iterator const_iterator
constant access iterator type
Definition: RangeMap.h:45
MonitorElement * hCSCDy[4][4]
Definition: MuonIdDQM.h:98
static const int CSC
Definition: MuonSubdetId.h:15
edm::Handle< DTRecSegment4DCollection > dtSegmentCollectionH_
Definition: MuonIdDQM.h:75
MonitorElement * hCSCPully[4][4]
Definition: MuonIdDQM.h:99
MonitorElement * hSegmentIsAssociatedBool
Definition: MuonIdDQM.h:104
float yy() const
Definition: LocalError.h:26
MonitorElement * hDTPullx[4][4]
Definition: MuonIdDQM.h:86
MonitorElement * hCSCPullx[4][4]
Definition: MuonIdDQM.h:95
T sqrt(T t)
Definition: SSEVec.h:46
T z() const
Definition: PV3DBase.h:63
edm::InputTag inputMuonCollection_
Definition: MuonIdDQM.h:65
bool useGlobalMuons_
Definition: MuonIdDQM.h:69
MonitorElement * hNumMatches[4]
Definition: MuonIdDQM.h:81
MonitorElement * hDTDdXdZ[4][4]
Definition: MuonIdDQM.h:87
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
edm::Handle< reco::MuonCollection > muonCollectionH_
Definition: MuonIdDQM.h:74
MonitorElement * hDTDx[4][4]
Definition: MuonIdDQM.h:85
MonitorElement * hDTPulldYdZ[4][3]
Definition: MuonIdDQM.h:92
MonitorElement * hDTDy[4][3]
Definition: MuonIdDQM.h:89
MonitorElement * hCSCPulldYdZ[4][4]
Definition: MuonIdDQM.h:101
const T & get() const
Definition: EventSetup.h:55
virtual void Fill(MonitorElement *, float)
Definition: MuonIdDQM.cc:269
MonitorElement * hDTNumSegments[4][4]
Definition: MuonIdDQM.h:84
MonitorElement * hCSCNumSegments[4][4]
Definition: MuonIdDQM.h:93
edm::ESHandle< GlobalTrackingGeometry > geometry_
Definition: MuonIdDQM.h:77
static const int DT
Definition: MuonSubdetId.h:14
T x() const
Definition: PV3DBase.h:61
MonitorElement * hDTPulldXdZ[4][4]
Definition: MuonIdDQM.h:88
MonitorElement * hNumChambers[4]
Definition: MuonIdDQM.h:80
edm::Handle< CSCSegmentCollection > cscSegmentCollectionH_
Definition: MuonIdDQM.h:76
void MuonIdDQM::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 21 of file MuonIdDQM.cc.

References baseFolder_, DQMStore::book1D(), dbe_, hCSCDdXdZ, hCSCDdYdZ, hCSCDx, hCSCDy, hCSCNumSegments, hCSCPulldXdZ, hCSCPulldYdZ, hCSCPullx, hCSCPully, hDTDdXdZ, hDTDdYdZ, hDTDx, hDTDy, hDTNumSegments, hDTPulldXdZ, hDTPulldYdZ, hDTPullx, hDTPully, hNumChambers, hNumMatches, hSegmentIsAssociatedBool, i, mergeVDriftHistosByStation::name, DQMStore::setCurrentFolder(), relativeConstraints::station, indexGen::title, useGlobalMuons_, useGlobalMuonsNotTrackerMuons_, useTrackerMuons_, and useTrackerMuonsNotGlobalMuons_.

22 {
23  char name[100], title[200];
24 
25  // trackerMuon == 0; globalMuon == 1; trackerMuon && !globalMuon == 2; globalMuon && !trackerMuon == 3
26  for (unsigned int i = 0; i < 4; i++) {
27  if ((i == 0 && ! useTrackerMuons_) || (i == 1 && ! useGlobalMuons_)) continue;
28  if ((i == 2 && ! useTrackerMuonsNotGlobalMuons_) || (i == 3 && ! useGlobalMuonsNotTrackerMuons_)) continue;
29  if (i == 0) dbe_->setCurrentFolder(baseFolder_+"/TrackerMuons");
30  if (i == 1) dbe_->setCurrentFolder(baseFolder_+"/GlobalMuons");
31  if (i == 2) dbe_->setCurrentFolder(baseFolder_+"/TrackerMuonsNotGlobalMuons");
32  if (i == 3) dbe_->setCurrentFolder(baseFolder_+"/GlobalMuonsNotTrackerMuons");
33 
34  hNumChambers[i] = dbe_->book1D("hNumChambers", "Number of Chambers", 11, -0.5, 10.5);
35  hNumMatches[i] = dbe_->book1D("hNumMatches", "Number of Matches", 11, -0.5, 10.5);
36 
37  // by station
38  for(int station = 0; station < 4; ++station)
39  {
40  sprintf(name, "hDT%iNumSegments", station+1);
41  sprintf(title, "DT Station %i Number of Segments (No Arbitration)", station+1);
42  hDTNumSegments[i][station] = dbe_->book1D(name, title, 11, -0.5, 10.5);
43 
44  sprintf(name, "hDT%iDx", station+1);
45  sprintf(title, "DT Station %i Delta X", station+1);
46  hDTDx[i][station] = dbe_->book1D(name, title, 100, -100., 100.);
47 
48  sprintf(name, "hDT%iPullx", station+1);
49  sprintf(title, "DT Station %i Pull X", station+1);
50  hDTPullx[i][station] = dbe_->book1D(name, title, 100, -20., 20.);
51 
52  sprintf(name, "hDT%iDdXdZ", station+1);
53  sprintf(title, "DT Station %i Delta DxDz", station+1);
54  hDTDdXdZ[i][station] = dbe_->book1D(name, title, 100, -1., 1.);
55 
56  sprintf(name, "hDT%iPulldXdZ", station+1);
57  sprintf(title, "DT Station %i Pull DxDz", station+1);
58  hDTPulldXdZ[i][station] = dbe_->book1D(name, title, 100, -20., 20.);
59 
60  if (station < 3) {
61  sprintf(name, "hDT%iDy", station+1);
62  sprintf(title, "DT Station %i Delta Y", station+1);
63  hDTDy[i][station] = dbe_->book1D(name, title, 100, -150., 150.);
64 
65  sprintf(name, "hDT%iPully", station+1);
66  sprintf(title, "DT Station %i Pull Y", station+1);
67  hDTPully[i][station] = dbe_->book1D(name, title, 100, -20., 20.);
68 
69  sprintf(name, "hDT%iDdYdZ", station+1);
70  sprintf(title, "DT Station %i Delta DyDz", station+1);
71  hDTDdYdZ[i][station] = dbe_->book1D(name, title, 100, -2., 2.);
72 
73  sprintf(name, "hDT%iPulldYdZ", station+1);
74  sprintf(title, "DT Station %i Pull DyDz", station+1);
75  hDTPulldYdZ[i][station] = dbe_->book1D(name, title, 100, -20., 20.);
76  }
77 
78  sprintf(name, "hCSC%iNumSegments", station+1);
79  sprintf(title, "CSC Station %i Number of Segments (No Arbitration)", station+1);
80  hCSCNumSegments[i][station] = dbe_->book1D(name, title, 11, -0.5, 10.5);
81 
82  sprintf(name, "hCSC%iDx", station+1);
83  sprintf(title, "CSC Station %i Delta X", station+1);
84  hCSCDx[i][station] = dbe_->book1D(name, title, 100, -50., 50.);
85 
86  sprintf(name, "hCSC%iPullx", station+1);
87  sprintf(title, "CSC Station %i Pull X", station+1);
88  hCSCPullx[i][station] = dbe_->book1D(name, title, 100, -20., 20.);
89 
90  sprintf(name, "hCSC%iDdXdZ", station+1);
91  sprintf(title, "CSC Station %i Delta DxDz", station+1);
92  hCSCDdXdZ[i][station] = dbe_->book1D(name, title, 100, -1., 1.);
93 
94  sprintf(name, "hCSC%iPulldXdZ", station+1);
95  sprintf(title, "CSC Station %i Pull DxDz", station+1);
96  hCSCPulldXdZ[i][station] = dbe_->book1D(name, title, 100, -20., 20.);
97 
98  sprintf(name, "hCSC%iDy", station+1);
99  sprintf(title, "CSC Station %i Delta Y", station+1);
100  hCSCDy[i][station] = dbe_->book1D(name, title, 100, -50., 50.);
101 
102  sprintf(name, "hCSC%iPully", station+1);
103  sprintf(title, "CSC Station %i Pull Y", station+1);
104  hCSCPully[i][station] = dbe_->book1D(name, title, 100, -20., 20.);
105 
106  sprintf(name, "hCSC%iDdYdZ", station+1);
107  sprintf(title, "CSC Station %i Delta DyDz", station+1);
108  hCSCDdYdZ[i][station] = dbe_->book1D(name, title, 100, -1., 1.);
109 
110  sprintf(name, "hCSC%iPulldYdZ", station+1);
111  sprintf(title, "CSC Station %i Pull DyDz", station+1);
112  hCSCPulldYdZ[i][station] = dbe_->book1D(name, title, 100, -20., 20.);
113  }// station
114  }
115 
117  hSegmentIsAssociatedBool = dbe_->book1D("hSegmentIsAssociatedBool", "Segment Is Associated Boolean", 2, -0.5, 1.5);
118 }
bool useTrackerMuons_
Definition: MuonIdDQM.h:68
MonitorElement * hCSCDx[4][4]
Definition: MuonIdDQM.h:94
int i
Definition: DBlmapReader.cc:9
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:717
MonitorElement * hCSCDdYdZ[4][4]
Definition: MuonIdDQM.h:100
MonitorElement * hCSCDdXdZ[4][4]
Definition: MuonIdDQM.h:96
MonitorElement * hCSCPulldXdZ[4][4]
Definition: MuonIdDQM.h:97
bool useGlobalMuonsNotTrackerMuons_
Definition: MuonIdDQM.h:71
DQMStore * dbe_
Definition: MuonIdDQM.h:62
bool useTrackerMuonsNotGlobalMuons_
Definition: MuonIdDQM.h:70
MonitorElement * hDTDdYdZ[4][3]
Definition: MuonIdDQM.h:91
MonitorElement * hDTPully[4][3]
Definition: MuonIdDQM.h:90
MonitorElement * hCSCDy[4][4]
Definition: MuonIdDQM.h:98
MonitorElement * hCSCPully[4][4]
Definition: MuonIdDQM.h:99
MonitorElement * hSegmentIsAssociatedBool
Definition: MuonIdDQM.h:104
MonitorElement * hDTPullx[4][4]
Definition: MuonIdDQM.h:86
MonitorElement * hCSCPullx[4][4]
Definition: MuonIdDQM.h:95
bool useGlobalMuons_
Definition: MuonIdDQM.h:69
MonitorElement * hNumMatches[4]
Definition: MuonIdDQM.h:81
MonitorElement * hDTDdXdZ[4][4]
Definition: MuonIdDQM.h:87
MonitorElement * hDTDx[4][4]
Definition: MuonIdDQM.h:85
MonitorElement * hDTPulldYdZ[4][3]
Definition: MuonIdDQM.h:92
MonitorElement * hDTDy[4][3]
Definition: MuonIdDQM.h:89
MonitorElement * hCSCPulldYdZ[4][4]
Definition: MuonIdDQM.h:101
MonitorElement * hDTNumSegments[4][4]
Definition: MuonIdDQM.h:84
MonitorElement * hCSCNumSegments[4][4]
Definition: MuonIdDQM.h:93
std::string baseFolder_
Definition: MuonIdDQM.h:72
MonitorElement * hDTPulldXdZ[4][4]
Definition: MuonIdDQM.h:88
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
MonitorElement * hNumChambers[4]
Definition: MuonIdDQM.h:80
void MuonIdDQM::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 267 of file MuonIdDQM.cc.

267 {}
void MuonIdDQM::Fill ( MonitorElement me,
float  f 
)
privatevirtual

Definition at line 269 of file MuonIdDQM.cc.

References MonitorElement::Fill().

Referenced by analyze().

269  {
270  if (fabs(f) > 900000) return;
271  //if (fabs(f) < 1E-8) return;
272  me->Fill(f);
273 }
void Fill(long long x)
double f[11][100]

Member Data Documentation

std::string MuonIdDQM::baseFolder_
private

Definition at line 72 of file MuonIdDQM.h.

Referenced by beginJob(), and MuonIdDQM().

edm::Handle<CSCSegmentCollection> MuonIdDQM::cscSegmentCollectionH_
private

Definition at line 76 of file MuonIdDQM.h.

Referenced by analyze().

DQMStore* MuonIdDQM::dbe_
private

Definition at line 62 of file MuonIdDQM.h.

Referenced by beginJob(), and MuonIdDQM().

edm::Handle<DTRecSegment4DCollection> MuonIdDQM::dtSegmentCollectionH_
private

Definition at line 75 of file MuonIdDQM.h.

Referenced by analyze().

edm::ESHandle<GlobalTrackingGeometry> MuonIdDQM::geometry_
private

Definition at line 77 of file MuonIdDQM.h.

Referenced by analyze().

MonitorElement* MuonIdDQM::hCSCDdXdZ[4][4]
private

Definition at line 96 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hCSCDdYdZ[4][4]
private

Definition at line 100 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hCSCDx[4][4]
private

Definition at line 94 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hCSCDy[4][4]
private

Definition at line 98 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hCSCNumSegments[4][4]
private

Definition at line 93 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hCSCPulldXdZ[4][4]
private

Definition at line 97 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hCSCPulldYdZ[4][4]
private

Definition at line 101 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hCSCPullx[4][4]
private

Definition at line 95 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hCSCPully[4][4]
private

Definition at line 99 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hDTDdXdZ[4][4]
private

Definition at line 87 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hDTDdYdZ[4][3]
private

Definition at line 91 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hDTDx[4][4]
private

Definition at line 85 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hDTDy[4][3]
private

Definition at line 89 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hDTNumSegments[4][4]
private

Definition at line 84 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hDTPulldXdZ[4][4]
private

Definition at line 88 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hDTPulldYdZ[4][3]
private

Definition at line 92 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hDTPullx[4][4]
private

Definition at line 86 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hDTPully[4][3]
private

Definition at line 90 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hNumChambers[4]
private

Definition at line 80 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hNumMatches[4]
private

Definition at line 81 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

MonitorElement* MuonIdDQM::hSegmentIsAssociatedBool
private

Definition at line 104 of file MuonIdDQM.h.

Referenced by analyze(), and beginJob().

edm::InputTag MuonIdDQM::inputCSCSegmentCollection_
private

Definition at line 67 of file MuonIdDQM.h.

Referenced by analyze(), and MuonIdDQM().

edm::InputTag MuonIdDQM::inputDTRecSegment4DCollection_
private

Definition at line 66 of file MuonIdDQM.h.

Referenced by analyze(), and MuonIdDQM().

edm::InputTag MuonIdDQM::inputMuonCollection_
private

Definition at line 65 of file MuonIdDQM.h.

Referenced by analyze(), and MuonIdDQM().

edm::Handle<reco::MuonCollection> MuonIdDQM::muonCollectionH_
private

Definition at line 74 of file MuonIdDQM.h.

Referenced by analyze().

bool MuonIdDQM::useGlobalMuons_
private

Definition at line 69 of file MuonIdDQM.h.

Referenced by analyze(), beginJob(), and MuonIdDQM().

bool MuonIdDQM::useGlobalMuonsNotTrackerMuons_
private

Definition at line 71 of file MuonIdDQM.h.

Referenced by analyze(), beginJob(), and MuonIdDQM().

bool MuonIdDQM::useTrackerMuons_
private

Definition at line 68 of file MuonIdDQM.h.

Referenced by analyze(), beginJob(), and MuonIdDQM().

bool MuonIdDQM::useTrackerMuonsNotGlobalMuons_
private

Definition at line 70 of file MuonIdDQM.h.

Referenced by analyze(), beginJob(), and MuonIdDQM().