CMS 3D CMS Logo

Namespaces | Functions | Variables

/data/refman/pasoursint/CMSSW_5_3_8_patch3/src/PhysicsTools/MVATrainer/src/MVATrainer.cc File Reference

#include <assert.h>
#include <functional>
#include <ext/functional>
#include <algorithm>
#include <iostream>
#include <cstdarg>
#include <cstring>
#include <cstdio>
#include <string>
#include <vector>
#include <memory>
#include <map>
#include <set>
#include <xercesc/dom/DOM.hpp>
#include <TRandom.h>
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "PhysicsTools/MVAComputer/interface/AtomicId.h"
#include "PhysicsTools/MVAComputer/interface/BitSet.h"
#include "PhysicsTools/MVAComputer/interface/Calibration.h"
#include "PhysicsTools/MVAComputer/interface/Variable.h"
#include "PhysicsTools/MVATrainer/interface/Interceptor.h"
#include "PhysicsTools/MVATrainer/interface/XMLDocument.h"
#include "PhysicsTools/MVATrainer/interface/XMLSimpleStr.h"
#include "PhysicsTools/MVATrainer/interface/XMLUniStr.h"
#include "PhysicsTools/MVATrainer/interface/Source.h"
#include "PhysicsTools/MVATrainer/interface/SourceVariable.h"
#include "PhysicsTools/MVATrainer/interface/TrainProcessor.h"
#include "PhysicsTools/MVATrainer/interface/TrainerMonitoring.h"
#include "PhysicsTools/MVATrainer/interface/MVATrainer.h"

Go to the source code of this file.

Namespaces

namespace  PhysicsTools

Functions

static std::string PhysicsTools::escape (const std::string &in)
static bool PhysicsTools::isMagic (AtomicId id)
static std::string PhysicsTools::stdStringPrintf (const char *format,...)
static std::string PhysicsTools::stdStringVPrintf (const char *format, std::va_list va)

Variables

static const AtomicId PhysicsTools::kOutputId ("__OUTPUT__")

Variable Documentation

MVATrainerComputer* calib

Definition at line 64 of file MVATrainer.cc.

Referenced by HFLightCalRand::analyze(), HcalDetDiagLaserMonitor::analyze(), HcalLedAnalyzer::analyze(), HFLightCal::analyze(), JetTagMVATreeTrainer::analyze(), HcalDetDiagLEDMonitor::analyze(), JetTagMVATrainer::analyze(), HFPreLightCal::analyze(), PhysicsTools::MVATrainer::connectProcessors(), PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >::Factory::create(), PhysicsTools::MVATrainer::doneTraining(), Pi0FixedMassWindowCalibration::duringLoop(), pftools::CalibCompare::evaluateCalibrations(), PhysicsTools::MVATrainer::getCalibration(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), EcalTrivialConditionRetriever::getIntercalibErrorsFromConfiguration(), EcalTrivialConditionRetriever::getTimeCalibConstantsFromConfiguration(), EcalTrivialConditionRetriever::getTimeCalibErrorsFromConfiguration(), PhysicsTools::TreeTrainer::iteration(), EcalEndcapRecHitsMaker::loadPCaloHits(), EcalBarrelRecHitsMaker::loadPCaloHits(), PhysicsTools::MVATrainer::makeTrainCalibration(), EcalEndcapRecHitsMaker::noisifySuperCrystals(), EcalBarrelRecHitsMaker::noisifyTriggerTower(), PhysicsTools::MVATrainerContainerLooperImpl< Record_t >::produce(), EcalEndcapRecHitsMaker::randomNoisifier(), EcalBarrelRecHitsMaker::randomNoisifier(), PhysicsTools::MVAComputer::readCalibration(), StoreEcalCondition::readEcalIntercalibConstantsFromFile(), StoreEcalCondition::readEcalIntercalibConstantsMCFromFile(), pftools::DetectorElement::setCalib(), pftools::DetectorElement::setCalibCore(), HcalCalibrationsSet::setCalibrations(), CastorCalibrationsSet::setCalibrations(), CastorCalibrationWidthsSet::setCalibrationWidths(), HcalCalibrationWidthsSet::setCalibrationWidths(), GenericMVAJetTagComputer::setEventSetup(), PhysicsTools::MVAComputer::setup(), and PhysicsTools::MVAComputerCache::update().

std::vector<T*> clean
bool doAutoSave

Definition at line 137 of file MVATrainer.cc.

std::vector<Variable::Flags> flags
std::vector<Interceptor> interceptors

Definition at line 134 of file MVATrainer.cc.

