Functions | |
def | adaptTauDiscriminator |
def | adaptTauDiscriminatorSequence |
def | recoTauTypeMapper |
def | setTauSource |
def | subParameterSets |
Variables | |
tuple | leadTrackFinding |
tuple | noPrediscriminants |
producerIsTauTypeMapper = lambdatauProducer:tauProducer | |
tuple | recoTauTypeMapperRegex = re.compile("(\w*)Producer") |
tuple | requireLeadPion |
tuple | 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 44 of file TauDiscriminatorTools.py.
References subParameterSets().
Referenced by adaptTauDiscriminatorSequence(), pfTools.reconfigurePF2PATTaus(), and setTauSource().
def TauDiscriminatorTools.adaptTauDiscriminatorSequence | ( | sequence, | |
kwargs | |||
) |
Definition at line 88 of file TauDiscriminatorTools.py.
References adaptTauDiscriminator().
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().
tuple TauDiscriminatorTools.leadTrackFinding |
Definition at line 4 of file TauDiscriminatorTools.py.
tuple TauDiscriminatorTools.noPrediscriminants |
Definition at line 10 of file TauDiscriminatorTools.py.
TauDiscriminatorTools.producerIsTauTypeMapper = lambdatauProducer:tauProducer |
Definition at line 40 of file TauDiscriminatorTools.py.
Referenced by pfTools.reconfigurePF2PATTaus().
tuple TauDiscriminatorTools.recoTauTypeMapperRegex = re.compile("(\w*)Producer") |
Definition at line 35 of file TauDiscriminatorTools.py.
tuple TauDiscriminatorTools.requireLeadPion |
Definition at line 22 of file TauDiscriminatorTools.py.
tuple TauDiscriminatorTools.requireLeadTrack |
Definition at line 15 of file TauDiscriminatorTools.py.