CMS 3D CMS Logo

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

#include <MuonIdDQM.h>

Inheritance diagram for MuonIdDQM:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
 MuonIdDQM (const edm::ParameterSet &)
 
 ~MuonIdDQM () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Private Member Functions

virtual void Fill (MonitorElement *, float)
 

Private Attributes

std::string baseFolder_
 
edm::Handle< CSCSegmentCollectioncscSegmentCollectionH_
 
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]
 
MonitorElementhNumChambersNoRPC [4]
 
MonitorElementhNumMatches [4]
 
MonitorElementhSegmentIsAssociatedBool
 
edm::EDGetTokenT
< CSCSegmentCollection
inputCSCSegmentCollection_
 
edm::EDGetTokenT
< DTRecSegment4DCollection
inputDTRecSegment4DCollection_
 
edm::EDGetTokenT
< reco::MuonCollection
inputMuonCollection_
 
edm::Handle< reco::MuonCollectionmuonCollectionH_
 
const edm::ESGetToken
< GlobalTrackingGeometry,
GlobalTrackingGeometryRecord
trackingGeomToken_
 
bool useGlobalMuons_
 
bool useGlobalMuonsNotTrackerMuons_
 
bool useTrackerMuons_
 
bool useTrackerMuonsNotGlobalMuons_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
using CacheTypes = CacheContexts< T...>
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T...>
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr
< DQMEDAnalyzerGlobalCache
initializeGlobalCache (edm::ParameterSet const &)
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 49 of file MuonIdDQM.h.

Constructor & Destructor Documentation

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

Definition at line 3 of file MuonIdDQM.cc.

References baseFolder_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), inputCSCSegmentCollection_, inputDTRecSegment4DCollection_, inputMuonCollection_, AlCaHLTBitMon_QueryRunRegistry::string, useGlobalMuons_, useGlobalMuonsNotTrackerMuons_, useTrackerMuons_, and useTrackerMuonsNotGlobalMuons_.

4  : trackingGeomToken_(esConsumes<GlobalTrackingGeometry, GlobalTrackingGeometryRecord>()) {
5  inputMuonCollection_ = consumes<reco::MuonCollection>(iConfig.getParameter<edm::InputTag>("inputMuonCollection"));
7  consumes<DTRecSegment4DCollection>(iConfig.getParameter<edm::InputTag>("inputDTRecSegment4DCollection"));
9  consumes<CSCSegmentCollection>(iConfig.getParameter<edm::InputTag>("inputCSCSegmentCollection"));
10  useTrackerMuons_ = iConfig.getUntrackedParameter<bool>("useTrackerMuons");
11  useGlobalMuons_ = iConfig.getUntrackedParameter<bool>("useGlobalMuons");
12  useTrackerMuonsNotGlobalMuons_ = iConfig.getUntrackedParameter<bool>("useTrackerMuonsNotGlobalMuons");
13  useGlobalMuonsNotTrackerMuons_ = iConfig.getUntrackedParameter<bool>("useGlobalMuonsNotTrackerMuons");
14  baseFolder_ = iConfig.getUntrackedParameter<std::string>("baseFolder");
15 }
bool useTrackerMuons_
Definition: MuonIdDQM.h:65
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< DTRecSegment4DCollection > inputDTRecSegment4DCollection_
Definition: MuonIdDQM.h:63
bool useGlobalMuonsNotTrackerMuons_
Definition: MuonIdDQM.h:68
bool useTrackerMuonsNotGlobalMuons_
Definition: MuonIdDQM.h:67
bool useGlobalMuons_
Definition: MuonIdDQM.h:66
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > trackingGeomToken_
Definition: MuonIdDQM.h:76
edm::EDGetTokenT< reco::MuonCollection > inputMuonCollection_
Definition: MuonIdDQM.h:62
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< CSCSegmentCollection > inputCSCSegmentCollection_
Definition: MuonIdDQM.h:64
std::string baseFolder_
Definition: MuonIdDQM.h:69
MuonIdDQM::~MuonIdDQM ( )
override

Definition at line 17 of file MuonIdDQM.cc.

17 {}

Member Function Documentation

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

Reimplemented from DQMEDAnalyzer.

Definition at line 127 of file MuonIdDQM.cc.

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

127  {
128  using namespace edm;
129  using namespace reco;
130 
134 
136 
137  for (MuonCollection::const_iterator muon = muonCollectionH_->begin(); muon != muonCollectionH_->end(); ++muon) {
138  // trackerMuon == 0; globalMuon == 1; trackerMuon && !globalMuon == 2; globalMuon && !trackerMuon == 3
139  for (unsigned int i = 0; i < 4; i++) {
140  if (i == 0 && (!useTrackerMuons_ || !muon->isTrackerMuon()))
141  continue;
142  if (i == 1 && (!useGlobalMuons_ || !muon->isGlobalMuon()))
143  continue;
144  if (i == 2 && (!useTrackerMuonsNotGlobalMuons_ || (!(muon->isTrackerMuon() && !muon->isGlobalMuon()))))
145  continue;
146  if (i == 3 && (!useGlobalMuonsNotTrackerMuons_ || (!(muon->isGlobalMuon() && !muon->isTrackerMuon()))))
147  continue;
148 
149  hNumChambers[i]->Fill(muon->numberOfChambers());
150  hNumMatches[i]->Fill(muon->numberOfMatches(Muon::SegmentAndTrackArbitration));
151  hNumChambersNoRPC[i]->Fill(muon->numberOfChambersCSCorDT());
152 
153  // by station
154  for (int station = 0; station < 4; ++station) {
155  // only fill num segments if we crossed (or nearly crossed) a chamber
156  if (muon->trackX(station + 1, MuonSubdetId::DT, Muon::NoArbitration) < 900000)
157  hDTNumSegments[i][station]->Fill(muon->numberOfSegments(station + 1, MuonSubdetId::DT, Muon::NoArbitration));
158  Fill(hDTDx[i][station], muon->dX(station + 1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration));
159  Fill(hDTPullx[i][station], muon->pullX(station + 1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration, true));
160  Fill(hDTDdXdZ[i][station], muon->dDxDz(station + 1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration));
161  Fill(hDTPulldXdZ[i][station],
162  muon->pullDxDz(station + 1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration, true));
163 
164  if (station < 3) {
165  Fill(hDTDy[i][station], muon->dY(station + 1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration));
166  Fill(hDTPully[i][station],
167  muon->pullY(station + 1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration, true));
168  Fill(hDTDdYdZ[i][station], muon->dDyDz(station + 1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration));
169  Fill(hDTPulldYdZ[i][station],
170  muon->pullDyDz(station + 1, MuonSubdetId::DT, Muon::SegmentAndTrackArbitration, true));
171  }
172 
173  // only fill num segments if we crossed (or nearly crossed) a chamber
174  if (muon->trackX(station + 1, MuonSubdetId::CSC, Muon::NoArbitration) < 900000)
175  hCSCNumSegments[i][station]->Fill(
176  muon->numberOfSegments(station + 1, MuonSubdetId::CSC, Muon::NoArbitration));
177  Fill(hCSCDx[i][station], muon->dX(station + 1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration));
178  Fill(hCSCPullx[i][station],
179  muon->pullX(station + 1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration, true));
180  Fill(hCSCDdXdZ[i][station], muon->dDxDz(station + 1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration));
181  Fill(hCSCPulldXdZ[i][station],
182  muon->pullDxDz(station + 1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration, true));
183  Fill(hCSCDy[i][station], muon->dY(station + 1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration));
184  Fill(hCSCPully[i][station],
185  muon->pullY(station + 1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration, true));
186  Fill(hCSCDdYdZ[i][station], muon->dDyDz(station + 1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration));
187  Fill(hCSCPulldYdZ[i][station],
188  muon->pullDyDz(station + 1, MuonSubdetId::CSC, Muon::SegmentAndTrackArbitration, true));
189  }
190  }
191  } // muon
192 
194  segment != dtSegmentCollectionH_->end();
195  ++segment) {
196  LocalPoint segmentLocalPosition = segment->localPosition();
197  LocalVector segmentLocalDirection = segment->localDirection();
198  LocalError segmentLocalPositionError = segment->localPositionError();
199  LocalError segmentLocalDirectionError = segment->localDirectionError();
200  bool segmentFound = false;
201 
202  for (MuonCollection::const_iterator muon = muonCollectionH_->begin(); muon != muonCollectionH_->end(); ++muon) {
203  if (!muon->isMatchesValid())
204  continue;
205 
206  for (std::vector<MuonChamberMatch>::const_iterator chamberMatch = muon->matches().begin();
207  chamberMatch != muon->matches().end();
208  ++chamberMatch) {
209  for (std::vector<MuonSegmentMatch>::const_iterator segmentMatch = chamberMatch->segmentMatches.begin();
210  segmentMatch != chamberMatch->segmentMatches.end();
211  ++segmentMatch) {
212  if (fabs(segmentMatch->x - segmentLocalPosition.x()) < 1E-6 &&
213  fabs(segmentMatch->y - segmentLocalPosition.y()) < 1E-6 &&
214  fabs(segmentMatch->dXdZ - segmentLocalDirection.x() / segmentLocalDirection.z()) < 1E-6 &&
215  fabs(segmentMatch->dYdZ - segmentLocalDirection.y() / segmentLocalDirection.z()) < 1E-6 &&
216  fabs(segmentMatch->xErr - sqrt(segmentLocalPositionError.xx())) < 1E-6 &&
217  fabs(segmentMatch->yErr - sqrt(segmentLocalPositionError.yy())) < 1E-6 &&
218  fabs(segmentMatch->dXdZErr - sqrt(segmentLocalDirectionError.xx())) < 1E-6 &&
219  fabs(segmentMatch->dYdZErr - sqrt(segmentLocalDirectionError.yy())) < 1E-6) {
220  segmentFound = true;
221  break;
222  }
223  } // segmentMatch
224  if (segmentFound)
225  break;
226  } // chamberMatch
227  if (segmentFound)
228  break;
229  } // muon
230 
231  if (segmentFound)
233  else
235  } // dt segment
236 
238  segment != cscSegmentCollectionH_->end();
239  ++segment) {
240  LocalPoint segmentLocalPosition = segment->localPosition();
241  LocalVector segmentLocalDirection = segment->localDirection();
242  LocalError segmentLocalPositionError = segment->localPositionError();
243  LocalError segmentLocalDirectionError = segment->localDirectionError();
244  bool segmentFound = false;
245 
246  for (MuonCollection::const_iterator muon = muonCollectionH_->begin(); muon != muonCollectionH_->end(); ++muon) {
247  if (!muon->isMatchesValid())
248  continue;
249 
250  for (std::vector<MuonChamberMatch>::const_iterator chamberMatch = muon->matches().begin();
251  chamberMatch != muon->matches().end();
252  ++chamberMatch) {
253  for (std::vector<MuonSegmentMatch>::const_iterator segmentMatch = chamberMatch->segmentMatches.begin();
254  segmentMatch != chamberMatch->segmentMatches.end();
255  ++segmentMatch) {
256  if (fabs(segmentMatch->x - segmentLocalPosition.x()) < 1E-6 &&
257  fabs(segmentMatch->y - segmentLocalPosition.y()) < 1E-6 &&
258  fabs(segmentMatch->dXdZ - segmentLocalDirection.x() / segmentLocalDirection.z()) < 1E-6 &&
259  fabs(segmentMatch->dYdZ - segmentLocalDirection.y() / segmentLocalDirection.z()) < 1E-6 &&
260  fabs(segmentMatch->xErr - sqrt(segmentLocalPositionError.xx())) < 1E-6 &&
261  fabs(segmentMatch->yErr - sqrt(segmentLocalPositionError.yy())) < 1E-6 &&
262  fabs(segmentMatch->dXdZErr - sqrt(segmentLocalDirectionError.xx())) < 1E-6 &&
263  fabs(segmentMatch->dYdZErr - sqrt(segmentLocalDirectionError.yy())) < 1E-6) {
264  segmentFound = true;
265  break;
266  }
267  } // segmentMatch
268  if (segmentFound)
269  break;
270  } // chamberMatch
271  if (segmentFound)
272  break;
273  } // muon
274 
275  if (segmentFound)
277  else
279  } // csc segment
280 }
bool useTrackerMuons_
Definition: MuonIdDQM.h:65
MonitorElement * hCSCDx[4][4]
Definition: MuonIdDQM.h:94
float xx() const
Definition: LocalError.h:22
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:539
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:60
edm::EDGetTokenT< DTRecSegment4DCollection > inputDTRecSegment4DCollection_
Definition: MuonIdDQM.h:63
bool useGlobalMuonsNotTrackerMuons_
Definition: MuonIdDQM.h:68
bool useTrackerMuonsNotGlobalMuons_
Definition: MuonIdDQM.h:67
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:43
MonitorElement * hCSCDy[4][4]
Definition: MuonIdDQM.h:98
edm::Handle< DTRecSegment4DCollection > dtSegmentCollectionH_
Definition: MuonIdDQM.h:72
MonitorElement * hCSCPully[4][4]
Definition: MuonIdDQM.h:99
MonitorElement * hSegmentIsAssociatedBool
Definition: MuonIdDQM.h:104
float yy() const
Definition: LocalError.h:24
MonitorElement * hDTPullx[4][4]
Definition: MuonIdDQM.h:86
MonitorElement * hCSCPullx[4][4]
Definition: MuonIdDQM.h:95
T sqrt(T t)
Definition: SSEVec.h:19
T z() const
Definition: PV3DBase.h:61
bool useGlobalMuons_
Definition: MuonIdDQM.h:66
MonitorElement * hNumMatches[4]
Definition: MuonIdDQM.h:80
MonitorElement * hDTDdXdZ[4][4]
Definition: MuonIdDQM.h:87
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > trackingGeomToken_
Definition: MuonIdDQM.h:76
edm::Handle< reco::MuonCollection > muonCollectionH_
Definition: MuonIdDQM.h:71
edm::EDGetTokenT< reco::MuonCollection > inputMuonCollection_
Definition: MuonIdDQM.h:62
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
virtual void Fill(MonitorElement *, float)
Definition: MuonIdDQM.cc:282
MonitorElement * hDTNumSegments[4][4]
Definition: MuonIdDQM.h:84
MonitorElement * hCSCNumSegments[4][4]
Definition: MuonIdDQM.h:93
MonitorElement * hNumChambersNoRPC[4]
Definition: MuonIdDQM.h:81
edm::ESHandle< GlobalTrackingGeometry > geometry_
Definition: MuonIdDQM.h:74
edm::EDGetTokenT< CSCSegmentCollection > inputCSCSegmentCollection_
Definition: MuonIdDQM.h:64
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:151
static constexpr int DT
Definition: MuonSubdetId.h:11
static constexpr int CSC
Definition: MuonSubdetId.h:12
T x() const
Definition: PV3DBase.h:59
MonitorElement * hDTPulldXdZ[4][4]
Definition: MuonIdDQM.h:88
MonitorElement * hNumChambers[4]
Definition: MuonIdDQM.h:79
edm::Handle< CSCSegmentCollection > cscSegmentCollectionH_
Definition: MuonIdDQM.h:73
void MuonIdDQM::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 19 of file MuonIdDQM.cc.

