CMS 3D CMS Logo

TrackQuality.cc File Reference

#include <algorithm>
#include <vector>
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "SimDataFormats/TrackingAnalysis/interface/TrackingParticleFwd.h"
#include "SimDataFormats/TrackingHit/interface/PSimHitContainer.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
#include "DataFormats/SiPixelDetId/interface/PXBDetId.h"
#include "DataFormats/SiPixelDetId/interface/PXFDetId.h"
#include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
#include "DataFormats/SiStripDetId/interface/TIBDetId.h"
#include "DataFormats/SiStripDetId/interface/TIDDetId.h"
#include "DataFormats/SiStripDetId/interface/TOBDetId.h"
#include "DataFormats/SiStripDetId/interface/TECDetId.h"
#include "DataFormats/MuonDetId/interface/MuonSubdetId.h"
#include "DataFormats/MuonDetId/interface/DTLayerId.h"
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "DataFormats/MuonDetId/interface/RPCDetId.h"
#include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h"
#include "DataFormats/TrackingRecHit/interface/TrackingRecHitFwd.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "SimTracker/TrackerHitAssociation/interface/TrackerHitAssociator.h"
#include "SimTracker/TrackHistory/interface/TrackQuality.h"

Go to the source code of this file.

Typedefs

typedef std::pair
< TrackQuality::Layer::SubDet,
short int
DetLayer

Functions

static DetLayer getDetLayer (DetId detId)
static bool operator< (DetId detId, const MatchedHit &hit)
static bool operator< (const MatchedHit &hit, DetId detId)

Variables

static const uint32_t NonMatchedTrackId = (uint32_t)-1
static const int statePriorities []


Typedef Documentation

typedef std::pair<TrackQuality::Layer::SubDet, short int> DetLayer

Definition at line 86 of file TrackQuality.cc.


Function Documentation

static DetLayer getDetLayer ( DetId  detId  )  [static]

Definition at line 101 of file TrackQuality.cc.

References MuonSubdetId::CSC, DetId::det(), MuonSubdetId::DT, TrackQuality::Layer::Invalid, DetId::Muon, TrackQuality::Layer::MuonCSC, TrackQuality::Layer::MuonDT, TrackQuality::Layer::MuonRPCBarrel, TrackQuality::Layer::MuonRPCEndcap, PixelSubdetector::PixelBarrel, TrackQuality::Layer::PixelBarrel, PixelSubdetector::PixelEndcap, TrackQuality::Layer::PixelForward, MuonSubdetId::RPC, TrackQuality::Layer::StripTEC, TrackQuality::Layer::StripTIB, TrackQuality::Layer::StripTID, TrackQuality::Layer::StripTOB, DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, and DetId::Tracker.

Referenced by TrackQuality::evaluate().

00102 {
00103     TrackQuality::Layer::SubDet det = TrackQuality::Layer::Invalid;
00104     short int layer = 0;
00105 
00106     switch (detId.det())
00107     {
00108     case DetId::Tracker:
00109         switch (detId.subdetId())
00110         {
00111         case PixelSubdetector::PixelBarrel:
00112             det = TrackQuality::Layer::PixelBarrel;
00113             layer = PXBDetId(detId).layer();
00114             break;
00115 
00116         case PixelSubdetector::PixelEndcap:
00117             det = TrackQuality::Layer::PixelForward;
00118             layer = PXFDetId(detId).disk();
00119             break;
00120 
00121         case StripSubdetector::TIB:
00122             det = TrackQuality::Layer::StripTIB;
00123             layer = TIBDetId(detId).layer();
00124             break;
00125 
00126         case StripSubdetector::TID:
00127             det = TrackQuality::Layer::StripTID;
00128             layer = TIDDetId(detId).wheel();
00129             break;
00130 
00131         case StripSubdetector::TOB:
00132             det = TrackQuality::Layer::StripTOB;
00133             layer = TOBDetId(detId).layer();
00134             break;
00135 
00136         case StripSubdetector::TEC:
00137             det = TrackQuality::Layer::StripTEC;
00138             layer = TECDetId(detId).wheel();
00139             break;
00140 
00141         default:
00142             /* should not get here */
00143             ;
00144         }
00145         break;
00146 
00147     case DetId::Muon:
00148         switch (detId.subdetId())
00149         {
00150         case MuonSubdetId::DT:
00151             det = TrackQuality::Layer::MuonDT;
00152             layer = DTLayerId(detId).layer();
00153             break;
00154 
00155         case MuonSubdetId::CSC:
00156             det = TrackQuality::Layer::MuonCSC;
00157             layer = CSCDetId(detId).layer();
00158             break;
00159 
00160         case MuonSubdetId::RPC:
00161             if (RPCDetId(detId).region())
00162                 det = TrackQuality::Layer::MuonRPCEndcap;
00163             else
00164                 det = TrackQuality::Layer::MuonRPCBarrel;
00165             layer = RPCDetId(detId).layer();
00166             break;
00167 
00168         default:
00169             /* should not get here */
00170             ;
00171         }
00172         break;
00173 
00174     default:
00175         /* should not get here */
00176         ;
00177     }
00178 
00179     return DetLayer(det, layer);
00180 }

