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 | |
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 42 of file TauDiscriminatorTools.py.
References subParameterSets().
Referenced by adaptTauDiscriminatorSequence(), pfTools.reconfigurePF2PATTaus(), and setTauSource().
def TauDiscriminatorTools.adaptTauDiscriminatorSequence | ( | sequence, | |
** | kwargs | ||
) |
def TauDiscriminatorTools.recoTauTypeMapper | ( | tauProducer | ) |
Definition at line 36 of file TauDiscriminatorTools.py.
References watchdog.group.
Referenced by pfTools.reconfigurePF2PATTaus().
def TauDiscriminatorTools.setTauSource | ( | discriminator, | |
newTauProducer | |||
) |
Same as adaptTauDiscriminator, kept for backwards compatibility
Definition at line 94 of file TauDiscriminatorTools.py.
References adaptTauDiscriminator().
def TauDiscriminatorTools.subParameterSets | ( | pSet | ) |
Generator to return all sub-PSets in a PSet
Definition at line 27 of file TauDiscriminatorTools.py.
References mps_monitormerge.items.
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 24 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.leadTrack |
Definition at line 17 of file TauDiscriminatorTools.py.
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 40 of file TauDiscriminatorTools.py.
Referenced by pfTools.reconfigurePF2PATTaus().
TauDiscriminatorTools.recoTauTypeMapperRegex |
Definition at line 35 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.requireLeadPion |
Definition at line 22 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.requireLeadTrack |
Definition at line 15 of file TauDiscriminatorTools.py.