VSPhysicsTools - CVS

  • CVS
  • Features are currently disabled
  • Will produce ValueMaps? for σηηiηiη and σφφ given an input collection of electrons
  • Is dependent on a new version RecoEcal/EgammaCoreTools found here: lxplus:~sani/public/rr/RecoEcal/EgammaCoreTools/

  • CVS
  • Two new modules are defined in the plugins directory:
    • CandViewStringCutAndCountSelector which can take any object inheriting from reco::Candidate and create a new collection given the option passed
    • can be used like:
cutAndCountSelector = cms.EDFilter("CandViewStringCutAndCountSelector",
    src = cms.InputTag("allLayer1Electrons"),
    cut = cms.string("pt > 5 && abs(eta) < 1.6"),
    minNumber = cms.uint32(1)
)
  • GenParticleSelector is similar but doesn't have a min cut associated to it and it works on GenParticles:
genParticleSelector = cms.EDFilter("GenParticleSelector",
    src = cms.InputTag("genParticles"),
    cut = cms.string('pt > 5. && abs(eta) < 2.5 && abs(pdgId) == 11')
)

  • CVS
  • plugins/GenEffParticleProducer.cc creates a new collection of GenEffParticles? given an old collection of GenParticles and collection of anything that inherits from reco::Candidate
genEffParticleProducer = cms.EDProducer("GenEffParticleProducer",
    src = cms.InputTag("genElectrons"),
    reco = cms.InputTag("pixelMatchGsfElectrons"),
    dRMin = cms.untracked.double(0.2)
)

  • CVS
  • Two more 'advanced' PAT electron and muon filters. They were written before mwl knew about the cool string parser, but if there is anything the string parser cannot handle then we can add stuff to these modules for more advanced filtering.
  • Current options that can be passed:
    • PatElectronFilterProducer
    src = cms.InputTag('selectedLayer1Electrons'),
    ptMin = cms.untracked.double(5.0),
    ptMax = cms.untracked.double(999999.0),
    etaMin = cms.untracked.double(-5.0),
    etaMax = cms.untracked.double(5.0),
    eID = cms.untracked.vstring(    ),
    eIDVal = cms.untracked.vdouble(  ),
    classValues = cms.untracked.vint32( ),
    nhits = cms.untracked.int32(0),
    x2dof = cms.untracked.double(999999.0),
    d0 = cms.untracked.double(999999.0),
    dz = cms.untracked.double(999999.0),
    • PatMuonFilterProducer
    src = cms.InputTag('selectedLayer1Muons'),
    ptMin = cms.untracked.double(0.0),
    ptMax = cms.untracked.double(999999.0),
    etaMin = cms.untracked.double(-5.0),
    etaMax = cms.untracked.double(5.0),
    muType = cms.untracked.vint32(   ),
    caloCompat = cms.untracked.double(0.0),
    segmentCompat = cms.untracked.double(0.0),
    nhitsTk = cms.untracked.int32(0),
    x2dofTk = cms.untracked.double(999999.0),
    d0Tk = cms.untracked.double(999999.0),
    dzTk = cms.untracked.double(999999.0),
    nhitsMu = cms.untracked.int32(0),
    x2dofMu = cms.untracked.double(999999.0),
    d0Mu = cms.untracked.double(999999.0),
    dzMu = cms.untracked.double(999999.0),

  • CVS
  • This is my baby, sweet sweet functionality.
  • This sucker will automatically make N-1 plots based on the TriggerBits given in the src parameter
  • You can then name Trigger Paths that you do not want to be included in the N-1 histograms using either the toSkipNames or the toSkipBits, or BOTH!
  • Then, are you ready for this?, you can specify an arbitrary number of plots to make. This will take any collection that has reco::Candidate as it's base class and using the string parser, allow you make make any plot that is a function of reco::Candidate. It also allows you to apply a selection which works the same way, any boolean expression of reco::Candidate functions:
    plotsInfo = cms.untracked.VPSet(
        cms.PSet(
            src = cms.untracked.InputTag("genParticles"),
            label = cms.untracked.string("genZMass"),
            plotVariable = cms.untracked.string("mass"),
            selection = cms.untracked.string("pdgId == 23"),
            nbins = cms.untracked.uint32(50),
            low = cms.untracked.double(31.19),
            high = cms.untracked.double(151.19),
            title = cms.untracked.string("Generated Z-Mass"),
            xtitle = cms.untracked.string("M_{Z} [GeV]")
        ),
        cms.PSet(
            src = cms.untracked.InputTag("zToElpElm"),
            label = cms.untracked.string("zPt"),
            plotVariable = cms.untracked.string("pt"),
            selection = cms.untracked.string("1"),
            nbins = cms.untracked.uint32(50),
            low = cms.untracked.double(0),
            high = cms.untracked.double(200),
            title = cms.untracked.string("Z P_{T}"),
            xtitle = cms.untracked.string("P_{T} [GeV]")
        ),
    ),

CVS

  • Just a test right now, ignore me.

Topic revision: r3 - 2009/06/02 - 02:01:12 - MatthewLeBourgeois
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback