#include <TauElementsOperators.h>
Public Member Functions | |
double | computeConeSize (const TFormula &ConeSizeTFormula, double ConeSizeMin, double ConeSizeMax) |
double | computeConeSize (const TFormula &ConeSizeTFormula, double ConeSizeMin, double ConeSizeMax, double transverseEnergy, double energy, double jetOpeningAngle=0.) |
double | discriminatorByIsolTracksN (std::string matchingConeMetric, double matchingConeSize, double ptLeadingTrackMin, double ptOtherTracksMin, std::string signalConeMetric, double signalConeSize, std::string isolationConeMetric, double isolationConeSize, unsigned int isolationAnnulus_Tracksmaxn) const |
double | discriminatorByIsolTracksN (unsigned int isolationAnnulus_Tracksmaxn) const |
double | discriminatorByIsolTracksN (const math::XYZVector &coneAxis, std::string matchingConeMetric, double matchingConeSize, double ptLeadingTrackMin, double ptOtherTracksMin, std::string signalConeMetric, double signalConeSize, std::string isolationConeMetric, double isolationConeSize, unsigned int isolationAnnulus_Tracksmaxn) const |
const reco::TrackRef | leadTk (const math::XYZVector &jetAxis, std::string matchingConeMetric, double matchingConeSize, double ptTrackMin) const |
const reco::TrackRef | leadTk (std::string matchingConeMetric, double matchingConeSize, double ptTrackMin) const |
void | replaceSubStr (std::string &s, const std::string &oldSubStr, const std::string &newSubStr) |
TauElementsOperators (reco::BaseTau &) | |
TauElementsOperators () | |
const reco::TrackRefVector | tracksInAnnulus (const math::XYZVector &coneAxis, const std::string innerconeMetric, const double innerconeSize, const std::string outerconeMetric, const double outerconeSize, const double ptTrackMin) const |
const reco::TrackRefVector | tracksInAnnulus (const math::XYZVector &coneAxis, const std::string innerconeMetric, const double innerconeSize, const std::string outerconeMetric, const double outerconeSize, const double ptTrackMin, const double tracktorefpoint_maxDZ, const double refpoint_Z, const reco::Vertex &myPV) const |
const reco::TrackRefVector | tracksInCone (const math::XYZVector &coneAxis, const std::string coneMetric, const double coneSize, const double ptTrackMin, const double tracktorefpoint_maxDZ, const double refpoint_Z, const reco::Vertex &myPV) const |
const reco::TrackRefVector | tracksInCone (const math::XYZVector &coneAxis, const std::string coneMetric, const double coneSize, const double ptTrackMin) const |
~TauElementsOperators () | |
Protected Attributes | |
double | AreaMetric_recoElements_maxabsEta_ |
reco::BaseTau & | BaseTau_ |
TFormula | ConeSizeTFormula |
reco::TrackRefVector | IsolTracks_ |
Angle< math::XYZVector > | metricAngle_ |
DeltaR< math::XYZVector > | metricDR_ |
reco::TrackRefVector | Tracks_ |
ElementsInAnnulus < math::XYZVector, Angle < math::XYZVector >, Angle < math::XYZVector > , reco::TrackCollection > | TracksinAnnulus_innerAngleouterAnglemetrics_ |
ElementsInAnnulus < math::XYZVector, Angle < math::XYZVector >, DeltaR < math::XYZVector > , reco::TrackCollection > | TracksinAnnulus_innerAngleouterDRmetrics_ |
ElementsInAnnulus < math::XYZVector, DeltaR < math::XYZVector >, Angle < math::XYZVector > , reco::TrackCollection > | TracksinAnnulus_innerDRouterAnglemetrics_ |
ElementsInAnnulus < math::XYZVector, DeltaR < math::XYZVector >, DeltaR < math::XYZVector > , reco::TrackCollection > | TracksinAnnulus_innerDRouterDRmetrics_ |
ElementsInCone < math::XYZVector, Angle < math::XYZVector > , reco::TrackCollection > | TracksinCone_Anglemetric_ |
ElementsInCone < math::XYZVector, DeltaR < math::XYZVector > , reco::TrackCollection > | TracksinCone_DRmetric_ |
Definition at line 17 of file TauElementsOperators.h.
TauElementsOperators::TauElementsOperators | ( | ) |
TauElementsOperators::TauElementsOperators | ( | reco::BaseTau & | theBaseTau | ) |
Definition at line 6 of file TauElementsOperators.cc.
References reco::BaseTau::isolationTracks(), and IsolTracks_.
: BaseTau_(theBaseTau),AreaMetric_recoElements_maxabsEta_(2.5){ IsolTracks_=theBaseTau.isolationTracks(); }
TauElementsOperators::~TauElementsOperators | ( | ) | [inline] |
Definition at line 21 of file TauElementsOperators.h.
{}
double TauElementsOperators::computeConeSize | ( | const TFormula & | ConeSizeTFormula, |
double | ConeSizeMin, | ||
double | ConeSizeMax | ||
) |
Definition at line 10 of file TauElementsOperators.cc.
References BaseTau_, reco::LeafCandidate::energy(), reco::LeafCandidate::et(), x, and detailsBasic3DVector::y.
Referenced by CaloRecoTauAlgorithm::buildCaloTau(), and PFRecoTauAlgorithm::buildPFTau().
double TauElementsOperators::computeConeSize | ( | const TFormula & | ConeSizeTFormula, |
double | ConeSizeMin, | ||
double | ConeSizeMax, | ||
double | transverseEnergy, | ||
double | energy, | ||
double | jetOpeningAngle = 0. |
||
) |
Definition at line 19 of file TauElementsOperators.cc.
{ double ConeSize=ConeSizeTFormula.Eval(energy, transverseEnergy, jetOpeningAngle); if (ConeSize<ConeSizeMin)ConeSize=ConeSizeMin; if (ConeSize>ConeSizeMax)ConeSize=ConeSizeMax; return ConeSize; }
double TauElementsOperators::discriminatorByIsolTracksN | ( | unsigned int | isolationAnnulus_Tracksmaxn | ) | const |
Definition at line 241 of file TauElementsOperators.cc.
References IsolTracks_, and edm::RefVector< C, T, F >::size().
{ if ((unsigned int)IsolTracks_.size()>isolationAnnulus_Tracksmaxn)return 0.; else return 1.; }
double TauElementsOperators::discriminatorByIsolTracksN | ( | const math::XYZVector & | coneAxis, |
std::string | matchingConeMetric, | ||
double | matchingConeSize, | ||
double | ptLeadingTrackMin, | ||
double | ptOtherTracksMin, | ||
std::string | signalConeMetric, | ||
double | signalConeSize, | ||
std::string | isolationConeMetric, | ||
double | isolationConeSize, | ||
unsigned int | isolationAnnulus_Tracksmaxn | ||
) | const |
double TauElementsOperators::discriminatorByIsolTracksN | ( | std::string | matchingConeMetric, |
double | matchingConeSize, | ||
double | ptLeadingTrackMin, | ||
double | ptOtherTracksMin, | ||
std::string | signalConeMetric, | ||
double | signalConeSize, | ||
std::string | isolationConeMetric, | ||
double | isolationConeSize, | ||
unsigned int | isolationAnnulus_Tracksmaxn | ||
) | const |
const reco::TrackRef TauElementsOperators::leadTk | ( | std::string | matchingConeMetric, |
double | matchingConeSize, | ||
double | ptTrackMin | ||
) | const |
Referenced by CaloRecoTauAlgorithm::buildCaloTau(), and PFRecoTauAlgorithm::buildPFTau().
const reco::TrackRef TauElementsOperators::leadTk | ( | const math::XYZVector & | jetAxis, |
std::string | matchingConeMetric, | ||
double | matchingConeSize, | ||
double | ptTrackMin | ||
) | const |
void TauElementsOperators::replaceSubStr | ( | std::string & | s, |
const std::string & | oldSubStr, | ||
const std::string & | newSubStr | ||
) |
Definition at line 53 of file TauElementsOperators.cc.
{ //--- protect replacement algorithm // from case that oldSubStr and newSubStr are equal // (nothing to be done anyway) if ( oldSubStr == newSubStr ) return; //--- protect replacement algorithm // from case that oldSubStr contains no characters // (i.e. matches everything) if ( oldSubStr.empty() ) return; const string::size_type lengthOldSubStr = oldSubStr.size(); const string::size_type lengthNewSubStr = newSubStr.size(); string::size_type positionPreviousMatch = 0; string::size_type positionNextMatch = 0; //--- consecutively replace all occurences of oldSubStr by newSubStr; // keep iterating until no occurence of oldSubStr left while ( (positionNextMatch = s.find(oldSubStr, positionPreviousMatch)) != string::npos ) { s.replace(positionNextMatch, lengthOldSubStr, newSubStr); positionPreviousMatch = positionNextMatch + lengthNewSubStr; } }
const reco::TrackRefVector TauElementsOperators::tracksInAnnulus | ( | const math::XYZVector & | coneAxis, |
const std::string | innerconeMetric, | ||
const double | innerconeSize, | ||
const std::string | outerconeMetric, | ||
const double | outerconeSize, | ||
const double | ptTrackMin | ||
) | const |
Referenced by CaloRecoTauAlgorithm::buildCaloTau(), and PFRecoTauAlgorithm::buildPFTau().
const reco::TrackRefVector TauElementsOperators::tracksInAnnulus | ( | const math::XYZVector & | coneAxis, |
const std::string | innerconeMetric, | ||
const double | innerconeSize, | ||
const std::string | outerconeMetric, | ||
const double | outerconeSize, | ||
const double | ptTrackMin, | ||
const double | tracktorefpoint_maxDZ, | ||
const double | refpoint_Z, | ||
const reco::Vertex & | myPV | ||
) | const |
const reco::TrackRefVector TauElementsOperators::tracksInCone | ( | const math::XYZVector & | coneAxis, |
const std::string | coneMetric, | ||
const double | coneSize, | ||
const double | ptTrackMin, | ||
const double | tracktorefpoint_maxDZ, | ||
const double | refpoint_Z, | ||
const reco::Vertex & | myPV | ||
) | const |
const reco::TrackRefVector TauElementsOperators::tracksInCone | ( | const math::XYZVector & | coneAxis, |
const std::string | coneMetric, | ||
const double | coneSize, | ||
const double | ptTrackMin | ||
) | const |
Referenced by CaloRecoTauAlgorithm::buildCaloTau(), and PFRecoTauAlgorithm::buildPFTau().
double TauElementsOperators::AreaMetric_recoElements_maxabsEta_ [protected] |
Reimplemented in CaloTauElementsOperators, and PFTauElementsOperators.
Definition at line 53 of file TauElementsOperators.h.
reco::BaseTau& TauElementsOperators::BaseTau_ [protected] |
Definition at line 52 of file TauElementsOperators.h.
Referenced by computeConeSize().
TFormula TauElementsOperators::ConeSizeTFormula [protected] |
Definition at line 50 of file TauElementsOperators.h.
Definition at line 55 of file TauElementsOperators.h.
Referenced by discriminatorByIsolTracksN(), and TauElementsOperators().
Angle<math::XYZVector> TauElementsOperators::metricAngle_ [protected] |
Reimplemented in CaloTauElementsOperators, and PFTauElementsOperators.
Definition at line 58 of file TauElementsOperators.h.
DeltaR<math::XYZVector> TauElementsOperators::metricDR_ [protected] |
Reimplemented in CaloTauElementsOperators, and PFTauElementsOperators.
Definition at line 57 of file TauElementsOperators.h.
reco::TrackRefVector TauElementsOperators::Tracks_ [protected] |
Definition at line 54 of file TauElementsOperators.h.
Referenced by CaloTauElementsOperators::CaloTauElementsOperators(), and PFTauElementsOperators::PFTauElementsOperators().
ElementsInAnnulus<math::XYZVector,Angle<math::XYZVector>,Angle<math::XYZVector>,reco::TrackCollection> TauElementsOperators::TracksinAnnulus_innerAngleouterAnglemetrics_ [protected] |
Definition at line 63 of file TauElementsOperators.h.
ElementsInAnnulus<math::XYZVector,Angle<math::XYZVector>,DeltaR<math::XYZVector>,reco::TrackCollection> TauElementsOperators::TracksinAnnulus_innerAngleouterDRmetrics_ [protected] |
Definition at line 64 of file TauElementsOperators.h.
ElementsInAnnulus<math::XYZVector,DeltaR<math::XYZVector>,Angle<math::XYZVector>,reco::TrackCollection> TauElementsOperators::TracksinAnnulus_innerDRouterAnglemetrics_ [protected] |
Definition at line 62 of file TauElementsOperators.h.
ElementsInAnnulus<math::XYZVector,DeltaR<math::XYZVector>,DeltaR<math::XYZVector>,reco::TrackCollection> TauElementsOperators::TracksinAnnulus_innerDRouterDRmetrics_ [protected] |
Definition at line 61 of file TauElementsOperators.h.
ElementsInCone<math::XYZVector,Angle<math::XYZVector>,reco::TrackCollection> TauElementsOperators::TracksinCone_Anglemetric_ [protected] |
Definition at line 60 of file TauElementsOperators.h.
ElementsInCone<math::XYZVector,DeltaR<math::XYZVector>,reco::TrackCollection> TauElementsOperators::TracksinCone_DRmetric_ [protected] |
Definition at line 59 of file TauElementsOperators.h.