static bool @16249::operator< ( DetId  detId,
const MatchedHit &  hit 
) [static]

Definition at line 80 of file TrackQuality.cc.

00081 {
00082     return detId < hit.detId;
00083 }

static bool @16249::operator< ( const MatchedHit &  hit,
DetId  detId 
) [static]

Definition at line 76 of file TrackQuality.cc.

00077 {
00078     return hit.detId < detId;
00079 }


Variable Documentation

EncodedEventId collision

Definition at line 50 of file TrackQuality.cc.

DetId detId

Definition at line 48 of file TrackQuality.cc.

Referenced by ZDCHitFilter::accepts(), CastorHitFilter::accepts(), PedeLabeler::alignableLabel(), AlignableDetUnit::alignmentErrors(), AlignableDet::alignmentErrors(), AlignableDet::alignments(), AlignableDetUnit::alignments(), CkfDebugger::analyseRecHitNotFound(), HFLightCalRand::analyze(), SiPixelDigiValid::analyze(), SiPixelHLTSource::analyze(), CSCComparatorDigiValidation::analyze(), SiStripDigiValid::analyze(), RPCMultiplicityTest::analyze(), SiPixelTrackResidualSource::analyze(), TestHits::analyze(), HFLightCal::analyze(), SiPixelRecHitsValid::analyze(), SiPixelOfflineCalibAnalysisBase::analyze(), SiPixelErrorEstimation::analyze(), CSCWireDigiValidation::analyze(), RPCMonitorDigi::analyze(), CSCSegmentValidation::analyze(), SiPixelTrackingRecHitsValid::analyze(), HLTMuonDQMSource::analyze(), LinkDataXMLWriter::analyze(), RPCGeometryServTest::analyze(), TestSmoothHits::analyze(), SiPixelErrorsDigisToCalibDigis::analyze(), HFPreLightCal::analyze(), CSCRecHit2DValidation::analyze(), CSCStripDigiValidation::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), EcalSelectiveReadoutValidation::analyzeEE(), HcalTriggerPrimitiveAlgo::analyzeHF(), VisEventSetupService::annotateCSCChambers(), CaloTowersCreationAlgo::assignHit(), CalibrationTask::book(), LatencyTask::book(), CalibrationScanTask::book(), PedsOnlyTask::book(), NoiseTask::book(), RPCMonitorSync::bookDetUnitME(), RPCMonitorEfficiency::bookDetUnitMEEff(), SiPixelErrorsDigisToCalibDigis::bookDQMHistoPlaquetteSummary2D(), SiPixelOfflineCalibAnalysisBase::bookDQMHistoPlaquetteSummary2D(), VisEventSetup::buildCSC(), VisEventSetupService::buildCSCChambers(), SiPixelRecHitSource::buildStructure(), SiPixelDigiSource::buildStructure(), SiPixelRawDataErrorSource::buildStructure(), SiPixelClusterSource::buildStructure(), SuperClusterShapeAlgo::Calculate_Covariances(), RPCStripsRing::calculateHwPlane(), CaloRecHitCandidateProducer::cellTresholdAndWeight(), MuonIdProducer::chamberId(), CastorHitCorrection::charge(), HcalHitCorrection::charge(), CalibrationTask::checkAndSave(), CalibrationScanTask::checkAndSave(), ErrorChecker::checkROC(), ErrorChecker::conversionError(), SiStripTrackerMapCreator::create(), VisEventSetupService::cscTextRep(), HcalHitCorrection::delay(), CastorHitCorrection::delay(), AlignmentTrackSelector::detailedHitsCheck(), CalibrationTrackSelector::detailedHitsCheck(), GlobalTrackingGeometry::detIds(), AlignableTracker::detsToAlignables(), AlignmentParameterSelector::detUnitDeselected(), ESDataFormatter::DigiToRaw(), ESDataFormatter::DigiToRawTB(), CSCSkim::doBFieldStudySelection(), CSCSkim::doLongSATrack(), CSCValidation::doStandalone(), SiPixelActionExecutor::dumpBarrelModIds(), SiPixelActionExecutor::dumpEndcapModIds(), EcalCoder::encode(), RPCMonitorSync::endJob(), RPCEventSummary::endLuminosityBlock(), RPCDeadChannelTest::endLuminosityBlock(), HITrackingRegionProducer::estimateMultiplicity(), TrackQuality::evaluate(), PedsOnlyTask::fill(), NoiseTask::fill(), FastL1Region::FillEMCrystals(), GlobalRecHitsAnalyzer::fillHCal(), GlobalDigisAnalyzer::fillHCal(), GlobalDigisProducer::fillHCal(), GlobalRecHitsProducer::fillHCal(), EcalElectronicsMapper::fillMaps(), GlobalRecHitsProducer::fillMuon(), GlobalRecHitsAnalyzer::fillMuon(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), SiPixelInformationExtractor::findNoisyPixels(), SiStripCablingDQM::getActiveDetIds(), TripletGenerator::getGlobalPosition(), HcalTestHitGenerator::getNoiseHits(), RPCStripsRing::getRingId(), SimHitSelectorFromDB::getSimHit(), RPCSynchronizer::getSimHitBx(), TrackDetectorAssociator::getTAMuonChamberMatches(), align::tpb::halfBarrelNumber(), align::tib::halfShellNumber(), SiStripWebInterface::handleAnalyserRequest(), HcalTBDigiProducer::HcalTBDigiProducer(), DetIdInfo::info(), DTROS8Unpacker::interpretRawData(), DTROS25Unpacker::interpretRawData(), CalibrationTrackSelector::isHit2D(), AlignmentTrackSelector::isHit2D(), align::tpb::ladderNumber(), TrackingTruthProducer::LayerFromDetid(), TrackingElectronProducer::layerFromDetid(), CaloHitResponse::makeAnalogSignal(), MuonRoadTrajectoryBuilder::makeTrajectories_0(), PFRootEventManager::mcTruthMatching(), VisPixelDigiTwig::onNewEvent(), CSCCrosstalkConditions::prefillCrosstalk(), CSCFakeCrosstalkConditions::prefillCrosstalk(), CSCGainsConditions::prefillGains(), CSCFakeGainsConditions::prefillGains(), CSCFakeNoiseMatrixConditions::prefillNoiseMatrix(), CSCNoiseMatrixConditions::prefillNoiseMatrix(), CSCFakePedestalsConditions::prefillPedestals(), PFRootEventManager::PreprocessRecHits(), sipixelobjects::PixelROC::print(), helper::MuonCollectionStoreManager::processHit(), helper::TrackCollectionStoreManager::processTrack(), ESDigiToRaw::produce(), ESDigiToRawTB::produce(), DeDxEstimatorProducer::produce(), EcalTBDigiProducer::produce(), TrackCandidateProducer::produce(), ReducedRecHitCollectionProducer::produce(), TrackProducerWithSCAssociation::produce(), EcalPedOffset::readDACs(), EcalDigiDisplay::readEBDigis(), EcalPedHists::readEBdigis(), EcalDigiDisplay::readEEDigis(), EcalPedHists::readEEdigis(), SiStripDaqInfo::readFedIds(), RPCMonitorSync::readRPCDAQStrips(), ESRecHitSimAlgo::reconstruct(), AlignableNavigator::recursiveGetId(), CaloTowersCreationAlgo::rescale(), RPCDetInfo::RPCDetInfo(), RPCStripsRing::RPCStripsRing(), HcalTriggerPrimitiveAlgo::run(), SiStripRecHitConverterAlgorithm::run(), DAFTrackProducerAlgorithm::runWithCandidate(), CSCTMBHeader::selfTest(), CSCEventData::selfTest(), CSCALCTHeader::selfTest(), TkAccumulatingSensitiveDetector::setDetUnitId(), CastorDigiProducer::sortHits(), MuonSeedPtExtractor::stationCode(), align::tib::stringNumber(), TrackingTruthProducer::trackingParticleAssembler(), SiPixelOfflineCalibAnalysisBase::translateDetIdToString(), MuonIdTruthInfo::truthMatchMuon(), PedsOnlyTask::update(), NoiseTask::update(), KalmanAlignmentSetup::useForExternalTracking(), KalmanAlignmentSetup::useForTracking(), and ESUnpacker::word2digi().

