Functions | |
def | adaptTauDiscriminator (discriminator, newTauProducer='shrinkingConePFTauProducer', oldTauTypeMapper=recoTauTypeMapper, newTauTypeMapper=recoTauTypeMapper, preservePFTauProducer=False) |
def | adaptTauDiscriminatorSequence (sequence, kwargs) |
def | recoTauTypeMapper (tauProducer) |
def | setTauSource (discriminator, newTauProducer) |
def | subParameterSets (pSet) |
Variables | |
BooleanOperator | |
cut | |
leadPion | |
leadTrack | |
leadTrackFinding | |
noPrediscriminants | |
Producer | |
producerIsTauTypeMapper | |
recoTauTypeMapperRegex | |
requireLeadPion | |
requireLeadTrack | |
requireLeadTrackCalo | |
def TauDiscriminatorTools.adaptTauDiscriminator | ( | discriminator, | |
newTauProducer = 'shrinkingConePFTauProducer' , |
|||
oldTauTypeMapper = recoTauTypeMapper , |
|||
newTauTypeMapper = recoTauTypeMapper , |
|||
preservePFTauProducer = False |
|||
) |
Change a TauDiscriminator to use a different tau/prediscriminant sources Tau discriminators use the following convention: [tauType]DiscriminationByXXX i.e. fixedConePFTauDiscriminationByIsolation, allLayer1TausDiscriminationByIsolation, etc However, the mapping of tauType to tau producer name is not constant. In RECO, the form is [tauType]Producer. In PAT, the producer is just named [tauType]. To manage this oldTauTypeMapper and newTauTypeMapper are functions with signature f(str) that translate a TauProducer name (like shrinkingConePFTauProducer) to its type (shrinkingConePFTau). Two types of mapping are provided, * recoTauTypeMapper shrinkingConePFTauProducer->shrinkingConePFTau * producerIsTauTypeMapper allLayer1Taus->allLayer1Taus
Definition at line 54 of file TauDiscriminatorTools.py.
References subParameterSets().
Referenced by adaptTauDiscriminatorSequence(), pfTools.reconfigurePF2PATTaus(), and setTauSource().
def TauDiscriminatorTools.adaptTauDiscriminatorSequence | ( | sequence, | |
kwargs | |||
) |
Definition at line 98 of file TauDiscriminatorTools.py.
References adaptTauDiscriminator().
def TauDiscriminatorTools.recoTauTypeMapper | ( | tauProducer | ) |
Definition at line 46 of file TauDiscriminatorTools.py.
References edmIntegrityCheck.group.
Referenced by pfTools.reconfigurePF2PATTaus().
def TauDiscriminatorTools.setTauSource | ( | discriminator, | |
newTauProducer | |||
) |
Same as adaptTauDiscriminator, kept for backwards compatibility
Definition at line 104 of file TauDiscriminatorTools.py.
References adaptTauDiscriminator().
def TauDiscriminatorTools.subParameterSets | ( | pSet | ) |
Generator to return all sub-PSets in a PSet
Definition at line 37 of file TauDiscriminatorTools.py.
Referenced by adaptTauDiscriminator().
TauDiscriminatorTools.BooleanOperator |
Definition at line 12 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.cut |
Definition at line 7 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.leadPion |
Definition at line 34 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.leadTrack |
Definition at line 18 of file TauDiscriminatorTools.py.
Referenced by FWTauProxyBuilderBase.addLeadTrack(), reco::tau::RecoTauVertexAssociator.associatedVertex(), HPSPFRecoTauAlgorithm.buildPFTau(), pat::Tau.clone(), reco::tau::RecoTauImpactParameterSignificancePlugin.operator()(), reco.operator<<(), and reco::tau::RecoTauQualityCuts.setPV().
TauDiscriminatorTools.leadTrackFinding |
Definition at line 5 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.noPrediscriminants |
Definition at line 11 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.Producer |
Definition at line 6 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.producerIsTauTypeMapper |
Definition at line 50 of file TauDiscriminatorTools.py.
Referenced by pfTools.reconfigurePF2PATTaus().
TauDiscriminatorTools.recoTauTypeMapperRegex |
Definition at line 45 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.requireLeadPion |
Definition at line 32 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.requireLeadTrack |
Definition at line 16 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.requireLeadTrackCalo |
Definition at line 22 of file TauDiscriminatorTools.py.