CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
TtFullHadKinFitter::KinFit Class Reference

class that does the fitting More...

#include <TtFullHadKinFitter.h>

Public Member Functions

std::list< TtFullHadKinFitter::KinFitResultfit (const std::vector< pat::Jet > &jets)
 do the fitting and return fit result More...
 
 KinFit ()
 default constructor More...
 
 KinFit (bool useBTagging, unsigned int bTags, std::string bTagAlgo, double minBTagValueBJet, double maxBTagValueNonBJet, const std::vector< edm::ParameterSet > &udscResolutions, const std::vector< edm::ParameterSet > &bResolutions, const std::vector< double > &jetEnergyResolutionScaleFactors, const std::vector< double > &jetEnergyResolutionEtaBinning, std::string jetCorrectionLevel, int maxNJets, int maxNComb, unsigned int maxNrIter, double maxDeltaS, double maxF, unsigned int jetParam, const std::vector< unsigned > &constraints, double mW, double mTop)
 special constructor More...
 
void setBTagging (bool useBTagging, unsigned int bTags, std::string bTagAlgo, double minBTagValueBJet, double maxBTagValueNonBJet)
 set all parameters for b-tagging More...
 
void setFitter (int maxNJets, unsigned int maxNrIter, double maxDeltaS, double maxF, unsigned int jetParam, const std::vector< unsigned > &constraints, double mW, double mTop)
 set parameters for fitter More...
 
void setJEC (std::string jetCorrectionLevel)
 set jec level More...
 
void setMatch (const std::vector< int > &match)
 set match to be used More...
 
void setMatchInvalidity (bool invalidMatch)
 set the validity of a match More...
 
void setOutput (int maxNComb)
 set number of combinations of output More...
 
void setResolutions (const std::vector< edm::ParameterSet > &udscResolutions, const std::vector< edm::ParameterSet > &bResolutions, const std::vector< double > &jetEnergyResolutionScaleFactors, const std::vector< double > &jetEnergyResolutionEtaBinning)
 set resolutions More...
 
void setUseOnlyMatch (bool useOnlyMatch)
 set useOnlyMatch More...
 
 ~KinFit ()
 default destructor More...
 

Private Member Functions

TtFullHadKinFitter::Constraint constraint (unsigned int configParameter)
 
std::vector< TtFullHadKinFitter::Constraintconstraints (const std::vector< unsigned int > &configParameters)
 
pat::Jet corJet (const pat::Jet &jet, const std::string &quarkType)
 helper function to construct the proper corrected jet for its corresponding quarkType More...
 
bool doBTagging (const std::vector< pat::Jet > &jets, const unsigned int &bJetCounter, std::vector< int > &combi)
 
TtFullHadKinFitter::Param param (unsigned int configParameter)
 

Private Attributes

std::vector< edm::ParameterSetbResolutions_
 
std::string bTagAlgo_
 input tag for b-tagging algorithm More...
 
unsigned int bTags_
 minimal number of b-jets More...
 
std::vector< unsigned > constraints_
 numbering of different possible kinematic constraints More...
 
TtFullHadKinFitterfitter
 kinematic fit interface More...
 
bool invalidMatch_
 match is invalid More...
 
std::string jetCorrectionLevel_
 correction level for jets More...
 
std::vector< double > jetEnergyResolutionEtaBinning_
 
std::vector< double > jetEnergyResolutionScaleFactors_
 scale factors for the jet energy resolution More...
 
unsigned int jetParam_
 numbering of different possible jet parametrizations More...
 
std::vector< int > match_
 the combination that should be used More...
 
double maxBTagValueNonBJet_
 max value of bTag for a non-b-jet More...
 
double maxDeltaS_
 maximal chi2 equivalent More...
 
double maxF_
 maximal deviation for contstraints More...
 
int maxNComb_
 maximal number of combinations to be written to the event More...
 
int maxNJets_
 maximal number of jets (-1 possible to indicate 'all') More...
 
unsigned int maxNrIter_
 maximal number of iterations to be performed for the fit More...
 
double minBTagValueBJet_
 min value of bTag for a b-jet More...
 
double mTop_
 top mass value used for constraints More...
 
double mW_
 W mass value used for constraints. More...
 
std::vector< edm::ParameterSetudscResolutions_
 store the resolutions for the jets More...
 
bool useBTagging_
 
bool useOnlyMatch_
 fit or only a certain combination More...
 

Detailed Description

class that does the fitting

Definition at line 145 of file TtFullHadKinFitter.h.

Constructor & Destructor Documentation

◆ KinFit() [1/2]

TtFullHadKinFitter::KinFit::KinFit ( )

default constructor

Definition at line 343 of file TtFullHadKinFitter.cc.

344  : useBTagging_(true),
345  bTags_(2),
346  bTagAlgo_("trackCountingHighPurBJetTags"),
347  minBTagValueBJet_(3.41),
348  maxBTagValueNonBJet_(3.41),
349  udscResolutions_(std::vector<edm::ParameterSet>(0)),
350  bResolutions_(std::vector<edm::ParameterSet>(0)),
353  jetCorrectionLevel_("L3Absolute"),
354  maxNJets_(-1),
355  maxNComb_(1),
356  maxNrIter_(500),
357  maxDeltaS_(5e-5),
358  maxF_(0.0001),
359  jetParam_(1),
360  mW_(80.4),
361  mTop_(173.),
362  useOnlyMatch_(false),
363  match_(std::vector<int>(0)),
364  invalidMatch_(false) {
365  constraints_.push_back(1);
366  constraints_.push_back(2);
367  constraints_.push_back(5);
368 }

References constraints_.

◆ KinFit() [2/2]

TtFullHadKinFitter::KinFit::KinFit ( bool  useBTagging,
unsigned int  bTags,
std::string  bTagAlgo,
double  minBTagValueBJet,
double  maxBTagValueNonBJet,
const std::vector< edm::ParameterSet > &  udscResolutions,
const std::vector< edm::ParameterSet > &  bResolutions,
const std::vector< double > &  jetEnergyResolutionScaleFactors,
const std::vector< double > &  jetEnergyResolutionEtaBinning,
std::string  jetCorrectionLevel,
int  maxNJets,
int  maxNComb,
unsigned int  maxNrIter,
double  maxDeltaS,
double  maxF,
unsigned int  jetParam,
const std::vector< unsigned > &  constraints,
double  mW,
double  mTop 
)

◆ ~KinFit()

TtFullHadKinFitter::KinFit::~KinFit ( )

default destructor

Definition at line 426 of file TtFullHadKinFitter.cc.

426 { delete fitter; }

Member Function Documentation

◆ constraint()

TtFullHadKinFitter::Constraint TtFullHadKinFitter::KinFit::constraint ( unsigned int  configParameter)
private

Definition at line 671 of file TtFullHadKinFitter.cc.

671  {
673  switch (configParameter) {
676  break;
679  break;
682  break;
685  break;
688  break;
689  default:
690  throw cms::Exception("Configuration") << "Chosen fit constraint is not supported: " << configParameter << "\n";
691  break;
692  }
693  return result;
694 }

References Exception, TtFullHadKinFitter::kEqualTopMasses, TtFullHadKinFitter::kTopBarMass, TtFullHadKinFitter::kTopMass, TtFullHadKinFitter::kWMinusMass, TtFullHadKinFitter::kWPlusMass, and mps_fire::result.

◆ constraints()

std::vector< TtFullHadKinFitter::Constraint > TtFullHadKinFitter::KinFit::constraints ( const std::vector< unsigned int > &  configParameters)
private

Definition at line 696 of file TtFullHadKinFitter.cc.

697  {
698  std::vector<TtFullHadKinFitter::Constraint> result;
699  for (unsigned i = 0; i < configParameters.size(); ++i) {
700  result.push_back(constraint(configParameters[i]));
701  }
702  return result;
703 }

References HLT_2018_cff::constraint, mps_fire::i, and mps_fire::result.

Referenced by KinFit(), and setFitter().

◆ corJet()

pat::Jet TtFullHadKinFitter::KinFit::corJet ( const pat::Jet jet,
const std::string &  quarkType 
)
private

helper function to construct the proper corrected jet for its corresponding quarkType

Definition at line 485 of file TtFullHadKinFitter.cc.

485  {
486  // jetCorrectionLevel was not configured
487  if (jetCorrectionLevel_.empty())
488  throw cms::Exception("Configuration")
489  << "Unconfigured jetCorrectionLevel. Please use an appropriate, non-empty string.\n";
490 
491  // quarkType is unknown
492  if (!(quarkType == "wMix" || quarkType == "uds" || quarkType == "charm" || quarkType == "bottom"))
493  throw cms::Exception("Configuration") << quarkType << " is unknown as a quarkType for the jetCorrectionLevel.\n";
494 
495  float jecFactor = 1.;
496  if (quarkType == "wMix")
497  jecFactor = 0.75 * jet.jecFactor(jetCorrectionLevel_, "uds") + 0.25 * jet.jecFactor(jetCorrectionLevel_, "charm");
498  else
499  jecFactor = jet.jecFactor(jetCorrectionLevel_, quarkType);
500 
501  pat::Jet ret = jet;
502  ret.setP4(ret.p4() * jecFactor);
503  return ret;
504 }

References metsig::jet, and runTheMatrix::ret.

◆ doBTagging()

bool TtFullHadKinFitter::KinFit::doBTagging ( const std::vector< pat::Jet > &  jets,
const unsigned int &  bJetCounter,
std::vector< int > &  combi 
)
private

Definition at line 428 of file TtFullHadKinFitter.cc.

