00001 00002 //$Id: NCExtractionkNN.cxx,v 1.4 2009/09/12 16:26:51 rodriges Exp $ 00003 // 00004 //NCExtractionkNN.cxx 00005 // 00006 //class to hold pdfs for doing nccc separation 00007 // 00008 //B. Rebel 3/2007 00010 00011 #include "NCUtils/Extraction/NCExtractionkNN.h" 00012 #include "MessageService/MsgService.h" 00013 00014 ClassImp(NCExtractionkNN) 00015 00016 CVSID("$Id: NCExtractionkNN.cxx,v 1.4 2009/09/12 16:26:51 rodriges Exp $"); 00017 00018 #include "NCUtils/Extraction/MicroDSTMaker.h" 00019 REGISTER_NCEXTRACTION(NCExtractionkNN, kNN) 00020 00021 // Need this constructor to chain up to the base class non-default 00022 // constructor, otherwise it won't compile (because it tries to call 00023 // the base class default constructor, which doesn't exist) 00024 NCExtractionkNN::NCExtractionkNN(NCAnalysisCuts* cuts, const Registry& r) 00025 : NCExtraction(cuts, r) 00026 { 00027 // No-op 00028 } 00029 00030 double NCExtractionkNN::GetIdProbability(NCEventInfo& evtInfo, int /*beamType*/) 00031 { 00032 return evtInfo.track->kNN < 0 ? 1e-3 : evtInfo.track->kNN; 00033 } 00034
1.3.9.1