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 |
tuple | 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 watchdog.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().
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 49 of file TauDiscriminatorTools.py.
Referenced by pfTools.reconfigurePF2PATTaus().
tuple TauDiscriminatorTools.recoTauTypeMapperRegex = re.compile("(\w*)Producer") |
Definition at line 44 of file TauDiscriminatorTools.py.
tuple TauDiscriminatorTools.requireLeadPion |
Definition at line 31 of file TauDiscriminatorTools.py.
tuple TauDiscriminatorTools.requireLeadTrack |
Definition at line 15 of file TauDiscriminatorTools.py.
tuple TauDiscriminatorTools.requireLeadTrackCalo |
Definition at line 21 of file TauDiscriminatorTools.py.