AliRoot Core  3dc7879 (3dc7879)
kNNTest.C File Reference
#include <malloc.h>
#include "TSystem.h"
#include "TFile.h"
#include "TTree.h"
#include "TH2I.h"
#include "TLegend.h"
#include "TRandom.h"
#include "TString.h"
#include "TGraph.h"
#include "TMarker.h"
#include "TStopwatch.h"
#include "../src/TKDPDF.h"
#include "../src/TKDTree.h"
Include dependency graph for kNNTest.C:

Go to the source code of this file.

Functions

void kNNTest (const int np=10000, const int ndim=2)
 
void kNNDraw (const Float_t *p, const int kNN=20)
 
void build (const Int_t ndim=2, const Int_t nstat=1000000)
 
Float_t Mem ()
 

Variables

Float_t p [] ={1.4, -.6}
 

Function Documentation

void build ( const Int_t  ndim = 2,
const Int_t  nstat = 1000000 
)

Definition at line 184 of file kNNTest.C.

void kNNDraw ( const Float_t *  p,
const int  kNN = 20 
)

Definition at line 134 of file kNNTest.C.

void kNNTest ( const int  np = 10000,
const int  ndim = 2 
)

Definition at line 23 of file kNNTest.C.

Float_t Mem ( )

Definition at line 175 of file kNNTest.C.

Referenced by kNNDraw().

Variable Documentation

Float_t p[] ={1.4, -.6}

Definition at line 133 of file kNNTest.C.

