CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Classes | Functions | Variables
reco::tau Namespace Reference

Namespaces

 cone
 
 disc
 
 helpers
 
 qcuts
 
 xclean
 

Classes

class  AssociationMatchRefSelector
 
class  Combinatoric
 
class  CombinatoricGenerator
 
class  CombinatoricIterator
 
class  RecoTauBuilderCombinatoricPlugin
 
class  RecoTauBuilderConePlugin
 
class  RecoTauBuilderPlugin
 
class  RecoTauCleanerPlugin
 
class  RecoTauConstructor
 
class  RecoTauDiscriminantCleanerPlugin
 
class  RecoTauDiscriminantFromDiscriminator
 
class  RecoTauDiscriminantFunctionPlugin
 
class  RecoTauDiscriminantInvariantWidth
 
class  RecoTauDiscriminantPlugin
 
class  RecoTauDiscriminantVectorFunctionPlugin
 
class  RecoTauDiscriminationBinnedIsolation
 
class  RecoTauDiscriminationBinnedIsolationImpl
 
class  RecoTauElectronRejectionPlugin
 
class  RecoTauEnergyRecoveryPlugin
 
class  RecoTauEnergyRecoveryPlugin2
 
class  RecoTauEventHolderPlugin
 
class  RecoTauImpactParameterSignificancePlugin
 
class  RecoTauIsolationMasking
 
class  RecoTauLexicographicalRanking
 
class  RecoTauModifierPlugin
 
class  RecoTauMVAHelper
 
class  RecoTauNamedPlugin
 
class  RecoTauObjectEmbedder
 
class  RecoTauPhotonFilter
 
class  RecoTauPiZeroBuilderPlugin
 
class  RecoTauPiZeroCombinatoricPlugin
 
class  RecoTauPiZeroQualityPlugin
 
class  RecoTauPiZeroStringQuality
 
class  RecoTauPiZeroStripPlugin
 
class  RecoTauPiZeroStripPlugin2
 
class  RecoTauPiZeroTrivialPlugin
 
class  RecoTauQualityCuts
 
class  RecoTauRandomCleanerPlugin
 
class  RecoTauStringCleanerPlugin
 
class  RecoTauTagInfoWorkaroundModifer
 
class  RecoTauTwoProngFilter
 
class  RecoTauVertexAssociator
 
class  SortByDescendingPt
 
class  SortPFCandsDescendingPt
 

Functions

template<typename RefVectorType , typename BaseView >
RefVectorType castView (const edm::Handle< BaseView > &view)
 Convert a BaseView (View<T>) to a TRefVector. More...
 
unsigned int chargedHadronsInDecayMode (PFTau::hadronicDecayMode mode)
 Reverse mapping of decay modes into multiplicities. More...
 
template<typename Container , class OverlapFunction >
Container cleanOverlaps (const Container &dirty)
 
std::string discPluginName (const std::string &mvaName)
 
std::pair< edm::ParameterSet,
edm::ParameterSet
factorizePUQCuts (const edm::ParameterSet &inputSet)
 
template<typename Iterator >
std::vector< PFCandidatePtrfilterPFCandidates (const Iterator &begin, const Iterator &end, int particleId, bool sort=true)
 
std::vector< PFCandidatePtrflattenPiZeros (const std::vector< RecoTauPiZero > &)
 Flatten a list of pi zeros into a list of there constituent PFCandidates. More...
 
PFTau::hadronicDecayMode getDecayMode (const reco::GenJet *genJet)
 
const reco::TrackBaseRef getTrack (const reco::PFCandidate &cand)
 
bool isTauSignalPFCandidate (const reco::PFTau &tau, const reco::PFCandidatePtr &pfJetConstituent)
 
template<typename InputIterator >
InputIterator leadPFCand (InputIterator begin, InputIterator end)
 
void markCandsInStrip (std::vector< bool > &candFlags, const std::set< size_t > &candIds)
 
std::vector< PFCandidatePtrpfCandidates (const PFJet &jet, int particleId, bool sort=true)
 
std::vector< PFCandidatePtrpfCandidates (const PFJet &jet, const std::vector< int > &particleIds, bool sort=true)
 Extract pfCandidates of a that match a list of particle Ids from a PFJet. More...
 
std::vector< PFCandidatePtrpfChargedCands (const PFJet &jet, bool sort=true)
 Extract all non-neutral candidates from a PFJet. More...
 
