4 namespace HWWFunctions {
11 bool requireArbitratedMerged) {
16 bool isGoodConversion =
false;
18 for(
unsigned int iconv = 0; iconv < nconvs; iconv++) {
20 bool conversionMatchFound =
false;
21 for(
unsigned int itk = 0; itk < hww.
convs_tkidx().at(iconv).size(); itk++) {
24 conversionMatchFound =
true;
27 conversionMatchFound =
true;
30 if(conversionMatchFound)
35 if(conversionMatchFound==
false)
38 if( TMath::Prob( hww.
convs_chi2().at(iconv), (Int_t)hww.
convs_ndof().at(iconv) ) > probMin && hww.
convs_dl().at(iconv) > dlMin ) isGoodConversion =
true;
39 if(requireArbitratedMerged) {
41 isGoodConversion =
true;
43 isGoodConversion =
false;
48 isGoodConversion =
false;
58 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()