CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
DeDxDiscriminatorTools Namespace Reference

Functions

double charge (const std::vector< uint8_t > &Ampls)
 
double charge (const vector< uint8_t > &Ampls)
 
bool IsFarFromBorder (TrajectoryStateOnSurface trajState, const GeomDetUnit *it)
 
bool IsSaturatingStrip (const std::vector< uint8_t > &Ampls)
 
bool IsSaturatingStrip (const vector< uint8_t > &Ampls)
 
bool IsSpanningOver2APV (unsigned int FirstStrip, unsigned int ClusterSize)
 
double path (double cosine, double thickness)
 

Function Documentation

double DeDxDiscriminatorTools::charge ( const std::vector< uint8_t > &  Ampls)

Definition at line 43 of file DeDxDiscriminatorTools.cc.

References a, and charge().

Referenced by SiStripDigitizerAlgorithm::accumulateSimHits(), Hector::add(), MuonTruth::addChannel(), CustomParticleFactory::addCustomParticle(), PFEGammaAlgo::AddElectronCandidate(), pat::GenPlusSimParticleProducer::addGenParticle(), GEMSim::addLinks(), CSCBaseElectronicsSim::addLinks(), PFMuonAlgo::addMissingMuons(), DeDxDiscriminatorLearnerFromCalibTree::algoAnalyzeTheTree(), SiStripGainFromCalibTree::algoAnalyzeTheTree(), EwkMuDQM::analyze(), HiBasicGenTest::analyze(), DiMuonHistograms::analyze(), ElectronSeedAnalyzer::analyze(), PhysicsObjectsMonitor::analyze(), BasicHepMCValidation::analyze(), IsolatedParticlesGeneratedJets::analyze(), ZMuMu_efficiencyAnalyzer::analyze(), HcalCorrPFCalculation::analyze(), MBUEandQCDValidation::analyze(), SiPixelTrackResidualSource::analyze(), __class__< T >::analyze(), DTTrigTest::analyze(), HeavyFlavorValidation::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), TauMVATrainer::analyze(), ResolutionAnalyzer::analyze(), IsolatedGenParticles::analyze(), SiStripClusterToDigiProducer::applyGain(), ThreeThresholdAlgorithm::applyGains(), MuonSimHitProducer::applyMaterialEffects(), PhysicsObjectsMonitor::beginJob(), SiPixelTrackingRecHitsValid::beginJob(), HPSPFRecoTauAlgorithm::buildThreeProngs(), ConstrainedTreeBuilder::buildTree(), ConstrainedTreeBuilderT::buildTree(), CSCTFPtLUT::calcPt(), spr::cGenSimInfo(), charge(), EvolutionECAL::ChargeVPTCathode(), SimpleCosmicBONSeeder::checkCharge(), DreamSD::cherenkovDeposit_(), L1MuonPixelTrackFitter::Circle::Circle(), ClusterProducerFP420::clusterizeDetUnit(), OldThreeThresholdAlgorithm::clusterizeDetUnit_(), ClusterProducerFP420::clusterizeDetUnitPixels(), PixelHitMatcher::compatibleHits(), PixelHitMatcher::compatibleSeeds(), APVShot::computeShot(), PFRootEventManager::countChargedAndPhotons(), MuonSeedFromRecHits::createSeed(), MuonSeedCreator::createSeed(), CosmicMuonSeedGenerator::createSeed(), OutInConversionSeedFinder::createSeedFTS(), CylindricalState::CylindricalState(), Histograms::declareHistograms(), GflashHadronShowerModel::DoIt(), GFlashEMShowerModel::DoIt(), GflashEMShowerModel::DoIt(), reco::PFBlockElementBrem::Dump(), reco::PFBlockElementTrack::Dump(), reco::PFBlockElementGsfTrack::Dump(), ZeeCalibration::duringLoop(), ECALPositionCalculator::ecalPhi(), HICaloUtil::EcalPhi(), SETSeedFinder::estimateMomentum(), L1GtMuonCondition::evaluateCondition(), AlignmentMonitorGeneric::event(), SiPixelTrackResidualModule::fill(), SiPixelClusterModule::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), SiPixelRecHitsValid::fillBarrel(), MuScleFit::fillComparisonHistograms(), SiPixelRecHitsValid::fillForward(), HLTOniaSource::fillInvariantMass(), SiStripMonitorTrack::fillMEs(), SiStripMonitorTrack::fillModMEs(), PlotMakerReco::fillPlots(), Histograms::fillRecHistograms(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), SVTagInfoValidationAnalyzer::fillSimToReco(), EopVariables::fillVariables(), GenLeadTrackFilter::filter(), HighMultiplicityGenFilter::filter(), WZInterestingEventSelector::filter(), CSCEfficiency::filter(), Tau3MuReco::find3rdTrack(), SETFilter::findChi2(), Tau3MuReco::findCorrectPairing(), ConversionSeedFinder::findLayers(), V0Fitter::fitAll(), ResidualRefitting::freeTrajStateMuon(), DeDxTools::genericAverage(), pat::PATObject< ObjectType >::genParticleById(), CaloSD::getAttenuation(), ECalSD::getBirkL3(), ConvertedPhotonProducer::getCircleCenter(), ZdcSD::getEnergyDeposit(), CastorSD::getEnergyDeposit(), IsolatedPixelTrackCandidateProducer::GetEtaPhiAtEcal(), PythiaFilterIsolatedTrack::GetEtaPhiAtEcal(), TrackDetectorAssociator::getFreeTrajectoryState(), HTrackAssociator::getFreeTrajectoryState(), HPDIonFeedbackSim::getIonFeedback(), DeDxDiscriminatorProducer::GetProbability(), CSCDriftSim::getWireHit(), HFGflash::gfParameterization(), CalorimetryManager::HDShowerSimulation(), HLTPMMassFilter::hltFilter(), PFDisplacedVertexHelper::identifyVertex(), SiTrivialInduceChargeOnStrips::induceVector(), GoodSeedProducer::IsIsolated(), AlignmentTrackSelector::isOkChargeStripHit(), PFTauQualityCutWrapper::isolationChargedObjects(), PFTauQualityCutWrapper::isolationGammaObjects(), PerigeeConversions::jacobianParameters2Cartesian(), PFDisplacedVertexHelper::lambdaCP(), DeDxDiscriminatorLearner::Learn(), PFTauDiscriminants::PFTauDiscriminantManager::mainTrack(), pat::PATGenCandsFromSimTracksProducer::makeGenParticle_(), CosmicSeedCreator::makeSeed(), MuonErrorMatrixAdjuster::makeTrack(), PFB::match(), CalorimetryManager::MuonMipSimulation(), reco::V0Filter::operator()(), PathToPlane2Order::operator()(), TauTagTools::filterChargedAndNeutralsByPt::operator()(), reco::LeafRefCandidateT< T >::overlap(), spr::parentSimTrack(), pos::PixelFEDTestDAC::PixelFEDTestDAC(), SiPixelHistoricInfoReader::plot(), PrintRecoObjects::print(), PFRootEventManagerColin::processHIGH_E_TAUS(), HFChamberSD::ProcessHits(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), MuonAlignmentFromReference::processMuonResidualsFromTrack(), ShallowTracksProducer::produce(), VZeroProducer::produce(), ShallowClustersProducer::produce(), ShallowSimTracksProducer::produce(), TauGenJetProducer::produce(), IsolatedPixelTrackCandidateProducer::produce(), TrajectorySeedProducer::produce(), MCParticleReplacer::produce(), ParticleReplacerParticleGun::produce(), TrackCandidateProducer::produce(), DeDxEstimatorProducer::produce(), DeDxEstimatorProducerPixelTripplet::produce(), L2MuonSeedGenerator::produce(), SiClusterTranslator::produce(), FakeTrackProducer< T >::produce(), PFElecTkProducer::produce(), TrajectorySeedFromMuonProducer::produce(), GoodSeedProducer::produce(), GenHIEventProducer::produce(), ShallowGainCalibration::produce(), TrackerToMuonPropagator::produce(), AlCaHOCalibProducer::produce(), spr::propagateECAL(), spr::propagateHCAL(), spr::propagateTracker(), spr::propagateTrackerEnd(), spr::propagateTrackToECAL(), spr::propagateTrackToHCAL(), L1MuDTAssignmentUnit::PtAU(), PFAlgo::reconstructCluster(), PFAlgo::reconstructTrack(), KalmanAlignmentTrackRefitter::refitSingleTracklet(), CosmicRegionalSeedGenerator::regions(), reco::TrackJet::resetCharge(), PixelFitterByConformalMappingAndLine::run(), TrackFitter::run(), PixelFitterByHelixProjections::run(), KFBasedPixelFitter::run(), L1MuonPixelTrackFitter::run(), DigiSimLinkAlgorithm::run(), ConversionTrackPairFinder::run(), L1MuGMTEtaProjectionUnit::run(), L1MuGMTPhiProjectionUnit::run(), CustomPDGParser::s_charge(), AddFourMomenta::set(), PFElectronAlgo::SetCandidates(), CSCXonStrip_MatchGatti::setupMatrix(), PFTauQualityCutWrapper::signalChargedObjects(), PFTauQualityCutWrapper::signalGammaObjects(), L1DummyProducer::SimpleDigi(), L1MuGMTLFPhiProLUT::SpecificLookup(), L1MuGMTMIAUEtaProLUT::SpecificLookup(), L1MuGMTMIAUPhiPro2LUT::SpecificLookup(), L1MuGMTMIAUPhiPro1LUT::SpecificLookup(), L1MuGMTMIAUPhiPro1LUT::SpecificLookup_cphi_fine(), L1MuGMTMIAUPhiPro1LUT::SpecificLookup_cphi_ofs(), L1MuGMTLFPhiProLUT::SpecificLookup_dphi(), L1MuGMTMIAUEtaProLUT::SpecificLookup_eta_sel(), L1MuGMTMIAUPhiPro2LUT::SpecificLookup_phi_sel(), TauValidation::spinEffectsZ(), TauValidation::tauProngs(), reco::PFDisplacedVertex::totalCharge(), FastTSGFromPropagation::trackerSeeds(), TreatSecondary::tracks(), reco::Conversion::tracksSigned_d0(), StoreSecondary::update(), CheckSecondary::update(), MuonSeedCreator::weightedPt(), and reco::writeSpecific().

