test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Variables
objects.autophobj Namespace Reference

Variables

tuple fourVectorType
 
tuple genParticleType
 

GENPARTICLE

More...
 
tuple genParticleWithAncestryType
 
tuple genParticleWithLinksType
 
tuple genParticleWithMotherId
 
tuple isoTrackType
 

ISOTRACK

More...
 
tuple jetType
 

JET

More...
 
tuple jetTypeExtra
 
tuple leptonType
 

LEPTON

More...
 
tuple leptonTypeExtra
 EXTENDED VERSION WITH INDIVIUAL DISCRIMINATING VARIABLES. More...
 
tuple metType
 

MET

More...
 
tuple objectFloat
 
tuple objectInt
 
tuple particleType
 
tuple photonType
 

PHOTON

More...
 
tuple tauType
 

TAU

More...
 
tuple tlorentzFourVectorType
 
tuple twoVectorType
 
tuple weightsInfoType
 

Variable Documentation

tuple objects.autophobj.fourVectorType
Initial value:
1 = NTupleObjectType("fourVector", variables = [
2  NTupleVariable("pt", lambda x : x.pt()),
3  NTupleVariable("eta", lambda x : x.eta()),
4  NTupleVariable("phi", lambda x : x.phi()),
5  NTupleVariable("mass", lambda x : x.mass()),
6  NTupleVariable("p4", lambda x : x, "TLorentzVector", default=ROOT.reco.Particle.LorentzVector(0.,0.,0.,0.), filler = lambda vector, obj: vector.SetPtEtaPhiM(obj.pt(), obj.eta(), obj.phi(), obj.mass())),
7  # ^^^^------- Note: p4 normally is not saved unless 'saveTLorentzVectors' is enabled in the tree producer
8 ])

Definition at line 20 of file autophobj.py.

tuple objects.autophobj.genParticleType
Initial value:
1 = NTupleObjectType("genParticle", baseObjectTypes = [ particleType ], mcOnly=True, variables = [
2  NTupleVariable("charge", lambda x : x.threeCharge()/3.0, float),
3  NTupleVariable("status", lambda x : x.status(),int),
4 ])


GENPARTICLE

Definition at line 228 of file autophobj.py.

tuple objects.autophobj.genParticleWithAncestryType
Initial value:
1 = NTupleObjectType("genParticleWithAncestry", baseObjectTypes = [ genParticleType ], mcOnly=True, variables = [
2  NTupleVariable("motherId", lambda x : x.motherId, int, help="pdgId of the mother of the particle"),
3  NTupleVariable("grandmotherId", lambda x : x.grandmotherId, int, help="pdgId of the grandmother of the particle"),
4  NTupleVariable("sourceId", lambda x : x.sourceId, int, help="origin of the particle (heaviest ancestor): 6=t, 25=h, 23/24=W/Z"),
5 ])

Definition at line 236 of file autophobj.py.

tuple objects.autophobj.genParticleWithLinksType
Initial value:
1 = NTupleObjectType("genParticleWithLinks", baseObjectTypes = [ genParticleWithAncestryType ], mcOnly=True, variables = [
2  NTupleVariable("motherIndex", lambda x : x.motherIndex, int, help="index of the mother in the generatorSummary")
3 ])

Definition at line 241 of file autophobj.py.

tuple objects.autophobj.genParticleWithMotherId
Initial value:
1 = NTupleObjectType("genParticleWithMotherId", baseObjectTypes = [ genParticleType ], mcOnly=True, variables = [
2  NTupleVariable("motherId", lambda x : x.mother(0).pdgId() if x.mother(0) else 0, int, help="pdgId of the mother of the particle"),
3  NTupleVariable("grandmotherId", lambda x : x.mother(0).mother(0).pdgId() if x.mother(0) and x.mother(0).mother(0) else 0, int, help="pdgId of the grandmother of the particle")
4 ])

Definition at line 232 of file autophobj.py.

tuple objects.autophobj.isoTrackType
Initial value:
1 = NTupleObjectType("isoTrack", baseObjectTypes = [ particleType ], variables = [
2  NTupleVariable("charge", lambda x : x.charge(), int),
3  NTupleVariable("dz", lambda x : x.dz() , help="d_{z} of lead track with respect to PV, in cm (with sign)"),
4  NTupleVariable("absIso", lambda x : x.absIso, float, mcOnly=False, help="abs charged iso with condition for isolation such that Min(0.2*pt, 8 GeV)"),
5  NTupleVariable("relIsoAn04", lambda x : x.relIsoAn04 if hasattr(x,'relIsoAn04') else -999, help="PF Activity Annulus, pile-up corrected"),
6  NTupleVariable("mcMatchId", lambda x : getattr(x, 'mcMatchId', -99), int, mcOnly=True, help="Match to source from hard scatter (pdgId of heaviest particle in chain, 25 for H, 6 for t, 23/24 for W/Z), zero if non-prompt or fake"),
7 ])


ISOTRACK

Definition at line 144 of file autophobj.py.

tuple objects.autophobj.jetType
Initial value:
1 = NTupleObjectType("jet", baseObjectTypes = [ fourVectorType ], variables = [
2  NTupleVariable("id", lambda x : x.jetID("POG_PFID") , int, mcOnly=False,help="POG Loose jet ID"),
3  NTupleVariable("puId", lambda x : getattr(x, 'puJetIdPassed', -99), int, mcOnly=False, help="puId (full MVA, loose WP, 5.3.X training on AK5PFchs: the only thing that is available now)"),
4  NTupleVariable("btagCSV", lambda x : x.btag('pfCombinedInclusiveSecondaryVertexV2BJetTags'), help="CSV-IVF v2 discriminator"),
5 # NTupleVariable("btagCMVA", lambda x : x.btag('pfCombinedMVABJetTags'), help="CMVA discriminator"),
6  NTupleVariable("btagCMVA", lambda x : x.btag('pfCombinedMVAV2BJetTags'), help="CMVA discriminator"),
7  NTupleVariable("rawPt", lambda x : x.pt() * x.rawFactor(), help="p_{T} before JEC"),
8  NTupleVariable("mcPt", lambda x : x.mcJet.pt() if getattr(x,"mcJet",None) else 0., mcOnly=True, help="p_{T} of associated gen jet"),
9  NTupleVariable("mcFlavour", lambda x : x.partonFlavour(), int, mcOnly=True, help="parton flavour (physics definition, i.e. including b's from shower)"),
10  NTupleVariable("partonFlavour", lambda x : x.partonFlavour(), int, mcOnly=True, help="purely parton-based flavour"),
11  NTupleVariable("hadronFlavour", lambda x : x.hadronFlavour(), int, mcOnly=True, help="hadron flavour (ghost matching to B/C hadrons)"),
12  NTupleVariable("mcMatchId", lambda x : getattr(x, 'mcMatchId', -99), int, mcOnly=True, help="Match to source from hard scatter (pdgId of heaviest particle in chain, 25 for H, 6 for t, 23/24 for W/Z), zero if non-prompt or fake"),
13  NTupleVariable("corr_JECUp", lambda x : getattr(x, 'corrJECUp', -99), float, help=""),
14  NTupleVariable("corr_JECDown", lambda x : getattr(x, 'corrJECDown', -99), float,help=""),
15  NTupleVariable("corr", lambda x : getattr(x, 'corr', -99), float, help=""),
16  NTupleVariable("corr_JERUp", lambda x : getattr(x, 'corrJERUp', -99), float, mcOnly=True, help=""),
17  NTupleVariable("corr_JERDown", lambda x : getattr(x, 'corrJERDown', -99), float, mcOnly=True, help=""),
18  NTupleVariable("corr_JER", lambda x : getattr(x, 'corrJER', -99), float, mcOnly=True, help=""),
19 ])


JET

Definition at line 178 of file autophobj.py.

tuple objects.autophobj.jetTypeExtra
Initial value:
1 = NTupleObjectType("jetExtra", baseObjectTypes = [ jetType ], variables = [
2  NTupleVariable("area", lambda x : x.jetArea(), help="Catchment area of jet"),
3  # QG variables:
4  NTupleVariable("qgl", lambda x :x.qgl() , float, mcOnly=False,help="QG Likelihood"),
5  NTupleVariable("ptd", lambda x : getattr(x.computeQGvars(),'ptd', 0), float, mcOnly=False,help="QG input variable: ptD"),
6  NTupleVariable("axis2", lambda x : getattr(x.computeQGvars(),'axis2', 0) , float, mcOnly=False,help="QG input variable: axis2"),
7  NTupleVariable("mult", lambda x : getattr(x.computeQGvars(),'mult', 0) , int, mcOnly=False,help="QG input variable: total multiplicity"),
8  NTupleVariable("partonId", lambda x : getattr(x,'partonId', 0), int, mcOnly=True, help="parton flavour (manually matching to status 23 particles)"),
9  NTupleVariable("partonMotherId", lambda x : getattr(x,'partonMotherId', 0), int, mcOnly=True, help="parton flavour (manually matching to status 23 particles)"),
10  NTupleVariable("nLeptons", lambda x : len(x.leptons) if hasattr(x,'leptons') else 0 , float, mcOnly=False,help="Number of associated leptons"),
11 ])

