CMS 3D CMS Logo

RPCEfficiency.cc File Reference

#include "DQMOffline/Muon/interface/RPCEfficiency.h"
#include <memory>
#include "FWCore/Framework/interface/MakerMacros.h"
#include <DataFormats/RPCDigi/interface/RPCDigiCollection.h>
#include "DataFormats/RPCRecHit/interface/RPCRecHitCollection.h"
#include <DataFormats/MuonDetId/interface/RPCDetId.h>
#include <DataFormats/DTRecHit/interface/DTRecSegment4DCollection.h>
#include <DataFormats/CSCRecHit/interface/CSCSegmentCollection.h>
#include <Geometry/RPCGeometry/interface/RPCGeomServ.h>
#include <Geometry/CommonDetUnit/interface/GeomDet.h>
#include <Geometry/Records/interface/MuonGeometryRecord.h>
#include <Geometry/CommonTopologies/interface/RectangularStripTopology.h>
#include <Geometry/CommonTopologies/interface/TrapezoidalStripTopology.h>
#include <cmath>
#include "TFile.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TCanvas.h"
#include "TAxis.h"
#include "TString.h"

Go to the source code of this file.

Functions

int mySegment (RPCDetId rpcId)


Function Documentation

int mySegment ( RPCDetId  rpcId  ) 

Definition at line 30 of file RPCEfficiency.cc.

References RPCDetId::ring(), RPCDetId::sector(), seg, RPCDetId::station(), and RPCDetId::subsector().

Referenced by RPCEfficiency::analyze(), and RPCEfficiency::beginRun().

00030                              {
00031   int seg=0;
00032   int nsec=36;
00033   int nsub=6;
00034   if (rpcId.ring()==1 && rpcId.station() > 1) {
00035     nsub=3;
00036     nsec=18;
00037   }
00038   seg =rpcId.subsector()+nsub*(rpcId.sector()-1);
00039   if(seg==nsec+1)seg=1;
00040   return seg;
00041 }


Generated on Tue Jun 9 17:52:46 2009 for CMSSW by  doxygen 1.5.4