Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-07-15 22:06:31

0001 import FWCore.ParameterSet.Config as cms
0002 from PhysicsTools.NanoAOD.common_cff import *
0003 from PhysicsTools.NanoAOD.nano_cff import nanoMetadata
0004 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
0005 
0006 hltUpgradeNanoTask = cms.Task(nanoMetadata)
0007 
0008 hltTiclCandidateTable = cms.EDProducer(
0009     "TICLCandidateTableProducer",
0010     skipNonExistingSrc=cms.bool(True),
0011     src=cms.InputTag("hltTiclTrackstersMerge"),
0012     cut=cms.string(""),
0013     name=cms.string("hltTICLCandidates"),
0014     doc=cms.string("TICLCandidates"),
0015     singleton=cms.bool(False),  # the number of entries is variable
0016     variables=cms.PSet(
0017         raw_energy=Var("rawEnergy", "float",
0018                        doc="Raw Energy of the TICLCandidate [GeV]"),
0019         pt=Var(
0020             "pt", "float", doc="TICLCandidate pT, computed from trackster raw energy and direction or from associated track [GeV]"),
0021         p=Var(
0022             "p", "float", doc="TICLCandidate momentum magnitude, computed from trackster raw energy and direction or from associated track [GeV]"),
0023         px=Var(
0024             "px", "float", doc="TICLCandidate x component of mementum, computed from trackster raw energy and direction or from associated track [GeV]"),
0025         py=Var(
0026             "py", "float", doc="TICLCandidate y component of mementum, computed from trackster raw energy and direction or from associated track [GeV]"),
0027         pz=Var(
0028             "pz", "float", doc="TICLCandidate z component of mementum, computed from trackster raw energy and direction or from associated track [GeV]"),
0029         energy=Var("energy", "float",
0030                              doc="Energy of the TICLCandidate, computed from the raw energy of the associated Trackster or from the associated track"),
0031         eta=Var(
0032             "eta", "float", doc="TICLCandidate pseudorapidity, derived from p4 built from associated Tracksters or from associated Track"),
0033         phi=Var(
0034             "phi", "float", doc="TICLCandidate phi, derived from p4 built from associated Tracksters or from associated Track"),
0035         mass=Var(
0036             "mass", "float", doc="TICLCandidate mass"),
0037         pdgID=Var(
0038             "pdgId", "int", doc="TICLCandidate assigned pdgID"),
0039         charge=Var(
0040             "charge", "int", doc="TICLCandidate assigned charge"),
0041         time=Var("time", "float", doc="TICLCandidate time, obtained from combination HGCAL and MTD time (offline) or HGCAL only (HLT)"),
0042         timeError=Var("timeError", "float",
0043                       doc="Trackster HGCAL time error"),
0044         MTDtime=Var("MTDtime", "float",
0045                     doc="TICLCandidate associated MTDTime, meaningful only for offline reconstruction"),
0046         MTDtimeError=Var("MTDtimeError", "float",
0047                          doc="Trackster associated MTD time error, meaningful only for offline reconstruction"),
0048         trackIdx=Var("trackPtr().key", "int",
0049                      doc="Index of hltGeneralTrack associated with TICLCandidate")
0050     ),
0051 )
0052 
0053 
0054 hltSimTiclCandidateTable = cms.EDProducer(
0055     "TICLCandidateTableProducer",
0056     skipNonExistingSrc=cms.bool(True),
0057     src=cms.InputTag("hltTiclSimTracksters"),
0058     cut=cms.string(""),
0059     name=cms.string("hltSimTICLCandidates"),
0060     doc=cms.string("SimTICLCandidates"),
0061     singleton=cms.bool(False),  # the number of entries is variable
0062     variables=cms.PSet(
0063         raw_energy=Var("rawEnergy", "float",
0064                        doc="Raw Energy of the TICLCandidate [GeV]"),
0065         pt=Var(
0066             "pt", "float", doc="TICLCandidate pT, computed from trackster raw energy and direction or from associated track [GeV]"),
0067         p=Var(
0068             "p", "float", doc="TICLCandidate momentum magnitude, computed from trackster raw energy and direction or from associated track [GeV]"),
0069         px=Var(
0070             "px", "float", doc="TICLCandidate x component of mementum, computed from trackster raw energy and direction or from associated track [GeV]"),
0071         py=Var(
0072             "py", "float", doc="TICLCandidate y component of mementum, computed from trackster raw energy and direction or from associated track [GeV]"),
0073         pz=Var(
0074             "pz", "float", doc="TICLCandidate z component of mementum, computed from trackster raw energy and direction or from associated track [GeV]"),
0075         energy=Var("energy", "float",
0076                              doc="Energy of the TICLCandidate, computed from the raw energy of the associated Trackster or from the associated track"),
0077         eta=Var(
0078             "eta", "float", doc="TICLCandidate pseudorapidity, derived from p4 built from associated Tracksters or from associated Track"),
0079         phi=Var(
0080             "phi", "float", doc="TICLCandidate phi, derived from p4 built from associated Tracksters or from associated Track"),
0081         mass=Var(
0082             "mass", "float", doc="TICLCandidate mass"),
0083         pdgID=Var(
0084             "pdgId", "int", doc="TICLCandidate assigned pdgID"),
0085         charge=Var(
0086             "charge", "int", doc="TICLCandidate assigned charge"),
0087         time=Var("time", "float", doc="TICLCandidate time, obtained from combination HGCAL and MTD time (offline) or HGCAL only (HLT)"),
0088         timeError=Var("timeError", "float",
0089                       doc="Trackster HGCAL time error"),
0090         MTDtime=Var("MTDtime", "float",
0091                     doc="TICLCandidate associated MTDTime, meaningful only for offline reconstruction"),
0092         MTDtimeError=Var("MTDtimeError", "float",
0093                          doc="Trackster associated MTD time error, meaningful only for offline reconstruction"),
0094         trackIdx=Var("trackPtr().key", "int",
0095                      doc="Index of hltGeneralTrack associated with TICLCandidate")
0096     ),
0097 )
0098 hltTiclCandidateExtraTable = cms.EDProducer(
0099     "TICLCandidateExtraTableProducer",
0100     src = cms.InputTag("hltTiclTrackstersMerge"),
0101     name = cms.string("Candidate2Tracksters"),
0102     doc = cms.string("TICLCandidates extra table with linked Tracksters"),
0103     collectionVariables = cms.PSet(
0104         tracksters = cms.PSet(
0105             name = cms.string("Candidate2TrackstersIndices"),
0106             doc = cms.string("Tracksters linked to TICLCandidates"),
0107             useCount = cms.bool(True),
0108             useOffset = cms.bool(False),
0109             variables = cms.PSet() 
0110         ),
0111     ),
0112 )
0113 
0114 hltSimTiclCandidateExtraTable = cms.EDProducer(
0115     "TICLCandidateExtraTableProducer",
0116     src = cms.InputTag("hltTiclSimTracksters"),
0117     name = cms.string("SimCandidate2Tracksters"),
0118     doc = cms.string("TICLCandidates extra table with linked Tracksters"),
0119     collectionVariables = cms.PSet(
0120         tracksters = cms.PSet(
0121             name = cms.string("SimCandidate2TrackstersIndices"),
0122             doc = cms.string("Tracksters linked to SimTICLCandidates"),
0123             useCount = cms.bool(True),
0124             useOffset = cms.bool(False),
0125             variables = cms.PSet() 
0126         ),
0127     ),
0128 )
0129 
0130 ticl_v5.toModify(hltTiclCandidateTable, src = cms.InputTag('hltTiclCandidate'))
0131 ticl_v5.toModify(hltTiclCandidateExtraTable, src = cms.InputTag('hltTiclCandidate'))