5 namespace HWWFunctions {
12 bool requireArbitratedMerged) {
17 bool isGoodConversion =
false;
19 for(
unsigned int iconv = 0; iconv < nconvs; iconv++) {
21 bool conversionMatchFound =
false;
22 for(
unsigned int itk = 0; itk < hww.
convs_tkidx().at(iconv).size(); itk++) {
25 conversionMatchFound =
true;
37 conversionMatchFound =
true;
44 if(conversionMatchFound)
49 if(conversionMatchFound==
false)
52 if( TMath::Prob( hww.
convs_chi2().at(iconv), (Int_t)hww.
convs_ndof().at(iconv) ) > probMin && hww.
convs_dl().at(iconv) > dlMin ) isGoodConversion =
true;
53 if(requireArbitratedMerged) {
55 isGoodConversion =
true;
57 isGoodConversion =
false;
62 isGoodConversion =
false;
72 return isGoodConversion;
bool isMITConversion(HWW &, unsigned int elidx, int nWrongHitsMax, float probMin, float dlMin, bool matchCTF, bool requireArbitratedMerged)
std::vector< int > & els_gsftrkidx()
std::vector< std::vector< int > > & convs_nHitsBeforeVtx()
std::vector< std::vector< int > > & convs_tkalgo()
std::vector< float > & convs_chi2()
std::vector< float > & convs_ndof()
std::vector< int > & convs_quality()
std::vector< float > & convs_dl()
std::vector< int > & convs_isConverted()
std::vector< std::vector< int > > & convs_tkidx()
std::vector< int > & els_trkidx()