std::vector< PFCandidatePtrpfGammas (const PFJet &jet, bool sort=true)
 Extract all pfGammas from a PFJet. More...
 
unsigned int piZerosInDecayMode (PFTau::hadronicDecayMode mode)
 
double square (double x)
 
template<typename InputIterator >
int sumPFCandCharge (InputIterator begin, InputIterator end)
 Sum the PT of a collection of PFCandidates. More...
 
template<typename InputIterator >
reco::Candidate::LorentzVector sumPFCandP4 (InputIterator begin, InputIterator end)
 
template<typename InputIterator >
double sumPFCandPt (InputIterator begin, InputIterator end)
 Sum the PT of a collection of PFCandidates. More...
 
template<typename InputIterator , typename FunctionPtr , typename ReturnType >
ReturnType sumPFVector (InputIterator begin, InputIterator end, FunctionPtr func, ReturnType init)
 Sum the four vectors in a collection of PFCandidates. More...
 
template<typename InputIterator >
InputIterator takeNElements (const InputIterator &begin, const InputIterator &end, size_t N)
 
PFTau::hadronicDecayMode translateDecayMode (unsigned int nCharged, unsigned int nPiZero)
 
PFTau::hadronicDecayMode translateGenDecayModeToReco (const std::string &genName)
 Convert a genTau decay mode string ('oneProng0Pi0') to the RECO enum. More...
 
std::string translateRecoDecayModeToGen (PFTau::hadronicDecayMode decayMode)
 Convert a RECO enum decay mode to a string ('oneProng0Pi0') More...
 

Variables

bool vxTrkFiltering
 

Function Documentation

template<typename RefVectorType , typename BaseView >
RefVectorType reco::tau::castView ( const edm::Handle< BaseView > &  view)

Convert a BaseView (View<T>) to a TRefVector.

Definition at line 74 of file RecoTauCommonUtilities.h.

References i, convertSQLitetoXML_cfg::output, and relativeConstraints::value.

74  {
75  typedef typename RefVectorType::value_type OutputRef;
76  // Double check at compile time that the inheritance is okay. It can still
77  // fail at runtime if you pass it the wrong collection.
78  BOOST_STATIC_ASSERT(
79  (boost::is_base_of<typename BaseView::value_type,
80  typename RefVectorType::member_type>::value));
81  RefVectorType output;
82  size_t nElements = view->size();
83  output.reserve(nElements);
84  // Cast each of our Refs
85  for (size_t i = 0; i < nElements; ++i) {
86  output.push_back(view->refAt(i).template castTo<OutputRef>());
87  }
88  return output;
89 }
int i
Definition: DBlmapReader.cc:9
Container::value_type value_type
unsigned int reco::tau::chargedHadronsInDecayMode ( PFTau::hadronicDecayMode  mode)

Reverse mapping of decay modes into multiplicities.

Definition at line 45 of file PFTauDecayModeTools.cc.

References reco::PFTau::kOneProngNPiZero, and alignBH_cfg::mode.

45  {
46  int modeAsInt = static_cast<int>(mode);
47  return (modeAsInt / PFTau::kOneProngNPiZero) + 1;
48 }
template<typename Container , class OverlapFunction >
Container reco::tau::cleanOverlaps ( const Container &  dirty)

Definition at line 34 of file RecoTauCleaningTools.h.

References clean, and analyzePatCOC_cfg::overlaps.

Referenced by RecoTauCleanerImpl< Prod >::produce().

34  {
35  typedef typename Container::const_iterator Iterator;
36  // Output container of clean objects
38  OverlapFunction overlapChecker;
39  for (Iterator candidate = dirty.begin(); candidate != dirty.end();
40  ++candidate) {
41  // Check if this overlaps with a pizero already in the clean list
42  bool overlaps = false;
43  for (Iterator cleaned = clean.begin();
44  cleaned != clean.end() && !overlaps; ++cleaned) {
45  overlaps = overlapChecker(*candidate, *cleaned);
46  }
47  // If it didn't overlap with anything clean, add it to the clean list
48  if (!overlaps)
49  clean.insert(clean.end(), *candidate);
50  }
51  return clean;
52 }
EcalChannelStatus Container
std::vector< T * > clean
Definition: MVATrainer.cc:156
std::string reco::tau::discPluginName ( const std::string &  mvaName)
inline