const uint32_t NonMatchedTrackId = (uint32_t)-1 [static]

Definition at line 44 of file TrackQuality.cc.

Referenced by TrackQuality::evaluate().

int recHitId

Definition at line 51 of file TrackQuality.cc.

Referenced by DisplayManager::loadGRecHits(), and RoadSearchHelixMakerAlgorithm::run().

uint32_t simTrackId

Definition at line 49 of file TrackQuality.cc.

Referenced by CSCBaseElectronicsSim::addLinks(), TrackCandidateProducer::produce(), TrajectorySeedProducer::produce(), FastTSGFromL2Muon::produce(), ElectronGSPixelSeedGenerator::run(), and TrackingTruthProducer::simTrackHitsAssociator().

TrackQuality::Layer::State state

Definition at line 52 of file TrackQuality.cc.

Referenced by edm::EventSelector::acceptEvent(), TestHits::analyze(), HLTMuonDQMSource::analyze(), TestTrackHits::analyze(), TrackerSeedValidator::analyze(), TestSmoothHits::analyze(), evf::FUResourceTable::cellStates(), Ig3DColorControl::chooseColor(), Ig3DMColorControl::chooseColor(), TrackerSeedCleaner::clean(), evf::StateMachine::commandCallback(), SeedFromNuclearInteraction::construct(), edm::EventSelector::containsExceptions(), IgSessionManager::createSession(), NavVolume6Faces::crossToNextVolume(), evf::FUResourceBroker::customWebPage(), evf::FUResourceTable::discard(), evf::FUShmBuffer::discardDqmCell(), evf::FUShmBuffer::dqmCellToRead(), edm::encode(), AlignmentMonitorTracksFromTrajectories::event(), IgWebServiceRegistry::executeURL(), FUShmReader::fillRawData(), SiStripElectronAlgo::findElectron(), evf::FUShmBuffer::finishReadingDqmCell(), evf::FUShmBuffer::finishReadingRawCell(), evf::FUShmBuffer::finishWritingRawCell(), KinematicParticleVertexFitter::fit(), IgSoFieldPlaneMap::generatePrimitives(), IgSoGridPlaneMap::generatePrimitives(), cscdqm::Summary::GetValue(), CachedTrajectory::getWideTrajectory(), IgSoFieldPlaneMap::GLRender(), VisSoG4Trajectories::GLRender(), reco::TrackInfo::localTrackMomentum(), reco::TrackingRecHitInfo::localTrackMomentumOnMono(), reco::TrackingRecHitInfo::localTrackMomentumOnStereo(), reco::TrackInfo::localTrackPosition(), reco::TrackingRecHitInfo::localTrackPositionOnMono(), reco::TrackingRecHitInfo::localTrackPositionOnStereo(), reco::modules::CosmicTrackSplitter::makeCandidate(), reco::modules::TrackerTrackHitFilter::makeCandidate(), IgSoGL2PSAction::markerSet(), edm::EventSelector::maskTriggerResults(), PhysicsTools::MVATrainer::MVATrainer(), CtfSpecialSeedGenerator::postCheck(), RoadSearchTrackCandidateMakerAlgorithm::PrepareTrackCandidates(), edm::service::RandomNumberGeneratorService::print(), evf::FUShmBuffer::printDqmState(), evf::FUShmBuffer::printEvtState(), L2MuonSeedGenerator::produce(), GoodSeedProducer::produce(), TrackCandidateTopBottomHitFilter::produce(), TrackProducerWithSCAssociation::produce(), ConvBremSeedProducer::produce(), cms::CosmicTrackFinder::produce(), cms::CkfTrackCandidateMakerBase::produceBase(), cms::HITrackVertexMaker::produceTracks(), CachedTrajectory::propagate(), evf::FUShmBuffer::rawCellToDiscard(), evf::FUShmBuffer::rawCellToRead(), evf::FUShmBuffer::rawCellToWrite(), KalmanAlignmentTrackRefitter::refitSingleTracklet(), evf::FUShmBuffer::releaseRawCell(), DAFTrackProducerAlgorithm::runWithCandidate(), evf::FUShmBuffer::scheduleRawCellForDiscard(), SeedFromConsecutiveHits::SeedFromConsecutiveHits(), evf::FUResourceTable::sendDqm(), edm::StreamerOutputModuleBase::setHltMask(), evf::StateMachine::stateChanged(), reco::TrackingRecHitInfo::stateOnDet(), IgSoGL2PSAction::text2(), TreatSecondary::tracks(), InOutConversionTrackFinder::tracks(), OutInConversionTrackFinder::tracks(), evf::FUShmBuffer::writeDqmEventData(), and evf::FUShmBuffer::writeRawEmptyEvent().

const int statePriorities[] [static]

Initial value:

{
      3,
         5,
       0,
        7,
          2,
         4,
       6,
     1
}

Definition at line 89 of file TrackQuality.cc.

Referenced by TrackQuality::evaluate().


Generated on Tue Jun 9 17:55:51 2009 for CMSSW by  doxygen 1.5.4