CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
l1t::stage1::legacy::ForwardJetUnpacker Class Reference
Inheritance diagram for l1t::stage1::legacy::ForwardJetUnpacker:
l1t::Unpacker

Public Member Functions

virtual bool unpack (const Block &block, UnpackerCollections *coll) override
 

Detailed Description

Definition at line 76 of file LegacyPhysCandUnpacker.cc.

Member Function Documentation

bool l1t::stage1::legacy::ForwardJetUnpacker::unpack ( const Block block,
UnpackerCollections coll 
)
overridevirtual

Implements l1t::Unpacker.

Definition at line 125 of file LegacyPhysCandUnpacker.cc.

References coll, l1t::L1Candidate::hwQual(), j, LaserDQM_cfg::process, and l1t::L1Candidate::setHwQual().

126  {
127  auto res = static_cast<CaloCollections*>(coll)->getJets();
128 
129  if (res->size(0) != 4)
130  edm::LogWarning("L1T") << "Need to unpack central jets before forward ones";
131 
132  return process(block, res, [](l1t::Jet j) { j.setHwQual(j.hwQual() | 2); return j; });
133  }
void setHwQual(int qual)
Definition: L1Candidate.cc:64
Definition: Jet.h:13
int j
Definition: DBlmapReader.cc:9
int hwQual() const
Definition: L1Candidate.cc:89
JetCorrectorParametersCollection coll
Definition: classes.h:10
tuple process
Definition: LaserDQM_cfg.py:3