Definition at line 197 of file autophobj.py.

tuple objects.autophobj.leptonType


LEPTON

BASIC VERSION WITH ONLY MAIN LEPTON ID CRITERIA

Definition at line 48 of file autophobj.py.

Referenced by TopGenEvent.numberOfLeptons().

tuple objects.autophobj.leptonTypeExtra

EXTENDED VERSION WITH INDIVIUAL DISCRIMINATING VARIABLES.

Definition at line 81 of file autophobj.py.

tuple objects.autophobj.metType
Initial value:
1 = NTupleObjectType("met", baseObjectTypes = [ fourVectorType ], variables = [
2  NTupleVariable("sumEt", lambda x : x.sumEt() ),
3  NTupleVariable("rawPt", lambda x : x.uncorPt() ),
4  NTupleVariable("rawPhi", lambda x : x.uncorPhi() ),
5  NTupleVariable("rawSumEt", lambda x : x.uncorSumEt() ),
6  NTupleVariable("genPt", lambda x : x.genMET().pt() if x.genMET() else 0 , mcOnly=True ),
7  NTupleVariable("genPhi", lambda x : x.genMET().phi() if x.genMET() else 0, mcOnly=True ),
8  NTupleVariable("genEta", lambda x : x.genMET().eta() if x.genMET() else 0, mcOnly=True ),
9 ])


MET

Definition at line 214 of file autophobj.py.

tuple objects.autophobj.objectFloat
Initial value:
1 = NTupleObjectType("builtInType", variables = [
2  NTupleVariable("", lambda x : x),
3 ])

Definition at line 8 of file autophobj.py.

tuple objects.autophobj.objectInt
Initial value:
1 = NTupleObjectType("builtInType", variables = [
2  NTupleVariable("", lambda x : x,int),
3 ])

Definition at line 11 of file autophobj.py.

tuple objects.autophobj.particleType
Initial value:
1 = NTupleObjectType("particle", baseObjectTypes = [ fourVectorType ], variables = [
2  NTupleVariable("pdgId", lambda x : x.pdgId(), int),
3 ])

Definition at line 34 of file autophobj.py.

tuple objects.autophobj.photonType
Initial value:
1 = NTupleObjectType("gamma", baseObjectTypes = [ particleType ], variables = [
2  NTupleVariable("idCutBased", lambda x : x.idCutBased, int, help="1,2,3 if the gamma passes the loose, medium, tight WP of PhotonCutBasedID"),
3  NTupleVariable("hOverE", lambda x : x.hOVERe(), float, help="hoverE for photons"),
4  NTupleVariable("r9", lambda x : x.full5x5_r9(), float, help="r9 for photons"),
5  NTupleVariable("sigmaIetaIeta", lambda x : x.full5x5_sigmaIetaIeta(), float, help="sigmaIetaIeta for photons"),
6  NTupleVariable("chHadIso04", lambda x : x.chargedHadronIso(), float, help="chargedHadronIsolation for photons (PAT method, deltaR = 0.4)"),
7 # NTupleVariable("chHadIso", lambda x : x.chargedHadronIso('rhoArea'), float, help="chargedHadronIsolation for photons with footprint removal and pile-up correction"),
8 # NTupleVariable("phIso", lambda x : x.photonIso('rhoArea'), float, help="gammaIsolation for photons with footprint removal and pile-up correction"),
9 # NTupleVariable("neuHadIso", lambda x : x.neutralHadronIso('rhoArea'), float, help="neutralHadronIsolation for photons with footprint removal and pile-up correction"),
10  NTupleVariable("chHadIso", lambda x : x.chargedHadronIso(), float, help="chargedHadronIsolation for photons with footprint removal"),
11  NTupleVariable("phIso", lambda x : x.photonIso(), float, help="gammaIsolation for photons with footprint removal"),
12  NTupleVariable("neuHadIso", lambda x : x.neutralHadronIso(), float, help="neutralHadronIsolation for photons with footprint removal"),
13  NTupleVariable("relIso", lambda x : x.ftprRelIso03 if hasattr(x,'ftprRelIso03') else x.relIso, float, help="relativeIsolation for photons with footprint removal and pile-up correction"),
14  NTupleVariable("mcMatchId", lambda x : getattr(x, 'mcMatchId', -99), int, mcOnly=True, help="Match to source from hard scatter (pdgId of heaviest particle in chain, 25 for H, 6 for t, 23/24 for W/Z), zero if non-prompt or fake"),
15  NTupleVariable("mcPt", lambda x : x.mcGamma.pt() if getattr(x,"mcGamma",None) else 0., mcOnly=True, help="p_{T} of associated gen photon"),
16 ])


