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(), pat::GenPlusSimParticleProducer::addGenParticle(), GEMDigiModel::addLinks(), CSCBaseElectronicsSim::addLinks(), PFMuonAlgo::addMissingMuons(), SiStripGainFromCalibTree::algoAnalyze(), DeDxDiscriminatorLearnerFromCalibTree::algoAnalyzeTheTree(), SiStripGainFromCalibTree::algoAnalyzeTheTree(), HiBasicGenTest::analyze(), EwkMuDQM::analyze(), ElectronSeedAnalyzer::analyze(), PhysicsObjectsMonitor::analyze(), BasicHepMCValidation::analyze(), DiMuonHistograms::analyze(), IsolatedParticlesGeneratedJets::analyze(), MBUEandQCDValidation::analyze(), HcalCorrPFCalculation::analyze(), ZMuMu_efficiencyAnalyzer::analyze(), __class__< T >::analyze(), DTTrigTest::analyze(), SiPixelTrackResidualSource::analyze(), HeavyFlavorValidation::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), ResolutionAnalyzer::analyze(), IsolatedGenParticles::analyze(), SiStripClusterToDigiProducer::applyGain(), ThreeThresholdAlgorithm::applyGains(), MuonSimHitProducer::applyMaterialEffects(), PhysicsObjectsMonitor::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(), MuonSeedFromRecHits::createSeed(), MuonSeedCreator::createSeed(), CosmicMuonSeedGenerator::createSeed(), OutInConversionSeedFinder::createSeedFTS(), CylindricalState::CylindricalState(), 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(), l1t::MuCondition::evaluateCondition(), AlignmentMonitorGeneric::event(), SiPixelTrackResidualModule::fill(), SiPixelClusterModule::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), HLTOfflineDQMTopDiLepton::MonitorDiLepton::fill(), SiPixelRecHitsValid::fillBarrel(), MuScleFit::fillComparisonHistograms(), SiPixelRecHitsValid::fillForward(), HLTOniaSource::fillInvariantMass(), SiStripMonitorTrack::fillMEs(), SiStripMonitorTrack::fillModMEs(), PlotMakerReco::fillPlots(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), SVTagInfoValidationAnalyzer::fillSimToReco(), EopVariables::fillVariables(), GenLeadTrackFilter::filter(), HighMultiplicityGenFilter::filter(), DYGenFilter::filter(), WZInterestingEventSelector::filter(), CSCEfficiency::filter(), Tau3MuReco::find3rdTrack(), SETFilter::findChi2(), Tau3MuReco::findCorrectPairing(), ConversionSeedFinder::findLayers(), V0Fitter::fitAll(), ResidualRefitting::freeTrajStateMuon(), DeDxTools::genericAverage(), pat::PATObject< ObjectType >::genParticleById(), reco::tau::RecoTauConstructor::get(), CaloSD::getAttenuation(), ECalSD::getBirkL3(), ConvertedPhotonProducer::getCircleCenter(), ZdcSD::getEnergyDeposit(), CastorSD::getEnergyDeposit(), IsolatedPixelTrackCandidateProducer::GetEtaPhiAtEcal(), PythiaFilterIsolatedTrack::GetEtaPhiAtEcal(), TrackDetectorAssociator::getFreeTrajectoryState(), HTrackAssociator::getFreeTrajectoryState(), HPDIonFeedbackSim::getIonFeedback(), DeDxDiscriminatorProducer::GetProbability(), tauImpactParameter::TrackHelixVertexFitter::getRefitLorentzVectorParticles(), tauImpactParameter::TrackHelixVertexFitter::getRefitTracks(), CSCDriftSim::getWireHit(), HFGflash::gfParameterization(), CalorimetryManager::HDShowerSimulation(), Generator::HepMC2G4(), HLTPMMassFilter::hltFilter(), PFDisplacedVertexHelper::identifyVertex(), SiTrivialInduceChargeOnStrips::induceVector(), Generator::isExoticNonDetectable(), AlignmentTrackSelector::isOkChargeStripHit(), PerigeeConversions::jacobianParameters2Cartesian(), PFDisplacedVertexHelper::lambdaCP(), DeDxDiscriminatorLearner::Learn(), SteppingHelixPropagator::loadState(), reco::PFTau3ProngSummary::M_12(), reco::PFTau3ProngSummary::M_13(), reco::PFTau3ProngSummary::M_23(), pat::PATGenCandsFromSimTracksProducer::makeGenParticle_(), CosmicSeedCreator::makeSeed(), MuonErrorMatrixAdjuster::makeTrack(), PFB::match(), CalorimetryManager::MuonMipSimulation(), reco::V0Filter::operator()(), PathToPlane2Order::operator()(), TauTagTools::filterChargedAndNeutralsByPt::operator()(), reco::LeafRefCandidateT< T >::overlap(), pat::PackedGenParticle::overlap(), pat::PackedCandidate::overlap(), spr::parentSimTrack(), pos::PixelFEDTestDAC::PixelFEDTestDAC(), SiPixelHistoricInfoReader::plot(), PrintRecoObjects::print(), HFChamberSD::ProcessHits(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), MuonAlignmentFromReference::processMuonResidualsFromTrack(), ShallowTracksProducer::produce(), VZeroProducer::produce(), ShallowSimTracksProducer::produce(), ShallowClustersProducer::produce(), TauGenJetProducer::produce(), ParticleReplacerParticleGun::produce(), IsolatedPixelTrackCandidateProducer::produce(), DeDxEstimatorProducer::produce(), DeDxEstimatorProducerPixelTripplet::produce(), SiClusterTranslator::produce(), TrackCandidateProducer::produce(), TrajectorySeedProducer::produce(), FakeTrackProducer< T >::produce(), HLTL1MuonSelector::produce(), TrajectorySeedFromMuonProducer::produce(), GenHIEventProducer::produce(), PFElecTkProducer::produce(), L2MuonSeedGenerator::produce(), GoodSeedProducer::produce(), FastPrimaryVertexWithWeightsProducer::produce(), l1t::GenToInputProducer::produce(), ShallowGainCalibration::produce(), TrackerToMuonPropagator::produce(), PFTau3ProngReco::produce(), AlCaHOCalibProducer::produce(), spr::propagateECAL(), spr::propagateHCAL(), spr::propagateTracker(), spr::propagateTrackerEnd(), spr::propagateTrackToECAL(), spr::propagateTrackToHCAL(), pat::PackedCandidate::pseudoTrack(), L1MuDTAssignmentUnit::PtAU(), PFAlgo::reconstructCluster(), PFAlgo::reconstructTrack(), KalmanAlignmentTrackRefitter::refitSingleTracklet(), CosmicRegionalSeedGenerator::regions(), reco::TrackJet::resetCharge(), PixelFitterByConformalMappingAndLine::run(), TrackFitter::run(), KFBasedPixelFitter::run(), PixelFitterByHelixProjections::run(), DigiSimLinkAlgorithm::run(), ConversionTrackPairFinder::run(), L1MuonPixelTrackFitter::run(), L1MuGMTEtaProjectionUnit::run(), L1MuGMTPhiProjectionUnit::run(), CustomPDGParser::s_charge(), AddFourMomenta::set(), PFElectronAlgo::SetCandidates(), l1t::Muon::setHwCharge(), CSCXonStrip_MatchGatti::setupMatrix(), 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::spinEffectsZH(), reco::PFTau3ProngSummary::Tau_Charge(), reco::PFDisplacedVertex::totalCharge(), FastTSGFromPropagation::trackerSeeds(), TreatSecondary::tracks(), unpackMuons(), 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(), pat::GenPlusSimParticleProducer::addGenParticle(), GEMDigiModel::addLinks(), CSCBaseElectronicsSim::addLinks(), PFMuonAlgo::addMissingMuons(), SiStripGainFromCalibTree::algoAnalyze(), DeDxDiscriminatorLearnerFromCalibTree::algoAnalyzeTheTree(), SiStripGainFromCalibTree::algoAnalyzeTheTree(), HiBasicGenTest::analyze(), EwkMuDQM::analyze(), ElectronSeedAnalyzer::analyze(), PhysicsObjectsMonitor::analyze(), BasicHepMCValidation::analyze(), DiMuonHistograms::analyze(), IsolatedParticlesGeneratedJets::analyze(), MBUEandQCDValidation::analyze(), HcalCorrPFCalculation::analyze(), ZMuMu_efficiencyAnalyzer::analyze(), __class__< T >::analyze(), DTTrigTest::analyze(), SiPixelTrackResidualSource::analyze(), HeavyFlavorValidation::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), ResolutionAnalyzer::analyze(), IsolatedGenParticles::analyze(), SiStripClusterToDigiProducer::applyGain(), ThreeThresholdAlgorithm::applyGains(), MuonSimHitProducer::applyMaterialEffects(), PhysicsObjectsMonitor::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(), MuonSeedFromRecHits::createSeed(), MuonSeedCreator::createSeed(), CosmicMuonSeedGenerator::createSeed(), OutInConversionSeedFinder::createSeedFTS(), CylindricalState::CylindricalState(), 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(), l1t::MuCondition::evaluateCondition(), AlignmentMonitorGeneric::event(), SiPixelTrackResidualModule::fill(), SiPixelClusterModule::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), HLTOfflineDQMTopDiLepton::MonitorDiLepton::fill(), SiPixelRecHitsValid::fillBarrel(), MuScleFit::fillComparisonHistograms(), SiPixelRecHitsValid::fillForward(), HLTOniaSource::fillInvariantMass(), SiStripMonitorTrack::fillMEs(), SiStripMonitorTrack::fillModMEs(), PlotMakerReco::fillPlots(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), SVTagInfoValidationAnalyzer::fillSimToReco(), EopVariables::fillVariables(), GenLeadTrackFilter::filter(), HighMultiplicityGenFilter::filter(), DYGenFilter::filter(), WZInterestingEventSelector::filter(), CSCEfficiency::filter(), Tau3MuReco::find3rdTrack(), SETFilter::findChi2(), Tau3MuReco::findCorrectPairing(), ConversionSeedFinder::findLayers(), V0Fitter::fitAll(), ResidualRefitting::freeTrajStateMuon(), DeDxTools::genericAverage(), pat::PATObject< ObjectType >::genParticleById(), reco::tau::RecoTauConstructor::get(), CaloSD::getAttenuation(), ECalSD::getBirkL3(), ConvertedPhotonProducer::getCircleCenter(), ZdcSD::getEnergyDeposit(), CastorSD::getEnergyDeposit(), IsolatedPixelTrackCandidateProducer::GetEtaPhiAtEcal(), PythiaFilterIsolatedTrack::GetEtaPhiAtEcal(), TrackDetectorAssociator::getFreeTrajectoryState(), HTrackAssociator::getFreeTrajectoryState(), HPDIonFeedbackSim::getIonFeedback(), DeDxDiscriminatorProducer::GetProbability(), tauImpactParameter::TrackHelixVertexFitter::getRefitLorentzVectorParticles(), tauImpactParameter::TrackHelixVertexFitter::getRefitTracks(), CSCDriftSim::getWireHit(), HFGflash::gfParameterization(), CalorimetryManager::HDShowerSimulation(), Generator::HepMC2G4(), HLTPMMassFilter::hltFilter(), PFDisplacedVertexHelper::identifyVertex(), SiTrivialInduceChargeOnStrips::induceVector(), Generator::isExoticNonDetectable(), AlignmentTrackSelector::isOkChargeStripHit(), PerigeeConversions::jacobianParameters2Cartesian(), PFDisplacedVertexHelper::lambdaCP(), DeDxDiscriminatorLearner::Learn(), SteppingHelixPropagator::loadState(), reco::PFTau3ProngSummary::M_12(), reco::PFTau3ProngSummary::M_13(), reco::PFTau3ProngSummary::M_23(), pat::PATGenCandsFromSimTracksProducer::makeGenParticle_(), CosmicSeedCreator::makeSeed(), MuonErrorMatrixAdjuster::makeTrack(), PFB::match(), CalorimetryManager::MuonMipSimulation(), reco::V0Filter::operator()(), PathToPlane2Order::operator()(), TauTagTools::filterChargedAndNeutralsByPt::operator()(), reco::LeafRefCandidateT< T >::overlap(), pat::PackedGenParticle::overlap(), pat::PackedCandidate::overlap(), spr::parentSimTrack(), pos::PixelFEDTestDAC::PixelFEDTestDAC(), SiPixelHistoricInfoReader::plot(), PrintRecoObjects::print(), HFChamberSD::ProcessHits(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), MuonAlignmentFromReference::processMuonResidualsFromTrack(), ShallowTracksProducer::produce(), VZeroProducer::produce(), ShallowSimTracksProducer::produce(), ShallowClustersProducer::produce(), TauGenJetProducer::produce(), ParticleReplacerParticleGun::produce(), IsolatedPixelTrackCandidateProducer::produce(), DeDxEstimatorProducer::produce(), DeDxEstimatorProducerPixelTripplet::produce(), SiClusterTranslator::produce(), TrackCandidateProducer::produce(), TrajectorySeedProducer::produce(), FakeTrackProducer< T >::produce(), HLTL1MuonSelector::produce(), TrajectorySeedFromMuonProducer::produce(), GenHIEventProducer::produce(), PFElecTkProducer::produce(), L2MuonSeedGenerator::produce(), GoodSeedProducer::produce(), FastPrimaryVertexWithWeightsProducer::produce(), l1t::GenToInputProducer::produce(), ShallowGainCalibration::produce(), TrackerToMuonPropagator::produce(), PFTau3ProngReco::produce(), AlCaHOCalibProducer::produce(), spr::propagateECAL(), spr::propagateHCAL(), spr::propagateTracker(), spr::propagateTrackerEnd(), spr::propagateTrackToECAL(), spr::propagateTrackToHCAL(), pat::PackedCandidate::pseudoTrack(), L1MuDTAssignmentUnit::PtAU(), PFAlgo::reconstructCluster(), PFAlgo::reconstructTrack(), KalmanAlignmentTrackRefitter::refitSingleTracklet(), CosmicRegionalSeedGenerator::regions(), reco::TrackJet::resetCharge(), PixelFitterByConformalMappingAndLine::run(), TrackFitter::run(), KFBasedPixelFitter::run(), PixelFitterByHelixProjections::run(), DigiSimLinkAlgorithm::run(), ConversionTrackPairFinder::run(), L1MuonPixelTrackFitter::run(), L1MuGMTEtaProjectionUnit::run(), L1MuGMTPhiProjectionUnit::run(), CustomPDGParser::s_charge(), AddFourMomenta::set(), PFElectronAlgo::SetCandidates(), l1t::Muon::setHwCharge(), CSCXonStrip_MatchGatti::setupMatrix(), 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::spinEffectsZH(), reco::PFTau3ProngSummary::Tau_Charge(), reco::PFDisplacedVertex::totalCharge(), FastTSGFromPropagation::trackerSeeds(), TreatSecondary::tracks(), unpackMuons(), 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 }