44 {
45  double charge = 0;
46  for(unsigned int a=0;a<Ampls.size();a++){charge+=Ampls[a];}
47  return charge;
48 }
double charge(const std::vector< uint8_t > &Ampls)
double a
Definition: hdecay.h:121
double DeDxDiscriminatorTools::charge ( const vector< uint8_t > &  Ampls)

Definition at line 43 of file DeDxDiscriminatorTools.cc.

References a, and charge().

Referenced by SiStripDigitizerAlgorithm::accumulateSimHits(), Hector::add(), MuonTruth::addChannel(), CustomParticleFactory::addCustomParticle(), PFEGammaAlgo::AddElectronCandidate(), pat::GenPlusSimParticleProducer::addGenParticle(), GEMSim::addLinks(), CSCBaseElectronicsSim::addLinks(), PFMuonAlgo::addMissingMuons(), DeDxDiscriminatorLearnerFromCalibTree::algoAnalyzeTheTree(), SiStripGainFromCalibTree::algoAnalyzeTheTree(), EwkMuDQM::analyze(), HiBasicGenTest::analyze(), DiMuonHistograms::analyze(), ElectronSeedAnalyzer::analyze(), PhysicsObjectsMonitor::analyze(), BasicHepMCValidation::analyze(), IsolatedParticlesGeneratedJets::analyze(), ZMuMu_efficiencyAnalyzer::analyze(), HcalCorrPFCalculation::analyze(), MBUEandQCDValidation::analyze(), SiPixelTrackResidualSource::analyze(), __class__< T >::analyze(), DTTrigTest::analyze(), HeavyFlavorValidation::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), TauMVATrainer::analyze(), ResolutionAnalyzer::analyze(), IsolatedGenParticles::analyze(), SiStripClusterToDigiProducer::applyGain(), ThreeThresholdAlgorithm::applyGains(), MuonSimHitProducer::applyMaterialEffects(), PhysicsObjectsMonitor::beginJob(), SiPixelTrackingRecHitsValid::beginJob(), HPSPFRecoTauAlgorithm::buildThreeProngs(), ConstrainedTreeBuilder::buildTree(), ConstrainedTreeBuilderT::buildTree(), CSCTFPtLUT::calcPt(), spr::cGenSimInfo(), charge(), EvolutionECAL::ChargeVPTCathode(), SimpleCosmicBONSeeder::checkCharge(), DreamSD::cherenkovDeposit_(), L1MuonPixelTrackFitter::Circle::Circle(), ClusterProducerFP420::clusterizeDetUnit(), OldThreeThresholdAlgorithm::clusterizeDetUnit_(), ClusterProducerFP420::clusterizeDetUnitPixels(), PixelHitMatcher::compatibleHits(), PixelHitMatcher::compatibleSeeds(), APVShot::computeShot(), PFRootEventManager::countChargedAndPhotons(), MuonSeedFromRecHits::createSeed(), MuonSeedCreator::createSeed(), CosmicMuonSeedGenerator::createSeed(), OutInConversionSeedFinder::createSeedFTS(), CylindricalState::CylindricalState(), Histograms::declareHistograms(), GflashHadronShowerModel::DoIt(), GFlashEMShowerModel::DoIt(), GflashEMShowerModel::DoIt(), reco::PFBlockElementBrem::Dump(), reco::PFBlockElementTrack::Dump(), reco::PFBlockElementGsfTrack::Dump(), ZeeCalibration::duringLoop(), ECALPositionCalculator::ecalPhi(), HICaloUtil::EcalPhi(), SETSeedFinder::estimateMomentum(), L1GtMuonCondition::evaluateCondition(), AlignmentMonitorGeneric::event(), SiPixelTrackResidualModule::fill(), SiPixelClusterModule::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), SiPixelRecHitsValid::fillBarrel(), MuScleFit::fillComparisonHistograms(), SiPixelRecHitsValid::fillForward(), HLTOniaSource::fillInvariantMass(), SiStripMonitorTrack::fillMEs(), SiStripMonitorTrack::fillModMEs(), PlotMakerReco::fillPlots(), Histograms::fillRecHistograms(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), SVTagInfoValidationAnalyzer::fillSimToReco(), EopVariables::fillVariables(), GenLeadTrackFilter::filter(), HighMultiplicityGenFilter::filter(), WZInterestingEventSelector::filter(), CSCEfficiency::filter(), Tau3MuReco::find3rdTrack(), SETFilter::findChi2(), Tau3MuReco::findCorrectPairing(), ConversionSeedFinder::findLayers(), V0Fitter::fitAll(), ResidualRefitting::freeTrajStateMuon(), DeDxTools::genericAverage(), pat::PATObject< ObjectType >::genParticleById(), CaloSD::getAttenuation(), ECalSD::getBirkL3(), ConvertedPhotonProducer::getCircleCenter(), ZdcSD::getEnergyDeposit(), CastorSD::getEnergyDeposit(), IsolatedPixelTrackCandidateProducer::GetEtaPhiAtEcal(), PythiaFilterIsolatedTrack::GetEtaPhiAtEcal(), TrackDetectorAssociator::getFreeTrajectoryState(), HTrackAssociator::getFreeTrajectoryState(), HPDIonFeedbackSim::getIonFeedback(), DeDxDiscriminatorProducer::GetProbability(), CSCDriftSim::getWireHit(), HFGflash::gfParameterization(), CalorimetryManager::HDShowerSimulation(), HLTPMMassFilter::hltFilter(), PFDisplacedVertexHelper::identifyVertex(), SiTrivialInduceChargeOnStrips::induceVector(), GoodSeedProducer::IsIsolated(), AlignmentTrackSelector::isOkChargeStripHit(), PFTauQualityCutWrapper::isolationChargedObjects(), PFTauQualityCutWrapper::isolationGammaObjects(), PerigeeConversions::jacobianParameters2Cartesian(), PFDisplacedVertexHelper::lambdaCP(), DeDxDiscriminatorLearner::Learn(), PFTauDiscriminants::PFTauDiscriminantManager::mainTrack(), pat::PATGenCandsFromSimTracksProducer::makeGenParticle_(), CosmicSeedCreator::makeSeed(), MuonErrorMatrixAdjuster::makeTrack(), PFB::match(), CalorimetryManager::MuonMipSimulation(), reco::V0Filter::operator()(), PathToPlane2Order::operator()(), TauTagTools::filterChargedAndNeutralsByPt::operator()(), reco::LeafRefCandidateT< T >::overlap(), spr::parentSimTrack(), pos::PixelFEDTestDAC::PixelFEDTestDAC(), SiPixelHistoricInfoReader::plot(), PrintRecoObjects::print(), PFRootEventManagerColin::processHIGH_E_TAUS(), HFChamberSD::ProcessHits(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), MuonAlignmentFromReference::processMuonResidualsFromTrack(), ShallowTracksProducer::produce(), VZeroProducer::produce(), ShallowClustersProducer::produce(), ShallowSimTracksProducer::produce(), TauGenJetProducer::produce(), IsolatedPixelTrackCandidateProducer::produce(), TrajectorySeedProducer::produce(), MCParticleReplacer::produce(), ParticleReplacerParticleGun::produce(), TrackCandidateProducer::produce(), DeDxEstimatorProducer::produce(), DeDxEstimatorProducerPixelTripplet::produce(), L2MuonSeedGenerator::produce(), SiClusterTranslator::produce(), FakeTrackProducer< T >::produce(), PFElecTkProducer::produce(), TrajectorySeedFromMuonProducer::produce(), GoodSeedProducer::produce(), GenHIEventProducer::produce(), ShallowGainCalibration::produce(), TrackerToMuonPropagator::produce(), AlCaHOCalibProducer::produce(), spr::propagateECAL(), spr::propagateHCAL(), spr::propagateTracker(), spr::propagateTrackerEnd(), spr::propagateTrackToECAL(), spr::propagateTrackToHCAL(), L1MuDTAssignmentUnit::PtAU(), PFAlgo::reconstructCluster(), PFAlgo::reconstructTrack(), KalmanAlignmentTrackRefitter::refitSingleTracklet(), CosmicRegionalSeedGenerator::regions(), reco::TrackJet::resetCharge(), PixelFitterByConformalMappingAndLine::run(), TrackFitter::run(), PixelFitterByHelixProjections::run(), KFBasedPixelFitter::run(), L1MuonPixelTrackFitter::run(), DigiSimLinkAlgorithm::run(), ConversionTrackPairFinder::run(), L1MuGMTEtaProjectionUnit::run(), L1MuGMTPhiProjectionUnit::run(), CustomPDGParser::s_charge(), AddFourMomenta::set(), PFElectronAlgo::SetCandidates(), CSCXonStrip_MatchGatti::setupMatrix(), PFTauQualityCutWrapper::signalChargedObjects(), PFTauQualityCutWrapper::signalGammaObjects(), L1DummyProducer::SimpleDigi(), L1MuGMTLFPhiProLUT::SpecificLookup(), L1MuGMTMIAUEtaProLUT::SpecificLookup(), L1MuGMTMIAUPhiPro2LUT::SpecificLookup(), L1MuGMTMIAUPhiPro1LUT::SpecificLookup(), L1MuGMTMIAUPhiPro1LUT::SpecificLookup_cphi_fine(), L1MuGMTMIAUPhiPro1LUT::SpecificLookup_cphi_ofs(), L1MuGMTLFPhiProLUT::SpecificLookup_dphi(), L1MuGMTMIAUEtaProLUT::SpecificLookup_eta_sel(), L1MuGMTMIAUPhiPro2LUT::SpecificLookup_phi_sel(), TauValidation::spinEffectsZ(), TauValidation::tauProngs(), reco::PFDisplacedVertex::totalCharge(), FastTSGFromPropagation::trackerSeeds(), TreatSecondary::tracks(), reco::Conversion::tracksSigned_d0(), StoreSecondary::update(), CheckSecondary::update(), MuonSeedCreator::weightedPt(), and reco::writeSpecific().