PHOTON

Definition at line 157 of file autophobj.py.

Referenced by gen::EvtGenInterface.init().

tuple objects.autophobj.tauType
Initial value:
1 = NTupleObjectType("tau", baseObjectTypes = [ particleType ], variables = [
2  NTupleVariable("charge", lambda x : x.charge(), int),
3  NTupleVariable("decayMode", lambda x : x.decayMode(), int),
4  NTupleVariable("idDecayMode", lambda x : x.idDecayMode, int),
5  NTupleVariable("idDecayModeNewDMs", lambda x : x.idDecayModeNewDMs, int),
6  NTupleVariable("dxy", lambda x : x.dxy(), help="d_{xy} of lead track with respect to PV, in cm (with sign)"),
7  NTupleVariable("dz", lambda x : x.dz() , help="d_{z} of lead track with respect to PV, in cm (with sign)"),
8  NTupleVariable("idMVA", lambda x : x.idMVA, int, help="1,2,3,4,5,6 if the tau passes the very loose to very very tight WP of the MVA3oldDMwLT discriminator"),
9  NTupleVariable("idMVANewDM", lambda x : x.idMVANewDM, int, help="1,2,3,4,5,6 if the tau passes the very loose to very very tight WP of the MVA3newDMwLT discriminator"),
10  NTupleVariable("idCI3hit", lambda x : x.idCI3hit, int, help="1,2,3 if the tau passes the loose, medium, tight WP of the By<X>CombinedIsolationDBSumPtCorr3Hits discriminator"),
11  NTupleVariable("idAntiMu", lambda x : x.idAntiMu, int, help="1,2 if the tau passes the loose/tight WP of the againstMuon<X>3 discriminator"),
12  NTupleVariable("idAntiE", lambda x : x.idAntiE, int, help="1,2,3,4,5 if the tau passes the v loose, loose, medium, tight, v tight WP of the againstElectron<X>MVA5 discriminator"),
13  NTupleVariable("isoCI3hit", lambda x : x.tauID("byCombinedIsolationDeltaBetaCorrRaw3Hits"), help="byCombinedIsolationDeltaBetaCorrRaw3Hits raw output discriminator"),
14  # MC-match info
15  NTupleVariable("mcMatchId", lambda x : getattr(x, 'mcMatchId', -99), int, mcOnly=True, help="Match to source from hard scatter (pdgId of heaviest particle in chain, 25 for H, 6 for t, 23/24 for W/Z), zero if non-prompt or fake"),
16 ])


TAU

Definition at line 123 of file autophobj.py.

tuple objects.autophobj.tlorentzFourVectorType
Initial value:
1 = NTupleObjectType("tlorentzFourVectorType", variables = [
2  NTupleVariable("pt", lambda x : x.Pt()),
3  NTupleVariable("eta", lambda x : x.Eta()),
4  NTupleVariable("phi", lambda x : x.Phi()),
5  NTupleVariable("energy", lambda x : x.E()),
6 ])

Definition at line 28 of file autophobj.py.

tuple objects.autophobj.twoVectorType
Initial value:
1 = NTupleObjectType("twoVector", variables = [
2  NTupleVariable("pt", lambda x : x.pt()),
3  NTupleVariable("phi", lambda x : x.phi()),
4 ])

Definition at line 15 of file autophobj.py.

tuple objects.autophobj.weightsInfoType
Initial value:
1 = NTupleObjectType("WeightsInfo", mcOnly=True, variables = [
2  NTupleVariable("id", lambda x : x.id, int),
3  NTupleVariable("wgt", lambda x : x.wgt),
4 ])

Definition at line 38 of file autophobj.py.