430  {
431  if (!useBTagging_) {
432  return true;
433  }
434  if (bTags_ == 2 && jets[combi[TtFullHadEvtPartons::B]].bDiscriminator(bTagAlgo_) >= minBTagValueBJet_ &&
435  jets[combi[TtFullHadEvtPartons::BBar]].bDiscriminator(bTagAlgo_) >= minBTagValueBJet_ &&
440  return true;
441  } else if (bTags_ == 1) {
442  if (bJetCounter == 1 &&
443  (jets[combi[TtFullHadEvtPartons::B]].bDiscriminator(bTagAlgo_) >= minBTagValueBJet_ ||
444  jets[combi[TtFullHadEvtPartons::BBar]].bDiscriminator(bTagAlgo_) >= minBTagValueBJet_) &&
449  return true;
450  } else if (bJetCounter > 1 && jets[combi[TtFullHadEvtPartons::B]].bDiscriminator(bTagAlgo_) >= minBTagValueBJet_ &&
451  jets[combi[TtFullHadEvtPartons::BBar]].bDiscriminator(bTagAlgo_) >= minBTagValueBJet_ &&
456  return true;
457  }
458  } else if (bTags_ == 0) {
459  if (bJetCounter == 0) {
460  return true;
461  } else if (bJetCounter == 1 &&
462  (jets[combi[TtFullHadEvtPartons::B]].bDiscriminator(bTagAlgo_) >= minBTagValueBJet_ ||
463  jets[combi[TtFullHadEvtPartons::BBar]].bDiscriminator(bTagAlgo_) >= minBTagValueBJet_) &&
468  return true;
469  } else if (bJetCounter > 1 && jets[combi[TtFullHadEvtPartons::B]].bDiscriminator(bTagAlgo_) >= minBTagValueBJet_ &&
470  jets[combi[TtFullHadEvtPartons::BBar]].bDiscriminator(bTagAlgo_) >= minBTagValueBJet_ &&
475  return true;
476  }
477  } else if (bTags_ > 2) {
478  throw cms::Exception("Configuration") << "Wrong number of bTags (" << bTags_ << " bTags not supported)!\n";
479  return true;
480  }
481  return false;
482 }

References TtFullHadEvtPartons::B, TtFullHadEvtPartons::BBar, Exception, singleTopDQM_cfi::jets, TtFullHadEvtPartons::LightP, TtFullHadEvtPartons::LightPBar, TtFullHadEvtPartons::LightQ, and TtFullHadEvtPartons::LightQBar.

◆ fit()

std::list< TtFullHadKinFitter::KinFitResult > TtFullHadKinFitter::KinFit::fit ( const std::vector< pat::Jet > &  jets)

do the fitting and return fit result


skip events with less jets than partons or invalid match

analyze different jet combinations using the KinFitter (or only a given jet combination if useOnlyMatch=true)

feed out result starting with the JetComb having the smallest chi2

Definition at line 506 of file TtFullHadKinFitter.cc.