References baseFolder_, dqm::implementation::IBooker::book1D(), dqm::implementation::NavigatorBase::cd(), hCSCDdXdZ, hCSCDdYdZ, hCSCDx, hCSCDy, hCSCNumSegments, hCSCPulldXdZ, hCSCPulldYdZ, hCSCPullx, hCSCPully, hDTDdXdZ, hDTDdYdZ, hDTDx, hDTDy, hDTNumSegments, hDTPulldXdZ, hDTPulldYdZ, hDTPullx, hDTPully, hNumChambers, hNumChambersNoRPC, hNumMatches, hSegmentIsAssociatedBool, mps_fire::i, mergeVDriftHistosByStation::name, dqm::implementation::NavigatorBase::setCurrentFolder(), relativeConstraints::station, runGCPTkAlMap::title, useGlobalMuons_, useGlobalMuonsNotTrackerMuons_, useTrackerMuons_, and useTrackerMuonsNotGlobalMuons_.

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

Definition at line 282 of file MuonIdDQM.cc.

References dqm::impl::MonitorElement::Fill().

Referenced by analyze().

282  {
283  if (fabs(f) > 900000)
284  return;
285  //if (fabs(f) < 1E-8) return;
286  me->Fill(f);
287 }

Member Data Documentation

std::string MuonIdDQM::baseFolder_
private