Definition at line 24 of file RecoTauDiscriminantPlugins.h.

Referenced by reco::tau::RecoTauMVAHelper::loadDiscriminantPlugins(), and PFTauMVAInputDiscriminantTranslator::PFTauMVAInputDiscriminantTranslator().

24  {
25  return "RecoTauDiscrimination" + mvaName;
26 }
std::pair< edm::ParameterSet, edm::ParameterSet > reco::tau::factorizePUQCuts ( const edm::ParameterSet inputSet)

Definition at line 281 of file RecoTauQualityCuts.cc.

References edm::ParameterSet::copyFrom(), GOODCOLL_filter_cfg::cut, edm::ParameterSet::getParameterNames(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by PFRecoTauDiscriminationByIsolation::PFRecoTauDiscriminationByIsolation().

282  {
283 
284  edm::ParameterSet puCuts;
285  edm::ParameterSet nonPUCuts;
286 
287  std::vector<std::string> inputNames = input.getParameterNames();
288  BOOST_FOREACH(const std::string& cut, inputNames) {
289  if (cut == "minTrackVertexWeight" || cut == "maxDeltaZ"
290  || cut == "maxDeltaZToLeadTrack") {
291  puCuts.copyFrom(input, cut);
292  } else {
293  nonPUCuts.copyFrom(input, cut);
294  }
295  }
296  return std::make_pair(puCuts, nonPUCuts);
297 }
void copyFrom(ParameterSet const &from, std::string const &name)
template<typename Iterator >
std::vector<PFCandidatePtr> reco::tau::filterPFCandidates ( const Iterator begin,
const Iterator end,
int  particleId,
bool  sort = true 
)

Filter a collection of objects that are convertible to PFCandidatePtrs by PFCandidate ID

Definition at line 41 of file RecoTauCommonUtilities.h.

References end, convertSQLitetoXML_cfg::output, and python.multivaluedict::sort().

Referenced by pfCandidates().

42  {
43  std::vector<PFCandidatePtr> output;
44  for(Iterator iter = begin; iter != end; ++iter) {
45  reco::PFCandidatePtr ptr(*iter);
46  if (ptr->particleId() == particleId)
47  output.push_back(ptr);
48  }
49  if (sort) std::sort(output.begin(), output.end(), SortPFCandsDescendingPt());
50  return output;
51 }
#define end
Definition: vmac.h:38
std::vector< PFCandidatePtr > reco::tau::flattenPiZeros ( const std::vector< RecoTauPiZero > &  piZeros)

Flatten a list of pi zeros into a list of there constituent PFCandidates.

Definition at line 16 of file RecoTauCommonUtilities.cc.

References convertSQLitetoXML_cfg::output.

Referenced by reco::tau::xclean::CrossCleanPtrs::CrossCleanPtrs(), and reco::tau::RecoTauPhotonFilter::operator()().

16  {
17  std::vector<PFCandidatePtr> output;
18 
19  for(std::vector<RecoTauPiZero>::const_iterator piZero = piZeros.begin();
20  piZero != piZeros.end(); ++piZero) {
21  for(size_t iDaughter = 0; iDaughter < piZero->numberOfDaughters();
22  ++iDaughter) {
23  output.push_back(PFCandidatePtr(piZero->daughterPtr(iDaughter)));
24  }
25  }
26  return output;
27 }
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
PFTau::hadronicDecayMode reco::tau::getDecayMode ( const reco::GenJet genJet)

Definition at line 80 of file PFTauDecayModeTools.cc.

References JetMCTagUtils::genTauDecayMode(), reco::PFTau::kNull, and translateGenDecayModeToReco().

Referenced by PFTauDiscriminants::PFTauDiscriminantManager::mainTrack(), and tautools::RecoTauDecayModeTruthMatchPlugin::operator()().

80  {
81  if (!genJet)
82  return reco::PFTau::kNull;
84 }
std::string genTauDecayMode(const reco::CompositePtrCandidate &c)
Definition: JetMCTag.cc:81
PFTau::hadronicDecayMode translateGenDecayModeToReco(const std::string &genName)
Convert a genTau decay mode string (&#39;oneProng0Pi0&#39;) to the RECO enum.
const reco::TrackBaseRef reco::tau::getTrack ( const reco::PFCandidate cand)
bool reco::tau::isTauSignalPFCandidate ( const reco::PFTau tau,
const reco::PFCandidatePtr pfJetConstituent 
)

Definition at line 90 of file RecoTauEnergyRecoveryPlugin.cc.

References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), edm::Ptr< T >::key(), and reco::PFTau::signalPFCands().

Referenced by reco::tau::RecoTauEnergyRecoveryPlugin::operator()().

91 {
92  bool retVal = false;
93 
94  const reco::PFCandidateRefVector& signalPFCandidates = tau.signalPFCands();
95  for ( reco::PFCandidateRefVector::const_iterator signalPFCandidate = signalPFCandidates.begin();
96  signalPFCandidate != signalPFCandidates.end(); ++signalPFCandidate ) {
97  if ( pfJetConstituent.key() == signalPFCandidate->key() ) retVal = true;
98  }
99 
100  return retVal;
101 }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:249
const PFCandidateRefVector & signalPFCands() const
PFCandidates in signal region.
Definition: PFTau.cc:73
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:244
key_type key() const
Definition: Ptr.h:169
template<typename InputIterator >
InputIterator reco::tau::leadPFCand ( InputIterator  begin,
InputIterator  end 
)

Definition at line 132 of file RecoTauCommonUtilities.h.

References begin, and end.

Referenced by reco::tau::RecoTauConstructor::get(), and reco::tau::RecoTauBuilderConePlugin::operator()().

133  {
134  double max_pt = 0;
135  InputIterator max_cand = begin;
136  for(InputIterator cand = begin; cand != end; ++cand) {
137  if( (*cand)->pt() > max_pt ) {
138  max_pt = (*cand)->pt();
139  max_cand = cand;
140  }
141  }
142  return max_cand;
143  }
#define end
Definition: vmac.h:38
#define begin
Definition: vmac.h:31
void reco::tau::markCandsInStrip ( std::vector< bool > &  candFlags,
const std::set< size_t > &  candIds 
)

Definition at line 166 of file RecoTauPiZeroStripPlugin2.cc.

Referenced by reco::tau::RecoTauPiZeroStripPlugin2::operator()().

167 {
168  for ( std::set<size_t>::const_iterator candId = candIds.begin();
169  candId != candIds.end(); ++candId ) {
170  candFlags[*candId] = true;
171  }
172 }
std::vector< reco::PFCandidatePtr > reco::tau::pfCandidates ( const PFJet &  jet,
int  particleId,
bool  sort = true 
)

Extract pfCandidates of a given particle Id from a PFJet. If sort is true, candidates will be sorted by descending PT

Definition at line 29 of file RecoTauCommonUtilities.cc.

References filterPFCandidates(), reco::PFJet::getPFConstituents(), and python.multivaluedict::sort().

Referenced by PFMETAnalyzer::analyze(), PFElectronTranslator::fillMVAValueMap(), GreedyMuonPFCandidateFilter::filter(), InconsistentMuonPFCandidateFilter::filter(), FixedGridEnergyDensity::fixedGridRho(), reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), reco::tau::RecoTauBuilderConePlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), pfCandidates(), pfChargedCands(), pfGammas(), FSPFProducer::produce(), reco::ParticleFlowForChargedMETProducer::produce(), HLTHtMhtProducer::produce(), PFElectronTranslator::produce(), PFMET::produce(), PFLinker::produce(), MuonProducer::produce(), PFPileUp::produce(), pat::PATPFParticleProducer::produce(), reco::modules::HICaloCompatibleTrackSelector::produce(), FFTJetPFPileupCleaner::produce(), PFPhotonTranslator::produce(), and PFMETAnalyzer::validateMET().