44 {
45  double charge = 0;
46  for(unsigned int a=0;a<Ampls.size();a++){charge+=Ampls[a];}
47  return charge;
48 }
double charge(const std::vector< uint8_t > &Ampls)
double a
Definition: hdecay.h:121
bool DeDxDiscriminatorTools::IsFarFromBorder ( TrajectoryStateOnSurface  trajState,
const GeomDetUnit it 
)

Definition at line 57 of file DeDxDiscriminatorTools.cc.

References Surface::bounds(), gather_cfg::cout, Bounds::length(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localPosition(), Parameters::parameters, LocalTrajectoryError::positionError(), GeomDet::surface(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().

Referenced by DeDxDiscriminatorLearner::Learn().

58 {
59  if (dynamic_cast<const StripGeomDetUnit*>(it)==0 && dynamic_cast<const PixelGeomDetUnit*>(it)==0) {
60  std::cout << "this detID doesn't seem to belong to the Tracker" << std::endl;
61  return false;
62  }
63 
64  LocalPoint HitLocalPos = trajState.localPosition();
65  LocalError HitLocalError = trajState.localError().positionError() ;
66 
67  const BoundPlane plane = it->surface();
68  const TrapezoidalPlaneBounds* trapezoidalBounds( dynamic_cast<const TrapezoidalPlaneBounds*>(&(plane.bounds())));
69  const RectangularPlaneBounds* rectangularBounds( dynamic_cast<const RectangularPlaneBounds*>(&(plane.bounds())));
70 
71  double DistFromBorder = 1.0;
72  //double HalfWidth = it->surface().bounds().width() /2.0;
73  double HalfLength = it->surface().bounds().length() /2.0;
74 
75  if(trapezoidalBounds)
76  {
77  std::array<const float, 4> const & parameters = (*trapezoidalBounds).parameters();
78  HalfLength = parameters[3];
79  //double t = (HalfLength + HitLocalPos.y()) / (2*HalfLength) ;
80  //HalfWidth = parameters[0] + (parameters[1]-parameters[0]) * t;
81  }else if(rectangularBounds){
82  //HalfWidth = it->surface().bounds().width() /2.0;
83  HalfLength = it->surface().bounds().length() /2.0;
84  }else{return false;}
85 
86 // if (fabs(HitLocalPos.x())+HitLocalError.xx() >= (HalfWidth - DistFromBorder) ) return false;//Don't think is really necessary
87  if (fabs(HitLocalPos.y())+HitLocalError.yy() >= (HalfLength - DistFromBorder) ) return false;
88 
89  return true;
90 }
dictionary parameters
Definition: Parameters.py:2
virtual float length() const =0
T y() const
Definition: PV3DBase.h:63
const Bounds & bounds() const
Definition: Surface.h:128
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:35
LocalError positionError() const
float yy() const
Definition: LocalError.h:26
const LocalTrajectoryError & localError() const
tuple cout
Definition: gather_cfg.py:121
bool DeDxDiscriminatorTools::IsSaturatingStrip ( const std::vector< uint8_t > &  Ampls)

Definition at line 34 of file DeDxDiscriminatorTools.cc.

References i.

35 {
36  for(unsigned int i=0;i<Ampls.size();i++){
37  if(Ampls[i]>=254)return true;
38  }return false;
39 }
int i
Definition: DBlmapReader.cc:9
bool DeDxDiscriminatorTools::IsSaturatingStrip ( const vector< uint8_t > &  Ampls)

Definition at line 34 of file DeDxDiscriminatorTools.cc.

References i.

35 {
36  for(unsigned int i=0;i<Ampls.size();i++){
37  if(Ampls[i]>=254)return true;
38  }return false;
39 }
int i
Definition: DBlmapReader.cc:9
bool DeDxDiscriminatorTools::IsSpanningOver2APV ( unsigned int  FirstStrip,
unsigned int  ClusterSize 
)

Definition at line 8 of file DeDxDiscriminatorTools.cc.

Referenced by DeDxDiscriminatorLearner::Learn().

9 {
10  if(FirstStrip==0 ) return true;
11  if(FirstStrip==128 ) return true;
12  if(FirstStrip==256 ) return true;
13  if(FirstStrip==384 ) return true;
14  if(FirstStrip==512 ) return true;
15  if(FirstStrip==640 ) return true;
16 
17  if(FirstStrip<=127 && FirstStrip+ClusterSize>127) return true;
18  if(FirstStrip<=255 && FirstStrip+ClusterSize>255) return true;
19  if(FirstStrip<=383 && FirstStrip+ClusterSize>383) return true;
20  if(FirstStrip<=511 && FirstStrip+ClusterSize>511) return true;
21  if(FirstStrip<=639 && FirstStrip+ClusterSize>639) return true;
22 
23  if(FirstStrip+ClusterSize==127 ) return true;
24  if(FirstStrip+ClusterSize==255 ) return true;
25  if(FirstStrip+ClusterSize==383 ) return true;
26  if(FirstStrip+ClusterSize==511 ) return true;
27  if(FirstStrip+ClusterSize==639 ) return true;
28  if(FirstStrip+ClusterSize==767 ) return true;
29 
30  return false;
31 }
double DeDxDiscriminatorTools::path ( double  cosine,
double  thickness 
)

Definition at line 51 of file DeDxDiscriminatorTools.cc.

Referenced by DeDxDiscriminatorProducer::GetProbability(), and DeDxDiscriminatorLearner::Learn().

52 {
53  return (10.0*thickness)/fabs(cosine);
54 }