Definition at line 69 of file MuonIdDQM.h.

Referenced by bookHistograms(), and MuonIdDQM().

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

Definition at line 73 of file MuonIdDQM.h.

Referenced by analyze().

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

Definition at line 72 of file MuonIdDQM.h.

Referenced by analyze().

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

Definition at line 74 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 bookHistograms().

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

Definition at line 100 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 94 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 98 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 93 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 97 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 101 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 95 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 99 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 87 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 91 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 85 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 89 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 84 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 88 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 92 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 86 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

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

Definition at line 90 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* MuonIdDQM::hNumChambers[4]
private

Definition at line 79 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* MuonIdDQM::hNumChambersNoRPC[4]
private

Definition at line 81 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* MuonIdDQM::hNumMatches[4]
private

Definition at line 80 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* MuonIdDQM::hSegmentIsAssociatedBool
private

Definition at line 104 of file MuonIdDQM.h.

Referenced by analyze(), and bookHistograms().

edm::EDGetTokenT<CSCSegmentCollection> MuonIdDQM::inputCSCSegmentCollection_
private

Definition at line 64 of file MuonIdDQM.h.

Referenced by analyze(), and MuonIdDQM().

edm::EDGetTokenT<DTRecSegment4DCollection> MuonIdDQM::inputDTRecSegment4DCollection_
private

Definition at line 63 of file MuonIdDQM.h.

Referenced by analyze(), and MuonIdDQM().

edm::EDGetTokenT<reco::MuonCollection> MuonIdDQM::inputMuonCollection_
private

Definition at line 62 of file MuonIdDQM.h.

Referenced by analyze(), and MuonIdDQM().

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

Definition at line 71 of file MuonIdDQM.h.

Referenced by analyze().

const edm::ESGetToken<GlobalTrackingGeometry, GlobalTrackingGeometryRecord> MuonIdDQM::trackingGeomToken_
private

Definition at line 76 of file MuonIdDQM.h.

Referenced by analyze().

bool MuonIdDQM::useGlobalMuons_
private

Definition at line 66 of file MuonIdDQM.h.

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

bool MuonIdDQM::useGlobalMuonsNotTrackerMuons_
private

Definition at line 68 of file MuonIdDQM.h.

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

bool MuonIdDQM::useTrackerMuons_
private

Definition at line 65 of file MuonIdDQM.h.

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

bool MuonIdDQM::useTrackerMuonsNotGlobalMuons_
private

Definition at line 67 of file MuonIdDQM.h.

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