Go to the documentation of this file. 1 #ifndef RecoLocalMuon_CSCValidation_H
2 #define RecoLocalMuon_CSCValidation_H
103 #include "TProfile2D.h"
171 float fitX(
const CLHEP::HepMatrix &sp,
const CLHEP::HepMatrix &
ep);
184 double parameterLine = (z2Position - z1Position) / z1Direction;
185 return parameterLine;
187 double extrapolate1D(
double initPosition,
double initDirection,
double parameterOfTheLine) {
188 double extrapolatedPosition = initPosition + initDirection * parameterOfTheLine;
189 return extrapolatedPosition;
192 const std::array<const float, 4> &layerBounds,
196 float shiftFromDeadZone);
310 index =
id.ring() + 1;
314 index =
id.station() * 2 +
id.ring();
edm::EDGetTokenT< CSCALCTDigiCollection > al_token
float fitX(const CLHEP::HepMatrix &sp, const CLHEP::HepMatrix &ep)
bool doTrigger(edm::Handle< L1MuGMTReadoutCollection > pCollection)
void doRecHits(edm::Handle< CSCRecHit2DCollection > recHits, edm::ESHandle< CSCGeometry > cscGeom)
void doEfficiencies(edm::Handle< CSCWireDigiCollection > wires, edm::Handle< CSCStripDigiCollection > strips, edm::Handle< CSCRecHit2DCollection > recHits, edm::Handle< CSCSegmentCollection > cscSegments, edm::ESHandle< CSCGeometry > cscGeom)
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > co_token
void doOccupancies(edm::Handle< CSCStripDigiCollection > strips, edm::Handle< CSCWireDigiCollection > wires, edm::Handle< CSCRecHit2DCollection > recHits, edm::Handle< CSCSegmentCollection > cscSegments)
edm::EDGetTokenT< CSCRecHit2DCollection > rh_token
edm::EDGetTokenT< FEDRawDataCollection > rd_token
bool operator()(const CSCRecHit2D &rh1, const CSCRecHit2D &rh2) const
std::vector< int > nmbhvsegm
Maps and vectors for module doGasGain()
int ringSerial(CSCDetId id)
std::map< int, int > m_single_wire_layer
void doResolution(edm::Handle< CSCSegmentCollection > cscSegments, edm::ESHandle< CSCGeometry > cscGeom)
std::multimap< CSCDetId, CSCRecHit2D > NonAssociatedRechits
bool makeTimeMonitorPlots
void doTimeMonitoring(edm::Handle< CSCRecHit2DCollection > recHits, edm::Handle< CSCSegmentCollection > cscSegments, edm::Handle< CSCALCTDigiCollection > alcts, edm::Handle< CSCCLCTDigiCollection > clcts, edm::Handle< CSCCorrelatedLCTDigiCollection > correlatedlcts, edm::Handle< L1MuGMTReadoutCollection > pCollection, edm::ESHandle< CSCGeometry > cscGeom, const edm::EventSetup &eventSetup, const edm::Event &event)
void fillEfficiencyHistos(int bin, int flag)
void doNoiseHits(edm::Handle< CSCRecHit2DCollection > recHits, edm::Handle< CSCSegmentCollection > cscSegments, edm::ESHandle< CSCGeometry > cscGeom, edm::Handle< CSCStripDigiCollection > strips)
edm::EDGetTokenT< edm::TriggerResults > tr_token
int chamberSerial(CSCDetId id)
void doCalibrations(const edm::EventSetup &eventSetup)
float getthisSignal(const CSCStripDigiCollection &stripdigis, CSCDetId idRH, int centerStrip)
void doWireDigis(edm::Handle< CSCWireDigiCollection > wires)
void doSimHits(edm::Handle< CSCRecHit2DCollection > recHits, edm::Handle< edm::PSimHitContainer > simHits)
double lineParametrization(double z1Position, double z2Position, double z1Direction)
void doAFEBTiming(const CSCWireDigiCollection &)
void getEfficiency(float bin, float Norm, std::vector< float > &eff)
float getSignal(const CSCStripDigiCollection &stripdigis, CSCDetId idRH, int centerStrip)
edm::EDGetTokenT< CSCSegmentCollection > se_token
void findNonAssociatedRecHits(edm::ESHandle< CSCGeometry > cscGeom, edm::Handle< CSCStripDigiCollection > strips)
std::multimap< CSCDetId, CSCRecHit2D > AllRechits
edm::EDGetTokenT< CSCCLCTDigiCollection > cl_token
edm::EDGetTokenT< reco::TrackCollection > sa_token
CSCValidation(const edm::ParameterSet &pset)
Constructor.
void doStandalone(edm::Handle< reco::TrackCollection > saMuons)
void doPedestalNoise(edm::Handle< CSCStripDigiCollection > strips)
edm::EDGetTokenT< L1MuGMTReadoutCollection > l1_token
LocalPoint localPosition() const override
bool doHLT(edm::Handle< edm::TriggerResults > hltResults)
int getWidth(const CSCStripDigiCollection &stripdigis, CSCDetId idRH, int centerStrip)
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Perform the analysis.
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomToken_
void doGasGain(const CSCWireDigiCollection &, const CSCStripDigiCollection &, const CSCRecHit2DCollection &)
edm::EDGetTokenT< CSCWireDigiCollection > wd_token
void doADCTiming(const CSCRecHit2DCollection &)
bool filterEvents(edm::Handle< CSCRecHit2DCollection > recHits, edm::Handle< CSCSegmentCollection > cscSegments, edm::Handle< reco::TrackCollection > saMuons)
std::multimap< CSCDetId, CSCRecHit2D > SegRechits
edm::EDGetTokenT< CSCStripDigiCollection > sd_token
bool withinSensitiveRegion(LocalPoint localPos, const std::array< const float, 4 > &layerBounds, int station, int ring, float shiftFromEdge, float shiftFromDeadZone)
std::map< int, std::vector< int > > m_wire_hvsegm
edm::EDGetTokenT< CSCComparatorDigiCollection > cd_token
~CSCValidation() override
Destructor.
void doSegments(edm::Handle< CSCSegmentCollection > cscSegments, edm::ESHandle< CSCGeometry > cscGeom)
std::map< CSCRecHit2D, float, ltrh > distRHmap
int typeIndex(CSCDetId id)
double extrapolate1D(double initPosition, double initDirection, double parameterOfTheLine)
edm::EDGetTokenT< edm::PSimHitContainer > sh_token
void doStripDigis(edm::Handle< CSCStripDigiCollection > strips)
strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers....
void histoEfficiency(TH1F *readHisto, TH1F *writeHisto)
void doCompTiming(const CSCComparatorDigiCollection &)