Referenced by AliESDtrackCuts::AcceptTrack(), AliESDv0Cuts::AcceptV0(), AliESDtrackCuts::AcceptVTrack(), AccessOneByOne(), AliMUONTrackerData::Add1D(), AliMUONTrackerData::Add2D(), AliQADataMaker::Add2List(), AliAODExtension::AddBranch(), AliMUONCluster::AddCluster(), AliMUONQAMappingCheck::AddClusterLocation(), AliAnalysisAlien::AddIncludePath(), AliMUONPreClusterFinderV2::AddPad(), AliMUONCluster::AddPad(), AliESDcascade::AliESDcascade(), AliESDtrack::AliESDtrack(), Geometry::Align(), AliMUONDigitCalibrator::AliMUONDigitCalibrator(), AliTPCCalibViewerGUItimeAddAliasFrame::AliTPCCalibViewerGUItimeAddAliasFrame(), AliVParticle::AliVParticle(), AliMUONCluster::AsString(), TKDInterpolator::Build(), AliTPCExBExact::CalculateDistortion(), AliESDv0KineCuts::CaseLambda(), AliAODv0KineCuts::CaseLambda(), AliMUONCheck::CheckKine(), AliESDpid::CheckTOFMatching(), AliMUONPainterMasterFrame::Clicked(), AliESDpid::CombinePID(), AliMUONAlignmentCompareDialog::CompareAlignment(), AliMUONPainterGroup::ComputeDataRange(), AliMUONPainterMatrix::ComputeDataRange(), AliPIDCombined::ComputeProbabilities(), AliExternalTrackParam::ConstrainToVertex(), AliKFParticleBase::ConstructGammaBz(), AliKFVertex::ConstructPrimaryVertex(), AliMUONCluster::Contains(), AliAnalysisTaskESDfilter::ConvertGlobalConstrainedTracks(), AliAnalysisTaskESDfilter::ConvertKinks(), AliAnalysisTaskESDfilter::ConvertTPCOnlyTracks(), AliAnalysisTaskESDfilter::ConvertTracks(), AliMUONVPainter::Copy(), AliMUONCluster::Copy(), AliMUONTrackExtrap::CorrectELossEffectInAbsorber(), AliExternalTrackParam::CorrectForMeanMaterialdEdx(), AliRelAlignerKalman::CorrectTrack(), AliMUONContourHandler::CreateContourList(), AliTPCv1::CreateGeometry(), AliMUONTrackerConditionDataMaker::CreateHVStore(), AliMUONTrackerConditionDataMaker::CreateLVStore(), AliMUONPainterDataSourceFrame::CreateRawDataSource(), Ring::CreateShape(), AliMpHelper::Decode(), AliMUONVPainter::Detach(), AliEMCALTriggerElectronics::Digits2Trigger(), DIMUONFakes(), AliTestChildProc::DoCrash(), DrawResMomVsMom(), AliESDtrack::E(), AliTPCCalibTCF::Equalization(), TKDInterpolatorBase::Eval(), AliMUONPainterMatrixFrame::EventInfo(), AliFMDAlignFaker::Exec(), AliMUONTrackerConditionDataMaker::ExpandConfig(), AliHMPIDPIDResponse::ExpectedSignal(), fastMUONSim(), AliFMDReconstructor::FillESD(), AliESDTagCreator::FillEventTag(), AliMUONDEPainter::FillManuList(), AliMUONVPainter::FillManuList(), AliFMDSurveyToAlignObjs::FindAlignObj(), AliTPCCalibTCF::FindCorTCFparam(), AliVertexerTracks::FindPrimaryVertex(), DrawSDigits::Finish(), AliFMDInput::Finish(), AliTrackFitterStraight::Fit(), AliTrackFitterRieman::Fit(), AliTrackFitter::Fit(), AliTPCCalibTCF::FitFcn(), FitGausResVsMom(), FitPDCAVsMom(), AliFMDSurveyToAlignObjs::FitPlane(), AliMC::FixParticleDecaytime(), AliGenParamPionsKaons::Generate(), AliFMDSurveyToAlignObjs::GetAlignObjArray(), AliExternalTrackParam::GetC(), AliTrackResidualsLinear::GetCovariance(), AliAODRecoDecay::GetCovarianceXYZPxPyPz(), AliMUONPainterMatrix::GetDataRange(), AliKFParticleBase::GetEta(), AliTOFPIDResponse::GetExpectedSignal(), AliFMDSurveyToAlignObjs::GetFMD2Plane(), AliFMDRecoParam::GetHighFluxParam(), AliAODTrack::GetImpactParameters(), AliVTrack::GetIntegratedLength(), AliMUONVPainter::GetIROCManuList(), AliAODTrack::GetLabel(), AliFMDRecoParam::GetLowFluxParam(), AliEMCALQADataMakerRec::GetMaxSignalHGLEDMon(), AliKFParticleBase::GetMomentum(), AliTPCCalROC::GetNeighbourhood(), AliTPCCalROC::GetNeighbourhoodValue(), AliMpVSegmentation::GetNeighbours(), AliESDCaloCluster::GetNLabels(), TKDNodeInfo::GetNpar(), AliMUONVPainter::GetPainter(), AliFMDSurveyToAlignObjs::GetPoint(), AliHelix::GetPointAngle(), AliPIDCombined::GetPriorDistribution(), AliHMPIDPIDResponse::GetProbability(), AliTPCCalibTCF::GetQualityOfTCF(), AliITSPIDResponse::GetResolution(), FindCommonModeNoise::GetSignal(), AliAODTrack::GetTOFBunchCrossing(), AliESDtrack::GetTOFExpTDiff(), AliESDtrack::GetTOFExpTDiffSpec(), AliMFTCACell::GetTrackGID(), AliTracker::GetTrackPointTrackingError(), AliMUONPainterMatrix::GetTypes(), good_tracks(), GoodTracksTPC(), AliMUONTrackerVoltages::GraphValues(), AliPIDResponse::IdentifiedAsElectronTRD(), AliEMCALGeometry::ImpactOnEmcal(), AliCorrQADataMakerRec::InitRaws(), interpolRead(), interpolWrite(), AliExternalTrackParam::Intersect(), AliStack::IsPhysicalPrimary(), AliAlignObj::IsSortable(), AliFMDv1::IsVersion(), kNNSpeed(), kNNTest(), AliEMCALTriggerTRU::L0v0(), AliEMCALTriggerTRU::L0v1(), AliAlignmentTracks::LoadPoints(), AliMUONClusterFinderMLEM::MainLoop(), MakeAlias(), AliFMDDisplay::MakeCanvas(), AliGlobalQADataMaker::MakeESDs(), AliESDpid::MakeITSPID(), AliFMDInput::MakeLogScale(), AliCorrQADataMakerRec::MakeRaws(), AliESDpid::MakeTOFPID(), AliESDpid::MakeTPCPID(), MakeTrack(), AliMergeableCollection::Map(), AliMUONVPainter::Master(), AliRelAlignerKalman::MisalignTrack(), MUONFakes(), MUONRecoCheck(), MUONStatusMapEvolution(), AliKFParticle::NDF(), AliPIDResponse::NumberOfSigmasTOF(), AliGenPythiaEventHeader::NUQTriggerJets(), AliTrackPoint::operator=(), AliFMDDisplay::Paint(), AliMUONCalibrationData::PatchHVValues(), pfocdbmaker(), AliMUONTrackerVoltages::Print(), AliESDFMD::Print(), AliFMDMap::Print(), PrintCalibration(), PrintMap(), AliAnalysisTaskMCParticleFilter::PrintMCParticle(), AliCodeTimer::PrintMethod(), AliAlignmentTracks::ProcessESD(), AliAlignmentTracks::ProcessESDCosmics(), AliFMDQAChecker::ProcessExternalParam(), AliExternalTrackParam::PropagateParamOnlyBxByBzTo(), AliExternalTrackParam::PropagateToBxByBz(), AliCascadeVertexer::PropagateToDCA(), AliExternalTrackParam::Px(), AliExternalTrackParam::Py(), AliLog::ReadEnvSettings(), readpf(), AliExternalTrackParam::RelateToVVertexBxByBzDCA(), AliMUONCluster::RemovePad(), AliMUONTrackerHV::ReportTrips(), AliTOFPIDResponse::ResetT0info(), AliTrackPoint::Rotate(), AliESDfriendTrack::Set1P(), AliAODCaloCluster::SetCaloCluster(), AliTRDPIDResponse::SetCentrality(), AliMUONVPainter::SetData(), AliMUONPainterMatrix::SetDataRange(), AliITSPIDResponse::SetElectronBetheBlochParamsITSsa(), AliFMDFancy::AliFancyDetector::SetFrame(), AliFMDFancy::AliFancyDetector::SetId(), AliESDtrack::SetIntegratedLength(), AliTrackFitterKalman::SetMaxChi2(), AliTOFPIDResponse::SetMaxMismatchProbability(), AliFMDFancy::AliFancyDetector::SetMaxR(), AliFMDFancy::AliFancyDetector::SetMaxZ(), AliFMDFancy::AliFancyDetector::SetMinZ(), AliFMDParameters::SetPedestal(), AliESDCaloCluster::SetPIDAt(), AliESDpid::SetPIDForTracking(), AliTMinuitToolkit::SetPredefinedFitter(), AliAnalysisTaskESDfilter::SetPthreshold(), AliMUONClusterInfo::SetTrackP(), AliESDtrack::SetTRDmomentum(), AliESDtrack::SetTRDpid(), AliTRDTKDInterpolator::SetUseHelperNodes(), AliMUONRecoParam::Show(), ShowExisting(), DrawHits::ShowFit(), DrawESD::ShowFit(), AliTrackPointArray::Sort(), SpectraMonitor(), AliTPCv1::StepManager(), AliFMDv1::StepManager(), AliCodeTimer::Stopwatch(), TestESDCaloClusterAndCell(), TestESDPhi(), TestSurveyToAlignObjs(), tpc_tracks(), AliTPCPIDResponse::TrackApex(), AliVertexerTracks::TrackToPoint(), AliAlignObj::Transform(), AliV0::Update(), AliESDHLTtrack::UpdateTrackParams(), AliFMDGeometry::UseAssembly(), AliMUONPreClusterFinderV3::UsePad(), AliReconstruction::WriteAlignmentData(), AliAODMCParticle::~AliAODMCParticle(), AliTrackResidualsFast::~AliTrackResidualsFast(), and AliFMDMap::Printer::~Printer().