506  {
507  std::list<TtFullHadKinFitter::KinFitResult> fitResults;
508 
515  if (jets.size() < nPartons || invalidMatch_) {
516  // indices referring to the jet combination
517  std::vector<int> invalidCombi;
518  for (unsigned int i = 0; i < nPartons; ++i)
519  invalidCombi.push_back(-1);
520 
521  KinFitResult result;
522  // status of the fitter
523  result.Status = -1;
524  // chi2
525  result.Chi2 = -1.;
526  // chi2 probability
527  result.Prob = -1.;
528  // the kinFit getters return empty objects here
529  result.B = fitter->fittedB();
530  result.BBar = fitter->fittedBBar();
531  result.LightQ = fitter->fittedLightQ();
532  result.LightQBar = fitter->fittedLightQBar();
533  result.LightP = fitter->fittedLightP();
534  result.LightPBar = fitter->fittedLightPBar();
535  result.JetCombi = invalidCombi;
536  // push back fit result
537  fitResults.push_back(result);
538  return fitResults;
539  }
540 
546  std::vector<int> jetIndices;
547  if (!useOnlyMatch_) {
548  for (unsigned int idx = 0; idx < jets.size(); ++idx) {
549  if (maxNJets_ >= (int)nPartons && maxNJets_ == (int)idx)
550  break;
551  jetIndices.push_back(idx);
552  }
553  }
554 
555  std::vector<int> combi;
556  for (unsigned int idx = 0; idx < nPartons; ++idx) {
557  useOnlyMatch_ ? combi.push_back(match_[idx]) : combi.push_back(idx);
558  }
559 
560  unsigned int bJetCounter = 0;
561  for (std::vector<pat::Jet>::const_iterator jet = jets.begin(); jet < jets.end(); ++jet) {
562  if (jet->bDiscriminator(bTagAlgo_) >= minBTagValueBJet_)
563  ++bJetCounter;
564  }
565 
566  do {
567  for (int cnt = 0; cnt < TMath::Factorial(combi.size()); ++cnt) {
568  // take into account indistinguishability of the two jets from the two W decays,
569  // and the two decay branches, this reduces the combinatorics by a factor of 2*2*2
573  useOnlyMatch_) &&
574  doBTagging(jets, bJetCounter, combi)) {
575  std::vector<pat::Jet> jetCombi;
576  jetCombi.resize(nPartons);
579  jetCombi[TtFullHadEvtPartons::B] = corJet(jets[combi[TtFullHadEvtPartons::B]], "bottom");
580  jetCombi[TtFullHadEvtPartons::BBar] = corJet(jets[combi[TtFullHadEvtPartons::BBar]], "bottom");
583 
584  // do the kinematic fit
585  int status = fitter->fit(jetCombi);
586 
587  if (status == 0) {
588  // fill struct KinFitResults if converged
590  result.Status = status;
591  result.Chi2 = fitter->fitS();
592  result.Prob = fitter->fitProb();
593  result.B = fitter->fittedB();
594  result.BBar = fitter->fittedBBar();
595  result.LightQ = fitter->fittedLightQ();
596  result.LightQBar = fitter->fittedLightQBar();
597  result.LightP = fitter->fittedLightP();
598  result.LightPBar = fitter->fittedLightPBar();
599  result.JetCombi = combi;
600  // push back fit result
601  fitResults.push_back(result);
602  }
603  }
604  // don't go through combinatorics if useOnlyMatch was chosen
605  if (useOnlyMatch_) {
606  break;
607  }
608  // next permutation
609  std::next_permutation(combi.begin(), combi.end());
610  }
611  // don't go through combinatorics if useOnlyMatch was chosen
612  if (useOnlyMatch_) {
613  break;
614  }
615  } while (stdcomb::next_combination(jetIndices.begin(), jetIndices.end(), combi.begin(), combi.end()));
616 
617  // sort results w.r.t. chi2 values
618  fitResults.sort();
619 
625  if ((unsigned)fitResults.size() < 1) {
626  // in case no fit results were stored in the list (i.e. when all fits were aborted)
627 
628  KinFitResult result;
629  // status of the fitter
630  result.Status = -1;
631  // chi2
632  result.Chi2 = -1.;
633  // chi2 probability
634  result.Prob = -1.;
635  // the kinFit getters return empty objects here
636  result.B = fitter->fittedB();
637  result.BBar = fitter->fittedBBar();
638  result.LightQ = fitter->fittedLightQ();
639  result.LightQBar = fitter->fittedLightQBar();
640  result.LightP = fitter->fittedLightP();
641  result.LightPBar = fitter->fittedLightPBar();
642  // indices referring to the jet combination
643  std::vector<int> invalidCombi(nPartons, -1);
644  result.JetCombi = invalidCombi;
645  // push back fit result
646  fitResults.push_back(result);
647  }
648  return fitResults;
649 }

References TtFullHadEvtPartons::B, TtFullHadEvtPartons::BBar, mps_fire::i, charmTagsComputerCvsB_cfi::idx, createfilelist::int, metsig::jet, singleTopDQM_cfi::jets, TtFullHadEvtPartons::LightP, TtFullHadEvtPartons::LightPBar, TtFullHadEvtPartons::LightQ, TtFullHadEvtPartons::LightQBar, stdcomb::next_combination(), nPartons, mps_fire::result, and mps_update::status.

Referenced by trackingPlots.Iteration::modules(), and TtFullHadKinFitProducer::produce().

◆ param()

TtFullHadKinFitter::Param TtFullHadKinFitter::KinFit::param ( unsigned int  configParameter)
private

Definition at line 651 of file TtFullHadKinFitter.cc.

651  {
653  switch (configParameter) {
656  break;
659  break;
662  break;
663  default:
664  throw cms::Exception("Configuration")
665  << "Chosen jet parametrization is not supported: " << configParameter << "\n";
666  break;
667  }
668  return result;
669 }

References Exception, TopKinFitter::kEMom, TopKinFitter::kEtEtaPhi, TopKinFitter::kEtThetaPhi, and mps_fire::result.

Referenced by KinFit().

◆ setBTagging()

void TtFullHadKinFitter::KinFit::setBTagging ( bool  useBTagging,
unsigned int  bTags,
std::string  bTagAlgo,
double  minBTagValueBJet,
double  maxBTagValueNonBJet 
)
inline

◆ setFitter()

void TtFullHadKinFitter::KinFit::setFitter ( int  maxNJets,
unsigned int  maxNrIter,
double  maxDeltaS,
double  maxF,
unsigned int  jetParam,
const std::vector< unsigned > &  constraints,
double  mW,
double  mTop 
)
inline

◆ setJEC()

void TtFullHadKinFitter::KinFit::setJEC ( std::string  jetCorrectionLevel)
inline