Referenced by PhysicsTools::MVATrainer::makeTrainCalibration().

unsigned int nConfigured

Definition at line 136 of file MVATrainer.cc.

TrainProcessor* const proc
TRandom random
double split

Definition at line 140 of file MVATrainer.cc.

unsigned int targetIdx

Definition at line 98 of file MVATrainer.cc.

std::vector<std::vector<double> > tmp

Definition at line 100 of file MVATrainer.cc.

Referenced by qtxml::_toString(), _toString(), SiStripQuality::add(), RawParticleTypeFilter::addAccept(), SiStripConfigDb::addAnalysisDescriptions(), SiStripConfigDb::addDeviceDescriptions(), SiStripConfigDb::addFedConnections(), SiStripConfigDb::addFedDescriptions(), RawParticleTypeFilter::addReject(), CmsShowNavigator::addTo(), AllocPatterns(), PedestalsAlgorithm::analyse(), FedCablingAlgorithm::analyse(), ApvTimingAlgorithm::analyse(), PedsFullNoiseAlgorithm::analyse(), PedsOnlyAlgorithm::analyse(), FastFedCablingAlgorithm::analyse(), VpspScanAlgorithm::analyse(), NoiseAlgorithm::analyse(), FedTimingAlgorithm::analyse(), OptoScanAlgorithm::analyse(), ApvLatencyAlgorithm::analyse(), DaqScopeModeAlgorithm::analyse(), RctDigiToRctText::analyze(), JetCorrectorDemo::analyze(), Vx3DHLTAnalyzer::analyze(), SiStripThresholdBuilder::analyze(), FactorizedJetCorrectorDemo::analyze(), HitEff::analyze(), MuonTrackValidator::analyze(), HLTTauDQMCaloPlotter::analyze(), TestOutliers::analyze(), SiStripMonitorPedestals::analyze(), EgammaSCEnergyCorrectionAlgo::applyCorrection(), HLTTauDQMAutomation::AutoCompleteConfig(), HLTTauDQMAutomation::AutoCompleteMatching(), Chamber_AutoCorrMat::autocorrmat(), l1t::OMDSReader::basicQuery(), l1t::OMDSReader::basicQueryGenericKey(), l1t::OMDSReader::basicQueryView(), TauValidation::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload::beginJob(), PhysicsPerformanceDBWriterTFormula_fromfile_WPandPL::beginJob(), PhysicsPerformanceDBWriterFromFile_WPandPayload_IOV::beginJob(), DeDxDiscriminatorProducer::beginRun(), JetCorrectorParameters::binIndex(), PeriodicBinFinderInPhi< float >::binIndex(), HLTTauDQMSummaryPlotter::bookEfficiencyHisto(), SeedForPhotonConversionFromQuadruplets::bubbleReverseSortVsPhi(), SeedForPhotonConversionFromQuadruplets::bubbleSortVsPhi(), PFClusterAlgo::buildPFClusters(), pos::PixelNameTranslation::buildROCsFromFEDChannel(), L1TDTTFClient::buildSummaries(), RctTextToRctDigi::bxSynchro(), RazorVarProducer::CalcR(), HLTRFilter::CalcR(), ClusterShapeAlgo::Calculate_lat(), l1extra::L1ParticleMap::candidateCombo(), Folder::cd(), HcalNumberingFromDDD::cell(), PerformancePayloadFromBinnedTFormula::check(), HcalDetDiagPedestalMonitor::CheckStatus(), EventShapeVariables::circularity(), HitPairGenerator::clear(), ora::MultiIndexDataTrie::clear(), Grid1D::closestNode(), HcalQie::codeToQ(), MuonCkfTrajectoryBuilder::collectMeasurement(), MultiVertexStateCombiner::combine(), SiStripQuality::compact(), MuRingForwardDoubleLayer::compatible(), ForwardDetLayer::compatible(), MuonDTSeedFromRecHits::computePtWithoutVtx(), ConfigurableTrimmedKalmanFinder::configure(), ora::ConnectionPool::connect(), SimpleJetCorrector::correction(), SimpleJetCorrector::correctionBin(), CountLexemes(), FineDelayHistosUsingDb::create(), PedestalsHistosUsingDb::create(), PedsFullNoiseHistosUsingDb::create(), FastFedCablingHistosUsingDb::create(), VpspScanHistosUsingDb::create(), CalibrationHistosUsingDb::create(), NoiseHistosUsingDb::create(), PedsOnlyHistosUsingDb::create(), LatencyHistosUsingDb::create(), DDI::Store< N, I, K >::create(), ApvTimingHistosUsingDb::create(), OptoScanHistosUsingDb::create(), TruncatedPyramid::createCorners(), HcalHLXMaskDbInterface::createData(), HcalHLXMaskDbInterface::createDataset(), SiStripCommissioningOfflineDbClient::createHistos(), ThirdHitPredictionFromInvLine::crossing(), CSCRecHit2D::CSCRecHit2D(), ThirdHitPredictionFromCircle::curvature(), vdt::d2ll(), DDTokenize(), HcalNumberingFromDDD::deltaEta(), PhysicsTools::Spline::Segment::deriv(), CommissioningHistosUsingDb::detInfo(), CommissioningHistosUsingDb::deviceIsPresent(), MFGrid3D::dimensions(), HelixBarrelPlaneCrossingByCircle::direction(), SiStripCommissioningSource::directory(), CalibrationScanTask::directory(), CalibrationTask::directory(), HcalSimHitsValidation::dPhiWsign(), HcalRecHitsValidation::dPhiWsign(), HcalRecHitsAnalyzer::dPhiWsign(), HcalDigiTester::dR(), HcalSimHitsValidation::dR(), CaloTowersValidation::dR(), HcalRecHitsValidation::dR(), CaloTowersAnalyzer::dR(), HcalRecHitsAnalyzer::dR(), AlcaBeamMonitorClient::endLuminosityBlock(), MuonResidualsFitter::eraseNotSelectedResiduals(), PhysicsTools::Spline::Segment::eval(), DDTECModuleAlgo::execute(), ora::OraDatabaseSchema::existsMainTable(), ora::PoolDatabaseSchema::existsMainTable(), CalibrationAlgorithm::extract(), SamplingAlgorithm::extract(), TFParams::f3deg(), cscdqm::Utility::fastHash(), pos::PixelCalibConfiguration::fedCardsAndChannels(), MTVHistoProducerAlgoForTracker::fill_generic_recoTrack_histos(), SiStripCommissioningSource::fillCablingHistos(), HLXMonitor::FillHistograms(), PhysicsTools::MVATrainer::fillInputVars(), QcdLowPtDQM::fillPixelClusterInfos(), HICTrajectoryBuilder::findCompatibleMeasurements(), CkfTrajectoryBuilder::findCompatibleMeasurements(), NuclearInteractionFinder::findMeasurementsFromTSOS(), TSFit::fit_third_degree_polynomial(), RBCInput::force(), TSFit::fpol3dg(), fromPtEtaPhiToPxPyPz(), MuScleFitUtils::fromPtEtaPhiToPxPyPz(), ora::Version::fromString(), ora::Guid::fromTime(), utils::fullCloneFunc(), utils::fullClonePdf(), pos::PixelTrimAllPixels::generateConfiguration(), pos::PixelTrimCommon::generateConfiguration(), GeometricSearchDetMeasurements::get(), pos::PixelConfigFile::getAliases(), pos::PixelConfigFile::getAliases_map(), DynamicTruncation::getBest(), GetBFGSH(), HcalQie::getCode(), ApvAnalysisFactory::getCommonMode(), ApvAnalysisFactory::getCommonModeSlope(), CustomParticleFactory::getDecayTable(), SiStripConfigDb::getDeviceDescriptions(), EcalClusterTools::getDPhiEndcap(), HcalQie::getEnergy(), HcalNumberingFromDDD::getEta(), HcalNumberingFromDDD::getEtaTable(), pos::PixelNameTranslation::getFEDsAndChannels(), PVFitter::getFitLSRange(), SimG4HcalValidation::getHcalScale(), HCalSD::getHitFibreBundle(), HCalSD::getHitPMT(), getLexemes(), FallbackLinearizationPointFinder::getLinearizationPoint(), CustomParticleFactory::getMassTable(), HcalSubdetDigiMonitor::getMeElementBinContent(), HcalTB06BeamSD::getNames(), MaterialBudgetHcalHistos::getNames(), HCalSD::getNames(), GetNetStructure(), SteppingHelixPropagator::getNextState(), getnLexemes(), ApvAnalysisFactory::getNoise(), pftools::IO::GetOpt(), IO::GetOpt(), ApvAnalysisFactory::getPedestal(), HLTTauDQMFilter::getPSets(), ApvAnalysisFactory::getRawNoise(), HLTTauDQMFilter::getRefPSet(), HcalQie::getShape(), HLTTauDQMFilter::getSummaryPSet(), HcalTBNumberingScheme::getUnitIDs(), CommandLine::getVector(), pos::PixelAliasList::getVersionAliases(), LayerMeasurements::groupedMeasurements(), ora::guidFromTime(), FWGLEventHandler::HandleKey(), FWPopupMenu::HandleKey(), HcalRealisticZS::HcalRealisticZS(), HelixBarrelCylinderCrossing::HelixBarrelCylinderCrossing(), HLTTauDQMLitePathPlotter::HLTTauDQMLitePathPlotter(), HLTTauDQMPathPlotter::HLTTauDQMPathPlotter(), evf::iDie::iChokeMiniInterface(), edm::ProcessHistory::id(), edm::Parentage::id(), edm::ProcessConfiguration::id(), FactorizedJetCorrector::initCorrectors(), ThePEGInterface::initGenerator(), SimpleConeBounds::inside(), SimpleCylinderBounds::inside(), TrapezoidalPlaneBounds::inside(), GeneralTrapezoidalPlaneBounds::inside(), DiskSectorBounds::inside(), PhysicsTools::Spline::Segment::integral(), RPCConst::intToString(), SimpleJetCorrector::invert(), HFCherenkov::isApplicable(), HSCPHLTFilter::isDuplicate(), ora::OId::isOId(), JetCorrectorParameters::JetCorrectorParameters(), EcalClusterTools::lat(), HCalSD::layerWeight(), LHEAnalyzer::LHEAnalyzer(), IPTools::linearImpactParameter(), vdt::ll2d(), cond::PayloadRef< std::vector< cond::Time_t > >::load(), HcalNumberingFromDDD::loadGeometry(), TruncatedPyramid::localCornersReflection(), TruncatedPyramid::localCornersSwap(), SMS::location(), main(), EcalElectronicsMapper::makeMapFromVectors(), L1MuGMTLUT::MakeSubClass(), pos::PixelROCMaskBits::mask(), AutoCorrMat::mat(), spu::md5_File(), jpt::Efficiency::meanE(), MLP_Test(), L1EmulBias::ModifyCollection(), MonitorElementsDb::MonitorElementsDb(), MuonEtaRange::MuonEtaRange(), JetCorrectorParameters::neighbourBin(), edm::StreamerInputFile::newHeader(), DTTFParametersOnlineProd::newObject(), Combinatorics::next_permutation(), HcalCellType::nPhiMissingBins(), AlignmentMonitorMuonSystemMap1D::num02d(), pat::ObjectResolutionCalc::ObjectResolutionCalc(), FastCandMatcher< C >::operator()(), cond::IterHelp::operator()(), CandMatcherBase< C1, C2 >::operator()(), MultiClusterizer1D< T >::operator()(), ROOT::Math::CholeskyDecompHelpers::_inverter< F, N, M >::operator()(), OuterHitCompatibility::operator()(), ROOT::Math::CholeskyDecompHelpers::_decomposer< F, N, M >::operator()(), SaturationFcn::operator()(), OutermostClusterizer1D< T >::operator()(), ROOT::Math::Transform3DPJ::operator*(), operator+(), CaloRecHitMetaCollectionV::Iterator::operator++(), bistream_iterator< T >::operator++(), CaloRecHitMetaCollectionV::Iterator::operator--(), TrajectorySeed::operator=(), binary_ifstream::operator>>(), reco::utilsNew::CandMatcher< C >::operator[](), SimpleSAXParser::parse(), cscdqm::Collection::ParseAxisLabels(), FactorizedJetCorrector::parseLevels(), cond::parseToken(), HcalRecHitsAnalyzer::phi12(), HcalSimHitsValidation::phi12(), HcalRecHitsValidation::phi12(), L1MuDTTrackSegPhi::phiValue(), pos::PixelCalibConfiguration::PixelCalibConfiguration(), pos::PixelDACSettings::PixelDACSettings(), pos::PixelDelay25Calib::PixelDelay25Calib(), pos::PixelFECConfig::PixelFECConfig(), pos::PixelFEDConfig::PixelFEDConfig(), pos::PixelMaskAllPixels::PixelMaskAllPixels(), pos::PixelNameTranslation::PixelNameTranslation(), pos::PixelROCName::PixelROCName(), pos::PixelTBMSettings::PixelTBMSettings(), pos::PixelTKFECConfig::PixelTKFECConfig(), pos::PixelTrimAllPixels::PixelTrimAllPixels(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::post_insert(), CommandLine::print(), SiStripConfigDb::printAnalysisDescriptions(), SiStripConfigDb::printDeviceDescriptions(), SiStripConfigDb::printFedConnections(), SiStripConfigDb::printFedDescriptions(), sipixelobjects::PixelFEDLink::printForMap(), L1Comparator::process(), CastorLEDMonitor::processEvent(), SourceCardTextToRctDigi::produce(), MuonSeedOrcaPatternRecognition::produce(), GtPsbTextToDigi::produce(), GoodSeedProducer::produce(), L2TauJetsMerger::produce(), HLTTauRefCombiner::produce(), RctTextToRctDigi::produce(), ConvBremSeedProducer::produce(), Strip1DMeasurementTransformator::projectionMatrix(), StraightLinePropagator::propagatedState(), SiStripDbParams::pset(), ThePEGInterface::pthat(), TSGForRoadSearch::pushTrajectorySeed(), HDQMSummary::put(), SiStripSummary::put(), RawParticleTypeFilter::RawParticleTypeFilter(), SimG4HcalHitJetFinder::rDist(), pos::PixelROCTrimBits::read(), pos::PixelROCDACSettings::read(), ora::UniqueRefReader::read(), pos::PixelConfigList::readfile(), DTTPGLutFile::readHex(), L1TriggerLutFile::readHex(), DTTPGLutFile::readInteger(), L1TriggerLutFile::readInteger(), L1TriggerLutFile::readString(), DTTPGLutFile::readString(), PFAlgo::reconstructCluster(), TrajectorySegmentBuilder::redoMeasurements(), RoadSearchSeedFinderAlgorithm::RoadSearchSeedFinderAlgorithm(), pos::PixelNameTranslation::ROCNameFromFEDChannelROC(), pos::PixelNameTranslation::ROCNameFromFEDChannelROCExists(), Combinatorics::Rotate(), DDEcalEndcapTrap::rotateX(), DDEcalEndcapTrap::rotateY(), HcalTB04Analysis::scale(), CosmicMuonTrajectoryBuilder::selectHits(), SiStripBaseCondObjDQM::selectModules(), HCalSD::setDetUnitId(), edm::eventsetup::DependentRecordIntervalFinder::setIntervalFor(), GammaFunctionGenerator::setParameters(), pos::PixelTBMSettings::setROCName(), BaseNumericalRandomGenerator::setSubInterval(), pos::PixelROCTrimBits::setTrim(), SiStripCondObjBuilderFromDb::setValuesApvTiming(), EcalSeverityLevelAlgo::severityLevel(), HcalQie::shape(), CSCCFEBStatusDigi::ShiftSel(), edm::service::SiteLocalConfigService::SiteLocalConfigService(), smearFunctionType3::smear(), smearFunctionType4::smear(), smearFunctionType5::smear(), smearFunctionType1::smear(), smearFunctionType2::smear(), PhysicsTools::LeastSquares::solveFisher(), PhysicsTools::LeastSquares::solveRotation(), edm::DataFrameContainer::sort(), KalmanAlignmentTrackRefitter::sortRecHits(), RoadMaker::SortRingsIntoLayers(), cscdqm::EventProcessor::standbyEfficiencyHistos(), FastLinearCMNSubtractor::subtract_(), MedianCMNSubtractor::subtract_(), PercentileCMNSubtractor::subtract_(), SiStripQuality::subtraction(), KDTreeLinkerAlgo::swap(), DDI::rep_type< DDName, pimpl_type >::swap(), HcalTB04Analysis::timeOfFlight(), HcalTestAnalysis::timeOfFlight(), spr::timeOfFlight(), HcalTrigTowerGeometry::towerEtaBounds(), TrackAssociatorByHits::TrackAssociatorByHits(), reco::IsolatedTauTagInfo::tracksInCone(), MuonTransientTrackingRecHit::transientHits(), pos::PixelROCTrimBits::trim(), TTUEmulator::TTUEmulator(), EcalHitMaker::unbalancedDirection(), HcalNumberingFromDDD::unitID(), ThirdHitPredictionFromInvLine::MappedPoint< T >::unmap(), ConformalMappingFit::MappedPoint< T >::unmap(), HcalTestAnalysis::update(), ApvAnalysis::updateCalibration(), cscdqm::EventProcessor::updateEfficiencyHistos(), CkfTrajectoryBuilder::updateTrajectory(), HICTrajectoryBuilder::updateTrajectory(), SiStripCommissioningOfflineDbClient::uploadToConfigDb(), CylinderFromSectorMFGrid::valueInTesla(), reco::isodeposit::AngleCone::veto(), reco::isodeposit::AngleConeVeto::veto(), GctFormatTranslateMCLegacy::writeGctOutJetBlock(), HcalMonitorClient::writeHtml(), cscdqm::EventProcessor::writeShifterHistograms(), and LumiProducer::x2s().

unsigned int weightIdx

Definition at line 99 of file MVATrainer.cc.