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 53 of file TauDiscriminatorTools.py.
References subParameterSets().
Referenced by adaptTauDiscriminatorSequence(), pfTools.reconfigurePF2PATTaus(), and setTauSource().
def TauDiscriminatorTools.adaptTauDiscriminatorSequence | ( | sequence, | |
kwargs | |||
) |
Definition at line 97 of file TauDiscriminatorTools.py.
References adaptTauDiscriminator().
def TauDiscriminatorTools.recoTauTypeMapper | ( | tauProducer | ) |
Definition at line 45 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 103 of file TauDiscriminatorTools.py.
References adaptTauDiscriminator().
def TauDiscriminatorTools.subParameterSets | ( | pSet | ) |
Generator to return all sub-PSets in a PSet
Definition at line 36 of file TauDiscriminatorTools.py.
Referenced by adaptTauDiscriminator().
TauDiscriminatorTools.BooleanOperator |
Definition at line 11 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.cut |
Definition at line 6 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.leadPion |
Definition at line 33 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.leadTrack |
Definition at line 17 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 4 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.noPrediscriminants |
Definition at line 10 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.Producer |
Definition at line 5 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.producerIsTauTypeMapper |
Definition at line 49 of file TauDiscriminatorTools.py.
Referenced by pfTools.reconfigurePF2PATTaus().
TauDiscriminatorTools.recoTauTypeMapperRegex |
Definition at line 44 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.requireLeadPion |
Definition at line 31 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.requireLeadTrack |
Definition at line 15 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.requireLeadTrackCalo |
Definition at line 21 of file TauDiscriminatorTools.py.