◆ setMatch()

void TtFullHadKinFitter::KinFit::setMatch ( const std::vector< int > &  match)
inline

set match to be used

Definition at line 217 of file TtFullHadKinFitter.h.

217 { match_ = match; }

References match(), and match_.

Referenced by TtFullHadKinFitProducer::produce().

◆ setMatchInvalidity()

void TtFullHadKinFitter::KinFit::setMatchInvalidity ( bool  invalidMatch)
inline

set the validity of a match

Definition at line 219 of file TtFullHadKinFitter.h.

219 { invalidMatch_ = invalidMatch; }

References invalidMatch_.

Referenced by TtFullHadKinFitProducer::produce().

◆ setOutput()

void TtFullHadKinFitter::KinFit::setOutput ( int  maxNComb)
inline

set number of combinations of output

Definition at line 221 of file TtFullHadKinFitter.h.

221 { maxNComb_ = maxNComb; }

References TtSemiLepHitFitProducer_Electrons_cfi::maxNComb, and maxNComb_.

◆ setResolutions()

void TtFullHadKinFitter::KinFit::setResolutions ( const std::vector< edm::ParameterSet > &  udscResolutions,
const std::vector< edm::ParameterSet > &  bResolutions,
const std::vector< double > &  jetEnergyResolutionScaleFactors,
const std::vector< double > &  jetEnergyResolutionEtaBinning 
)
inline

◆ setUseOnlyMatch()

void TtFullHadKinFitter::KinFit::setUseOnlyMatch ( bool  useOnlyMatch)
inline

set useOnlyMatch

Definition at line 215 of file TtFullHadKinFitter.h.

References TtFullHadKinFitProducer_cfi::useOnlyMatch, and useOnlyMatch_.

Referenced by TtFullHadKinFitProducer::produce().

Member Data Documentation

◆ bResolutions_

std::vector<edm::ParameterSet> TtFullHadKinFitter::KinFit::bResolutions_
private

Definition at line 252 of file TtFullHadKinFitter.h.

Referenced by KinFit(), and setResolutions().

◆ bTagAlgo_

std::string TtFullHadKinFitter::KinFit::bTagAlgo_
private

input tag for b-tagging algorithm

Definition at line 246 of file TtFullHadKinFitter.h.

Referenced by setBTagging().

◆ bTags_

unsigned int TtFullHadKinFitter::KinFit::bTags_
private

minimal number of b-jets

Definition at line 244 of file TtFullHadKinFitter.h.

Referenced by setBTagging().

◆ constraints_

std::vector<unsigned> TtFullHadKinFitter::KinFit::constraints_
private

numbering of different possible kinematic constraints

Definition at line 271 of file TtFullHadKinFitter.h.

Referenced by KinFit(), and setFitter().

◆ fitter

TtFullHadKinFitter* TtFullHadKinFitter::KinFit::fitter
private

kinematic fit interface

Definition at line 284 of file TtFullHadKinFitter.h.

Referenced by KinFit().

◆ invalidMatch_

bool TtFullHadKinFitter::KinFit::invalidMatch_
private

match is invalid

Definition at line 281 of file TtFullHadKinFitter.h.

Referenced by setMatchInvalidity().

◆ jetCorrectionLevel_

std::string TtFullHadKinFitter::KinFit::jetCorrectionLevel_
private

correction level for jets

Definition at line 257 of file TtFullHadKinFitter.h.

Referenced by setJEC().

◆ jetEnergyResolutionEtaBinning_

std::vector<double> TtFullHadKinFitter::KinFit::jetEnergyResolutionEtaBinning_
private

Definition at line 255 of file TtFullHadKinFitter.h.

Referenced by KinFit(), and setResolutions().

◆ jetEnergyResolutionScaleFactors_

std::vector<double> TtFullHadKinFitter::KinFit::jetEnergyResolutionScaleFactors_
private

scale factors for the jet energy resolution

Definition at line 254 of file TtFullHadKinFitter.h.

Referenced by KinFit(), and setResolutions().

◆ jetParam_

unsigned int TtFullHadKinFitter::KinFit::jetParam_
private

numbering of different possible jet parametrizations

Definition at line 269 of file TtFullHadKinFitter.h.

Referenced by KinFit(), and setFitter().

◆ match_

std::vector<int> TtFullHadKinFitter::KinFit::match_
private

the combination that should be used

Definition at line 279 of file TtFullHadKinFitter.h.

Referenced by setMatch().

◆ maxBTagValueNonBJet_

double TtFullHadKinFitter::KinFit::maxBTagValueNonBJet_
private

max value of bTag for a non-b-jet

Definition at line 250 of file TtFullHadKinFitter.h.

Referenced by setBTagging().

◆ maxDeltaS_

double TtFullHadKinFitter::KinFit::maxDeltaS_
private

maximal chi2 equivalent

Definition at line 265 of file TtFullHadKinFitter.h.

Referenced by KinFit(), and setFitter().

◆ maxF_

double TtFullHadKinFitter::KinFit::maxF_
private

maximal deviation for contstraints

Definition at line 267 of file TtFullHadKinFitter.h.

Referenced by KinFit(), and setFitter().

◆ maxNComb_

int TtFullHadKinFitter::KinFit::maxNComb_
private

maximal number of combinations to be written to the event

Definition at line 261 of file TtFullHadKinFitter.h.

Referenced by setOutput().

◆ maxNJets_

int TtFullHadKinFitter::KinFit::maxNJets_
private

maximal number of jets (-1 possible to indicate 'all')

Definition at line 259 of file TtFullHadKinFitter.h.

Referenced by setFitter().

◆ maxNrIter_

unsigned int TtFullHadKinFitter::KinFit::maxNrIter_
private

maximal number of iterations to be performed for the fit

Definition at line 263 of file TtFullHadKinFitter.h.

Referenced by KinFit(), and setFitter().

◆ minBTagValueBJet_

double TtFullHadKinFitter::KinFit::minBTagValueBJet_
private

min value of bTag for a b-jet

Definition at line 248 of file TtFullHadKinFitter.h.

Referenced by setBTagging().

◆ mTop_

double TtFullHadKinFitter::KinFit::mTop_
private

top mass value used for constraints

Definition at line 275 of file TtFullHadKinFitter.h.

Referenced by KinFit(), and setFitter().

◆ mW_

double TtFullHadKinFitter::KinFit::mW_
private

W mass value used for constraints.

Definition at line 273 of file TtFullHadKinFitter.h.

Referenced by KinFit(), and setFitter().

◆ udscResolutions_

std::vector<edm::ParameterSet> TtFullHadKinFitter::KinFit::udscResolutions_
private

store the resolutions for the jets

Definition at line 252 of file TtFullHadKinFitter.h.

Referenced by KinFit(), and setResolutions().

◆ useBTagging_

bool TtFullHadKinFitter::KinFit::useBTagging_
private

switch to tell whether all possible combinations should be used for the switch to tell whether to use b-tagging or not

Definition at line 242 of file TtFullHadKinFitter.h.

Referenced by setBTagging().

◆ useOnlyMatch_

bool TtFullHadKinFitter::KinFit::useOnlyMatch_
private

fit or only a certain combination

Definition at line 277 of file TtFullHadKinFitter.h.

Referenced by setUseOnlyMatch().

runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:355
TopKinFitter::kEtEtaPhi
Definition: TopKinFitter.h:20
TtFullHadKinFitter::fit
int fit(const std::vector< pat::Jet > &jets)
kinematic fit interface
Definition: TtFullHadKinFitter.cc:221
TtFullHadKinFitter::KinFit::maxNComb_
int maxNComb_
maximal number of combinations to be written to the event
Definition: TtFullHadKinFitter.h:261
TtFullHadKinFitter::KinFit::maxDeltaS_
double maxDeltaS_
maximal chi2 equivalent
Definition: TtFullHadKinFitter.h:265
TtFullHadKinFitter::KinFit::invalidMatch_
bool invalidMatch_
match is invalid
Definition: TtFullHadKinFitter.h:281
mps_fire.i
i
Definition: mps_fire.py:355
TtFullHadKinFitter::KinFitResult
struct for fit results
Definition: TtFullHadKinFitter.h:130
TtFullHadKinFitter::KinFit::match_
std::vector< int > match_
the combination that should be used
Definition: TtFullHadKinFitter.h:279
TtFullHadKinFitProducer_cfi.udscResolutions
udscResolutions
Definition: TtFullHadKinFitProducer_cfi.py:83
StEvtSolProducer_cfi.maxNrIter
maxNrIter
Definition: StEvtSolProducer_cfi.py:24
mps_update.status
status
Definition: mps_update.py:69
TtFullHadKinFitter::fittedB
const pat::Particle fittedB() const
return fitted b quark candidate
Definition: TtFullHadKinFitter.h:69
TtFullHadKinFitter::kTopMass
Definition: TtFullHadKinFitter.h:32
TtFullHadEvtPartons::LightQ
Definition: TtFullHadEvtPartons.h:25
TtFullHadKinFitter::KinFit::jetEnergyResolutionEtaBinning_
std::vector< double > jetEnergyResolutionEtaBinning_
Definition: TtFullHadKinFitter.h:255
TtFullHadKinFitter::KinFit::jetParam_
unsigned int jetParam_
numbering of different possible jet parametrizations
Definition: TtFullHadKinFitter.h:269
TtFullHadKinFitter::kWMinusMass
Definition: TtFullHadKinFitter.h:32
TtFullHadKinFitProducer_cfi.maxBTagValueNonBJet
maxBTagValueNonBJet
Definition: TtFullHadKinFitProducer_cfi.py:39
TtFullHadKinFitter::fittedLightP
const pat::Particle fittedLightP() const
return fitted light quark candidate
Definition: TtFullHadKinFitter.h:79
charmTagsComputerCvsB_cfi.idx
idx
Definition: charmTagsComputerCvsB_cfi.py:108
TtFullHadKinFitter::KinFit::useBTagging_
bool useBTagging_
Definition: TtFullHadKinFitter.h:242
TtFullHadEvtPartons::LightP
Definition: TtFullHadEvtPartons.h:25
singleTopDQM_cfi.jets
jets
Definition: singleTopDQM_cfi.py:42
TtFullHadKinFitter::KinFit::mTop_
double mTop_
top mass value used for constraints
Definition: TtFullHadKinFitter.h:275
TtFullHadKinFitter::KinFit::doBTagging
bool doBTagging(const std::vector< pat::Jet > &jets, const unsigned int &bJetCounter, std::vector< int > &combi)
Definition: TtFullHadKinFitter.cc:428
TtFullHadKinFitter::kEqualTopMasses
Definition: TtFullHadKinFitter.h:32
TtFullHadKinFitter::KinFit::constraint
TtFullHadKinFitter::Constraint constraint(unsigned int configParameter)
Definition: TtFullHadKinFitter.cc:671
TopKinFitter::kEMom
Definition: TopKinFitter.h:20
TopKinFitter::fitProb
double fitProb() const
return fit probability
Definition: TopKinFitter.h:37
TtFullHadKinFitter::KinFit::mW_
double mW_
W mass value used for constraints.
Definition: TtFullHadKinFitter.h:273
TtFullHadKinFitter::KinFit::bResolutions_
std::vector< edm::ParameterSet > bResolutions_
Definition: TtFullHadKinFitter.h:252
pat::Jet
Analysis-level calorimeter jet class.
Definition: Jet.h:77
TtFullHadKinFitter::KinFit::jetEnergyResolutionScaleFactors_
std::vector< double > jetEnergyResolutionScaleFactors_
scale factors for the jet energy resolution
Definition: TtFullHadKinFitter.h:254
TtFullHadKinFitProducer_cfi.minBTagValueBJet
minBTagValueBJet
Definition: TtFullHadKinFitProducer_cfi.py:38
TtFullHadKinFitter::KinFit::fitter
TtFullHadKinFitter * fitter
kinematic fit interface
Definition: TtFullHadKinFitter.h:284
TtFullHadKinFitter::kTopBarMass
Definition: TtFullHadKinFitter.h:32
TtFullHadKinFitter::KinFit::maxF_
double maxF_
maximal deviation for contstraints
Definition: TtFullHadKinFitter.h:267
TtFullHadKinFitter::fittedLightPBar
const pat::Particle fittedLightPBar() const
return fitted light quark candidate
Definition: TtFullHadKinFitter.h:81
TtSemiLepHitFitProducer_Electrons_cfi.mTop
mTop
Definition: TtSemiLepHitFitProducer_Electrons_cfi.py:36
TtFullHadKinFitter::KinFit::maxNrIter_
unsigned int maxNrIter_
maximal number of iterations to be performed for the fit
Definition: TtFullHadKinFitter.h:263
TtSemiLepHitFitProducer_Electrons_cfi.jetCorrectionLevel
jetCorrectionLevel
Definition: TtSemiLepHitFitProducer_Electrons_cfi.py:43
TtFullHadKinFitter::Constraint
Constraint
supported constraints
Definition: TtFullHadKinFitter.h:32
TtFullHadKinFitter::KinFit::useOnlyMatch_
bool useOnlyMatch_
fit or only a certain combination
Definition: TtFullHadKinFitter.h:277
TtFullHadKinFitProducer_cfi.useOnlyMatch
useOnlyMatch
Definition: TtFullHadKinFitProducer_cfi.py:31
TtFullHadKinFitter::KinFit::jetCorrectionLevel_
std::string jetCorrectionLevel_
correction level for jets
Definition: TtFullHadKinFitter.h:257
TtFullHadKinFitter::KinFit::corJet
pat::Jet corJet(const pat::Jet &jet, const std::string &quarkType)
helper function to construct the proper corrected jet for its corresponding quarkType
Definition: TtFullHadKinFitter.cc:485
TtSemiLepHitFitProducer_Electrons_cfi.mW
mW
Definition: TtSemiLepHitFitProducer_Electrons_cfi.py:35
TtFullHadKinFitter::fittedLightQBar
const pat::Particle fittedLightQBar() const
return fitted light quark candidate
Definition: TtFullHadKinFitter.h:75
TtFullHadKinFitter::kWPlusMass
Definition: TtFullHadKinFitter.h:32
TtFullHadEvtPartons::LightPBar
Definition: TtFullHadEvtPartons.h:25
TtFullHadKinFitter::fittedBBar
const pat::Particle fittedBBar() const
return fitted b quark candidate
Definition: TtFullHadKinFitter.h:71
TtFullHadEvtPartons::LightQBar
Definition: TtFullHadEvtPartons.h:25
TtFullHadKinFitter::KinFit::bTagAlgo_
std::string bTagAlgo_
input tag for b-tagging algorithm
Definition: TtFullHadKinFitter.h:246
match
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
TtFullHadKinFitter::KinFit::constraints
std::vector< TtFullHadKinFitter::Constraint > constraints(const std::vector< unsigned int > &configParameters)
Definition: TtFullHadKinFitter.cc:696
createfilelist.int
int
Definition: createfilelist.py:10
TtFullHadKinFitProducer_cfi.bTags
bTags
Definition: TtFullHadKinFitProducer_cfi.py:40
SUSYDQMAnalyzer_cfi.maxNJets
maxNJets
Definition: SUSYDQMAnalyzer_cfi.py:13
TtFullHadKinFitter::KinFit::constraints_
std::vector< unsigned > constraints_
numbering of different possible kinematic constraints
Definition: TtFullHadKinFitter.h:271
TtFullHadKinFitter::KinFit::bTags_
unsigned int bTags_
minimal number of b-jets
Definition: TtFullHadKinFitter.h:244
TopKinFitter::fitS
double fitS() const
return chi2 of fit (not normalized to degrees of freedom)
Definition: TopKinFitter.h:33
TtFullHadKinFitProducer_cfi.jetEnergyResolutionEtaBinning
jetEnergyResolutionEtaBinning
Definition: TtFullHadKinFitProducer_cfi.py:95
TopKinFitter::kEtThetaPhi
Definition: TopKinFitter.h:20
nPartons
static const unsigned int nPartons
Definition: TtFullHadKinFitter.cc:13
TtFullHadKinFitProducer_cfi.jetEnergyResolutionScaleFactors
jetEnergyResolutionScaleFactors
Definition: TtFullHadKinFitProducer_cfi.py:94
TtSemiLepHitFitProducer_Electrons_cfi.maxNComb
maxNComb
Definition: TtSemiLepHitFitProducer_Electrons_cfi.py:21
StEvtSolProducer_cfi.maxDeltaS
maxDeltaS
Definition: StEvtSolProducer_cfi.py:25
stdcomb::next_combination
bool next_combination(BidIt n_begin, BidIt n_end, BidIt r_begin, BidIt r_end)
Definition: combination.h:19
TtSemiLepHitFitProducer_Electrons_cfi.useBTagging
useBTagging
Definition: TtSemiLepHitFitProducer_Electrons_cfi.py:29
TtFullHadEvtPartons::BBar
Definition: TtFullHadEvtPartons.h:25
TtFullHadKinFitter::KinFit::minBTagValueBJet_
double minBTagValueBJet_
min value of bTag for a b-jet
Definition: TtFullHadKinFitter.h:248
metsig::jet
Definition: SignAlgoResolutions.h:47
TtFullHadKinFitter::TtFullHadKinFitter
TtFullHadKinFitter()
default constructor
Definition: TtFullHadKinFitter.cc:16
TtFullHadKinFitter::KinFit::maxNJets_
int maxNJets_
maximal number of jets (-1 possible to indicate 'all')
Definition: TtFullHadKinFitter.h:259
Exception
Definition: hltDiff.cc:246
TtFullHadKinFitProducer_cfi.bResolutions
bResolutions
Definition: TtFullHadKinFitProducer_cfi.py:84
TtFullHadKinFitter::KinFit::maxBTagValueNonBJet_
double maxBTagValueNonBJet_
max value of bTag for a non-b-jet
Definition: TtFullHadKinFitter.h:250
mps_fire.result
result
Definition: mps_fire.py:303
cms::Exception
Definition: Exception.h:70
TopKinFitter::Param
Param
supported parameterizations
Definition: TopKinFitter.h:20
TtFullHadEvtPartons::B
Definition: TtFullHadEvtPartons.h:25
TtFullHadKinFitter::KinFit::param
TtFullHadKinFitter::Param param(unsigned int configParameter)
Definition: TtFullHadKinFitter.cc:651
StEvtSolProducer_cfi.maxF
maxF
Definition: StEvtSolProducer_cfi.py:26
TtSemiLepHitFitProducer_Electrons_cfi.bTagAlgo
bTagAlgo
Definition: TtSemiLepHitFitProducer_Electrons_cfi.py:26
TtFullHadKinFitter::fittedLightQ
const pat::Particle fittedLightQ() const
return fitted light quark candidate
Definition: TtFullHadKinFitter.h:73
TtFullHadKinFitter::KinFit::udscResolutions_
std::vector< edm::ParameterSet > udscResolutions_
store the resolutions for the jets
Definition: TtFullHadKinFitter.h:252
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37