35 for(
int i = 0; hypoClassKeyStringToEnumMap[
i].
label && (!
found); ++
i){
36 if(!strcmp(label.c_str(), hypoClassKeyStringToEnumMap[
i].
label)){
38 value = hypoClassKeyStringToEnumMap[
i].
value;
44 throw cms::Exception(
"TtEventError") << label <<
" is not a recognized HypoClassKey";
54 log << std::setw(15) << name <<
": not available!\n";
57 log << std::setprecision(3) << setiosflags(std::ios::fixed | std::ios::showpoint);
58 log << std::setw(15) << name <<
": "
59 << std::setw( 7) << cand->
pt() <<
"; "
60 << std::setw( 7) << cand->
eta() <<
"; "
61 << std::setw( 7) << cand->
phi() <<
"; "
62 << resetiosflags(std::ios::fixed | std::ios::showpoint) << setiosflags(std::ios::scientific)
63 << std::setw(10) << cand->
mass() <<
"\n";
64 log << resetiosflags(std::ios::scientific);
HypoClassKey
supported classes of event hypotheses
unsigned int numberOfAvailableHypos(const std::string &key) const
return number of available hypotheses within a given hypothesis class
virtual double pt() const =0
transverse momentum
virtual double mass() const =0
mass
void printParticle(edm::LogInfo &log, const char *name, const reco::Candidate *cand) const
print pt, eta, phi, mass of a given candidate into an existing LogInfo
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
a lightweight map for selection type string label and enum value
int correspondingHypo(const std::string &key1, const unsigned &hyp1, const std::string &key2) const
return the hypothesis in hypothesis class 'key2', which corresponds to hypothesis 'hyp1' in hypothesi...
std::vector< int > jetLeptonCombination(const std::string &key, const unsigned &cmb=0) const
return the vector of jet lepton combinatorics for a given hypothesis and class
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity