Пример #1
0
# Add the VertexComposite tree
from VertexCompositeAnalysis.VertexCompositeAnalyzer.particle_tree_cff import particleAna
process.lambdacAna = particleAna.clone(
    recoParticles=cms.InputTag("LambdaC"),
    selectEvents=cms.string("eventFilterStep"),
    nTracksVMap=cms.untracked.InputTag('nTracks'),
    addSource=cms.untracked.bool(False),
    saveTree=cms.untracked.bool(False),
    # trigger information
    triggerResults=cms.untracked.InputTag("TriggerResults::HLT"),
    triggerEvent=cms.untracked.InputTag("hltTriggerSummaryAOD::HLT"),
    triggerInfo=cms.untracked.VPSet([
        # Other triggers
        cms.PSet(path=cms.string('HLT_PAFullTracks_Multiplicity120_v')
                 ),  # High multiplicity
        cms.PSet(path=cms.string(
            'HLT_PAFullTracks_Multiplicity150_v')),  # High multiplicity
        cms.PSet(path=cms.string('HLT_PAFullTracks_Multiplicity185_part'),
                 lumiInfo=cms.InputTag("lumiInfoHM",
                                       "brilcalc")),  # High multiplicity
        cms.PSet(path=cms.string(
            'HLT_PAFullTracks_Multiplicity250_v')),  # High multiplicity
        cms.PSet(
            path=cms.string('HLT_PAL1MinimumBiasHF_OR_SinglePixelTrack_part'),
            lumiInfo=cms.InputTag("lumiInfoMB", "brilcalc")),  # Minimum bias
    ]),
    # luminosity information
    lumiInfo=cms.untracked.InputTag("lumiInfo", "brilcalc"),
    lumiScalers=cms.untracked.InputTag("scalersRawToDigi"),
)
process.eventAna = particleAna.clone(
    # reconstructed information
Пример #2
0
                                 "&& numberOfValidHits >=11"),
            finalSelection=cms.string(
                "abs(userFloat('dzSig')) < 3 && abs(userFloat('dxySig')) < 3")
        ),
    ]),
)

# Define the analysis steps
process.rereco_step = cms.Path(process.eventFilter * process.nTracks *
                               process.kShort * process.LambdaC)

# Add the VertexComposite tree
from VertexCompositeAnalysis.VertexCompositeAnalyzer.particle_tree_cff import particleAna
process.lambdacAna = particleAna.clone(
    recoParticles=cms.InputTag("LambdaC"),
    selectEvents=cms.string("eventFilterStep"),
    nTracksVMap=cms.untracked.InputTag('nTracks'),
    addSource=cms.untracked.bool(False),
    saveTree=cms.untracked.bool(False))

# Define the output
process.TFileService = cms.Service("TFileService",
                                   fileName=cms.string('lambdacana.root'))
process.p = cms.EndPath(process.lambdacAna)

# Define the process schedule
process.schedule = cms.Schedule(process.rereco_step, process.p)

# Add the event selection filters, will be used by tree producer
process.Flag_colEvtSel = cms.Path(process.colEvtSel)
process.Flag_hfCoincFilter = cms.Path(process.hfCoincFilter)
process.Flag_primaryVertexFilterPA = cms.Path(process.primaryVertexFilterPA)