30  {
31  PFCandPtrs pfCands = jet.getPFConstituents();
32  PFCandPtrs selectedPFCands = filterPFCandidates(
33  pfCands.begin(), pfCands.end(), particleId, sort);
34  return selectedPFCands;
35 }
std::vector< reco::PFCandidatePtr > PFCandPtrs
std::vector< PFCandidatePtr > filterPFCandidates(const Iterator &begin, const Iterator &end, int particleId, bool sort=true)
std::vector< reco::PFCandidatePtr > reco::tau::pfCandidates ( const PFJet &  jet,
const std::vector< int > &  particleIds,
bool  sort = true 
)

Extract pfCandidates of a that match a list of particle Ids from a PFJet.

Definition at line 37 of file RecoTauCommonUtilities.cc.

References convertSQLitetoXML_cfg::output, pfCandidates(), and python.multivaluedict::sort().

38  {
40  // Get each desired candidate type, unsorted for now
41  for(std::vector<int>::const_iterator particleId = particleIds.begin();
42  particleId != particleIds.end(); ++particleId) {
43  PFCandPtrs selectedPFCands = pfCandidates(jet, *particleId, false);
44  output.insert(output.end(), selectedPFCands.begin(), selectedPFCands.end());
45  }
46  if (sort) std::sort(output.begin(), output.end(), SortPFCandsDescendingPt());
47  return output;
48 }
std::vector< reco::PFCandidatePtr > PFCandPtrs
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
std::vector< reco::PFCandidatePtr > reco::tau::pfChargedCands ( const PFJet &  jet,
bool  sort = true 
)

Extract all non-neutral candidates from a PFJet.

Definition at line 54 of file RecoTauCommonUtilities.cc.

References reco::PFCandidate::e, reco::PFCandidate::h, reco::PFCandidate::mu, convertSQLitetoXML_cfg::output, pfCandidates(), and python.multivaluedict::sort().

Referenced by reco::tau::RecoTauVertexAssociator::getLeadTrack(), reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), and reco::tau::RecoTauBuilderConePlugin::operator()().

55  {
60  output.reserve(mus.size() + es.size() + chs.size());
61  output.insert(output.end(), mus.begin(), mus.end());
62  output.insert(output.end(), es.begin(), es.end());
63  output.insert(output.end(), chs.begin(), chs.end());
64  if (sort) std::sort(output.begin(), output.end(), SortPFCandsDescendingPt());
65  return output;
66 }
std::vector< reco::PFCandidatePtr > PFCandPtrs
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
std::vector< reco::PFCandidatePtr > reco::tau::pfGammas ( const PFJet &  jet,
bool  sort = true 
)
unsigned int reco::tau::piZerosInDecayMode ( PFTau::hadronicDecayMode  mode)

Definition at line 50 of file PFTauDecayModeTools.cc.

References reco::PFTau::kOneProngNPiZero, and alignBH_cfg::mode.

50  {
51  int modeAsInt = static_cast<int>(mode);
52  return (modeAsInt % PFTau::kOneProngNPiZero);
53 }
double reco::tau::square ( double  x)

Definition at line 103 of file RecoTauEnergyRecoveryPlugin.cc.

References x.

Referenced by reco::tau::RecoTauIsolationMasking::mask(), and reco::tau::RecoTauEnergyRecoveryPlugin::operator()().

104 {
105  return x*x;
106 }
Definition: DDAxes.h:10
template<typename InputIterator >
int reco::tau::sumPFCandCharge ( InputIterator  begin,
InputIterator  end 
)

Sum the PT of a collection of PFCandidates.

Definition at line 127 of file RecoTauCommonUtilities.h.

References reco::LeafCandidate::charge(), and sumPFVector().

Referenced by reco::tau::RecoTauConstructor::get().

128  {
130  }
ReturnType sumPFVector(InputIterator begin, InputIterator end, FunctionPtr func, ReturnType init)
Sum the four vectors in a collection of PFCandidates.
double charge(const std::vector< uint8_t > &Ampls)
#define end
Definition: vmac.h:38
#define begin
Definition: vmac.h:31
template<typename InputIterator >
reco::Candidate::LorentzVector reco::tau::sumPFCandP4 ( InputIterator  begin,
InputIterator  end 
)

Definition at line 114 of file RecoTauCommonUtilities.h.

References reco::LeafCandidate::p4(), and sumPFVector().

115  {
118 }
ReturnType sumPFVector(InputIterator begin, InputIterator end, FunctionPtr func, ReturnType init)
Sum the four vectors in a collection of PFCandidates.
double p4[4]
Definition: TauolaWrapper.h:92
#define end
Definition: vmac.h:38
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:41
#define begin
Definition: vmac.h:31
template<typename InputIterator >
double reco::tau::sumPFCandPt ( InputIterator  begin,
InputIterator  end 
)

Sum the PT of a collection of PFCandidates.

Definition at line 121 of file RecoTauCommonUtilities.h.

References reco::LeafCandidate::pt(), and sumPFVector().

Referenced by reco::tau::RecoTauConstructor::get().

122  {
123  return sumPFVector(begin, end, &PFCandidate::pt, 0.0);
124  }
ReturnType sumPFVector(InputIterator begin, InputIterator end, FunctionPtr func, ReturnType init)
Sum the four vectors in a collection of PFCandidates.
#define end
Definition: vmac.h:38
#define begin
Definition: vmac.h:31
template<typename InputIterator , typename FunctionPtr , typename ReturnType >
ReturnType reco::tau::sumPFVector ( InputIterator  begin,
InputIterator  end,
FunctionPtr  func,
ReturnType  init 
)

Sum the four vectors in a collection of PFCandidates.

Definition at line 104 of file RecoTauCommonUtilities.h.

References end, init, and convertSQLitetoXML_cfg::output.

Referenced by sumPFCandCharge(), sumPFCandP4(), and sumPFCandPt().

105  {
106  ReturnType output = init;
107  for(InputIterator cand = begin; cand != end; ++cand) {
108  //#define CALL_MEMBER_FN(object,ptrToMember) ((object).*(ptrToMember))
109  output += ((**cand).*(func))();
110  }
111  return output;
112  }
int init
Definition: HydjetWrapper.h:63
#define end
Definition: vmac.h:38
#define begin
Definition: vmac.h:31
template<typename InputIterator >
InputIterator reco::tau::takeNElements ( const InputIterator &  begin,
const InputIterator &  end,
size_t  N 
)

Definition at line 96 of file RecoTauCommonUtilities.h.

References begin, and N.

Referenced by reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), reco::tau::RecoTauPiZeroCombinatoricPlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), and reco::tau::RecoTauPiZeroStripPlugin2::operator()().

97  {
98  size_t input_size = end - begin;
99  return (N > input_size) ? end : begin + N;
100 }
#define end
Definition: vmac.h:38
#define N
Definition: blowfish.cc:9
#define begin
Definition: vmac.h:31
PFTau::hadronicDecayMode reco::tau::translateDecayMode ( unsigned int  nCharged,
unsigned int  nPiZero 
)

Definition at line 55 of file PFTauDecayModeTools.cc.

References reco::PFTau::kNull, reco::PFTau::kOneProngNPiZero, and reco::PFTau::kRareDecayMode.

Referenced by reco::tau::RecoTauObjectEmbedder< T >::operator()(), reco::tau::RecoTauDiscriminantInvariantWidth::RecoTauDiscriminantInvariantWidth(), RecoTauMVADiscriminator::RecoTauMVADiscriminator(), and RecoTauMVATransform::RecoTauMVATransform().

56  {
57  // If no tracks exist, this is definitely not a tau!
58  if(!nCharged) return PFTau::kNull;
59  // Find the maximum number of PiZeros our parameterization can hold
60  const unsigned int maxPiZeros = PFTau::kOneProngNPiZero;
61  // Determine our track index
62  unsigned int trackIndex = (nCharged-1)*(maxPiZeros+1);
63  // Check if we handle the given number of tracks
64  if(trackIndex >= PFTau::kRareDecayMode) return PFTau::kRareDecayMode;
65 
66  nPiZeros = (nPiZeros <= maxPiZeros) ? nPiZeros : maxPiZeros;
67  return static_cast<PFTau::hadronicDecayMode>(trackIndex + nPiZeros);
68 }
const unsigned int kNull
unsigned int nCharged(const GenJet &jet)
PFTau::hadronicDecayMode reco::tau::translateGenDecayModeToReco ( const std::string &  genName)

Convert a genTau decay mode string ('oneProng0Pi0') to the RECO enum.

Definition at line 70 of file PFTauDecayModeTools.cc.

Referenced by getDecayMode().

71  {
72  return decayModeStringToId(name.c_str(), dmTranslatorMap);
73 }
std::string reco::tau::translateRecoDecayModeToGen ( PFTau::hadronicDecayMode  decayMode)

Convert a RECO enum decay mode to a string ('oneProng0Pi0')

Definition at line 75 of file PFTauDecayModeTools.cc.

75  {
76  return decayModeIdToString(decayMode, dmTranslatorMap);
77 }

Variable Documentation

bool reco::tau::vxTrkFiltering