CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
L1RetrieveL1Extra Class Reference

#include <L1RetrieveL1Extra.h>

Public Member Functions

const edm::InputTag inputTagL1ExtraColl (const L1GtObject &) const
 input tag for a given collection More...
 
const
l1extra::L1JetParticleCollection
l1ExtraCenJet () const
 
const
l1extra::L1EtMissParticleCollection
l1ExtraETM () const
 
const
l1extra::L1EtMissParticleCollection
l1ExtraETT () const
 
const
l1extra::L1JetParticleCollection
l1ExtraForJet () const
 
const
l1extra::L1HFRingsCollection
l1ExtraHfBitCounts () const
 
const
l1extra::L1HFRingsCollection
l1ExtraHfRingEtSums () const
 
const
l1extra::L1EtMissParticleCollection
l1ExtraHTM () const
 
const
l1extra::L1EtMissParticleCollection
l1ExtraHTT () const
 
const
l1extra::L1EmParticleCollection
l1ExtraIsoEG () const
 
const
l1extra::L1MuonParticleCollection
l1ExtraMuon () const
 return retrieved L1Extra collections More...
 
const
l1extra::L1EmParticleCollection
l1ExtraNoIsoEG () const
 
const
l1extra::L1JetParticleCollection
l1ExtraTauJet () const
 
 L1RetrieveL1Extra (const edm::ParameterSet &)
 
void printL1Extra (std::ostream &oStr, const L1GtObject &gtObject, const bool checkBxInEvent, const int bxInEvent, const bool checkObjIndexInColl, const int objIndexInColl) const
 
void printL1Extra (std::ostream &, const L1GtObject &, const int bxInEvent) const
 print all L1GtObject objects from bxInEvent More...
 
void printL1Extra (std::ostream &, const L1GtObject &) const
 print all L1GtObject objects from all bxInEvent More...
 
void printL1Extra (std::ostream &, const int bxInEvent) const
 print all L1Extra collections from a given BxInEvent More...
 
void printL1Extra (std::ostream &) const
 print all L1Extra collections from all BxInEvent More...
 
void retrieveL1ExtraObjects (const edm::Event &, const edm::EventSetup &)
 
const bool validL1ExtraCenJet () const
 
const bool validL1ExtraColl (const L1GtObject &) const
 
const bool validL1ExtraETM () const
 
const bool validL1ExtraETT () const
 
const bool validL1ExtraForJet () const
 
const bool validL1ExtraHfBitCounts () const
 
const bool validL1ExtraHfRingEtSums () const
 
const bool validL1ExtraHTM () const
 
const bool validL1ExtraHTT () const
 
const bool validL1ExtraIsoEG () const
 
const bool validL1ExtraMuon () const
 validity for retrieval of L1Extra products (false: product not found) More...
 
const bool validL1ExtraNoIsoEG () const
 
const bool validL1ExtraTauJet () const
 
virtual ~L1RetrieveL1Extra ()
 

Private Attributes

const
l1extra::L1JetParticleCollection
m_l1ExtraCenJet
 
const
l1extra::L1EtMissParticleCollection
m_l1ExtraETM
 
const
l1extra::L1EtMissParticleCollection
m_l1ExtraETT
 
const
l1extra::L1JetParticleCollection
m_l1ExtraForJet
 
const
l1extra::L1HFRingsCollection
m_l1ExtraHfBitCounts
 
const
l1extra::L1HFRingsCollection
m_l1ExtraHfRingEtSums
 
const
l1extra::L1EtMissParticleCollection
m_l1ExtraHTM
 
const
l1extra::L1EtMissParticleCollection
m_l1ExtraHTT
 
const
l1extra::L1EmParticleCollection
m_l1ExtraIsoEG
 
const
l1extra::L1MuonParticleCollection
m_l1ExtraMuon
 retrieved L1Extra collections More...
 
const
l1extra::L1EmParticleCollection
m_l1ExtraNoIsoEG
 
const
l1extra::L1JetParticleCollection
m_l1ExtraTauJet
 
int m_nrBxInEventGct
 
int m_nrBxInEventGmt
 
edm::InputTag m_tagL1ExtraCenJet
 
edm::InputTag m_tagL1ExtraEtMissHTM
 
edm::InputTag m_tagL1ExtraEtMissMET
 
edm::InputTag m_tagL1ExtraForJet
 
edm::InputTag m_tagL1ExtraHFRings
 
edm::InputTag m_tagL1ExtraIsoEG
 
edm::InputTag m_tagL1ExtraMuon
 input parameters More...
 
edm::InputTag m_tagL1ExtraNoIsoEG
 
edm::InputTag m_tagL1ExtraTauJet
 
bool m_validL1ExtraCenJet
 
bool m_validL1ExtraETM
 
bool m_validL1ExtraETT
 
bool m_validL1ExtraForJet
 
bool m_validL1ExtraHfBitCounts
 
bool m_validL1ExtraHfRingEtSums
 
bool m_validL1ExtraHTM
 
bool m_validL1ExtraHTT
 
bool m_validL1ExtraIsoEG
 
bool m_validL1ExtraMuon
 validity for retrieval of L1Extra products (false: product not found) More...
 
bool m_validL1ExtraNoIsoEG
 
bool m_validL1ExtraTauJet
 

Detailed Description

Description: retrieve L1Extra collection, return validity flag and pointer to collection.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 56 of file L1RetrieveL1Extra.h.

Constructor & Destructor Documentation

L1RetrieveL1Extra::L1RetrieveL1Extra ( const edm::ParameterSet paramSet)
explicit

Definition at line 32 of file L1RetrieveL1Extra.cc.

32  :
33  //
34  m_tagL1ExtraMuon(paramSet.getParameter<edm::InputTag>("TagL1ExtraMuon")),
35  m_tagL1ExtraIsoEG(paramSet.getParameter<edm::InputTag>("TagL1ExtraIsoEG")),
36  m_tagL1ExtraNoIsoEG(paramSet.getParameter<edm::InputTag>("TagL1ExtraNoIsoEG")),
37  m_tagL1ExtraCenJet(paramSet.getParameter<edm::InputTag>("TagL1ExtraCenJet")),
38  m_tagL1ExtraForJet(paramSet.getParameter<edm::InputTag>("TagL1ExtraForJet")),
39  m_tagL1ExtraTauJet(paramSet.getParameter<edm::InputTag>("TagL1ExtraTauJet")),
40  m_tagL1ExtraEtMissMET(paramSet.getParameter<edm::InputTag>("TagL1ExtraEtMissMET")),
41  m_tagL1ExtraEtMissHTM(paramSet.getParameter<edm::InputTag>("TagL1ExtraEtMissHTM")),
42  m_tagL1ExtraHFRings(paramSet.getParameter<edm::InputTag>("TagL1ExtraHFRings")),
43  //
44  //
45  m_validL1ExtraMuon(false),
46  m_validL1ExtraIsoEG(false),
47  m_validL1ExtraNoIsoEG(false),
48  m_validL1ExtraCenJet(false),
49  m_validL1ExtraForJet(false),
50  m_validL1ExtraTauJet(false),
51  m_validL1ExtraETT(false),
52  m_validL1ExtraETM(false),
53  m_validL1ExtraHTT(false),
54  m_validL1ExtraHTM(false),
57 
58  //
59  m_l1ExtraMuon(0),
60  m_l1ExtraIsoEG(0),
62  m_l1ExtraCenJet(0),
63  m_l1ExtraForJet(0),
64  m_l1ExtraTauJet(0),
65  m_l1ExtraETT(0),
66  m_l1ExtraETM(0),
67  m_l1ExtraHTT(0),
68  m_l1ExtraHTM(0),
71  //
72 
73  {
74 
75  // empty
76 }
edm::InputTag m_tagL1ExtraNoIsoEG
T getParameter(std::string const &) const
const l1extra::L1JetParticleCollection * m_l1ExtraForJet
const l1extra::L1EtMissParticleCollection * m_l1ExtraETT
edm::InputTag m_tagL1ExtraIsoEG
edm::InputTag m_tagL1ExtraMuon
input parameters
const l1extra::L1EtMissParticleCollection * m_l1ExtraHTM
const l1extra::L1JetParticleCollection * m_l1ExtraCenJet
edm::InputTag m_tagL1ExtraCenJet
bool m_validL1ExtraMuon
validity for retrieval of L1Extra products (false: product not found)
const l1extra::L1EmParticleCollection * m_l1ExtraIsoEG
const l1extra::L1JetParticleCollection * m_l1ExtraTauJet
edm::InputTag m_tagL1ExtraEtMissHTM
edm::InputTag m_tagL1ExtraForJet
edm::InputTag m_tagL1ExtraTauJet
const l1extra::L1EtMissParticleCollection * m_l1ExtraETM
const l1extra::L1EtMissParticleCollection * m_l1ExtraHTT
edm::InputTag m_tagL1ExtraEtMissMET
const l1extra::L1HFRingsCollection * m_l1ExtraHfRingEtSums
const l1extra::L1EmParticleCollection * m_l1ExtraNoIsoEG
const l1extra::L1MuonParticleCollection * m_l1ExtraMuon
retrieved L1Extra collections
edm::InputTag m_tagL1ExtraHFRings
const l1extra::L1HFRingsCollection * m_l1ExtraHfBitCounts
L1RetrieveL1Extra::~L1RetrieveL1Extra ( )
virtual

Definition at line 79 of file L1RetrieveL1Extra.cc.

79  {
80 
81  // empty
82 
83 }

Member Function Documentation

const edm::InputTag L1RetrieveL1Extra::inputTagL1ExtraColl ( const L1GtObject gtObject) const

input tag for a given collection

Definition at line 272 of file L1RetrieveL1Extra.cc.

References BPTX, CenJet, ETM, ETT, ForJet, GtExternal, HfBitCounts, HfRingEtSums, HTM, HTT, IsoEG, JetCounts, m_tagL1ExtraCenJet, m_tagL1ExtraEtMissHTM, m_tagL1ExtraEtMissMET, m_tagL1ExtraForJet, m_tagL1ExtraHFRings, m_tagL1ExtraIsoEG, m_tagL1ExtraMuon, m_tagL1ExtraNoIsoEG, m_tagL1ExtraTauJet, Mu, NoIsoEG, ObjNull, TauJet, and TechTrig.

Referenced by printL1Extra().

272  {
273 
274  edm::InputTag emptyInputTag;
275 
276  switch (gtObject) {
277 
278  case Mu: {
279  return m_tagL1ExtraMuon;
280  }
281  break;
282 
283  case NoIsoEG: {
284  return m_tagL1ExtraNoIsoEG;
285  }
286  break;
287 
288  case IsoEG: {
289  return m_tagL1ExtraIsoEG;
290  }
291  break;
292 
293  case CenJet: {
294  return m_tagL1ExtraCenJet;
295  }
296  break;
297 
298  case ForJet: {
299  return m_tagL1ExtraForJet;
300  }
301  break;
302 
303  case TauJet: {
304  return m_tagL1ExtraTauJet;
305  }
306  break;
307 
308  case ETM:
309  case ETT: {
310  return m_tagL1ExtraEtMissMET;
311  }
312  break;
313 
314  case HTT:
315  case HTM: {
316  return m_tagL1ExtraEtMissHTM;
317  }
318  break;
319 
320  case JetCounts: {
321  // TODO update when JetCounts will be available
322  return emptyInputTag;
323  }
324  break;
325 
326  case HfBitCounts:
327  case HfRingEtSums: {
328  return m_tagL1ExtraHFRings;
329  }
330  break;
331 
332  case TechTrig: {
333  return emptyInputTag;
334  }
335  break;
336 
337  case Castor: {
338  return emptyInputTag;
339  }
340  break;
341 
342  case BPTX: {
343  return emptyInputTag;
344  }
345  break;
346 
347  case GtExternal: {
348  return emptyInputTag;
349  }
350  break;
351 
352  case ObjNull: {
353  return emptyInputTag;
354  }
355  break;
356 
357  default: {
358  edm::LogInfo("L1GtObject") << "\n '" << gtObject
359  << "' is not a recognized L1GtObject. ";
360 
361  return emptyInputTag;
362 
363  }
364  break;
365  }
366 
367  return emptyInputTag;
368 }
edm::InputTag m_tagL1ExtraNoIsoEG
Definition: L1GtObject.h:39
edm::InputTag m_tagL1ExtraIsoEG
Definition: L1GtObject.h:36
edm::InputTag m_tagL1ExtraMuon
input parameters
Definition: L1GtObject.h:38
edm::InputTag m_tagL1ExtraCenJet
edm::InputTag m_tagL1ExtraEtMissHTM
edm::InputTag m_tagL1ExtraForJet
edm::InputTag m_tagL1ExtraTauJet
Definition: L1GtObject.h:30
edm::InputTag m_tagL1ExtraEtMissMET
Definition: L1GtObject.h:37
edm::InputTag m_tagL1ExtraHFRings
const l1extra::L1JetParticleCollection* L1RetrieveL1Extra::l1ExtraCenJet ( ) const
inline

Definition at line 140 of file L1RetrieveL1Extra.h.

References m_l1ExtraCenJet.

Referenced by L1ExtraDQM::analyzeL1ExtraCenJet().

140  {
141  return m_l1ExtraCenJet;
142  }
const l1extra::L1JetParticleCollection * m_l1ExtraCenJet
const l1extra::L1EtMissParticleCollection* L1RetrieveL1Extra::l1ExtraETM ( ) const
inline

Definition at line 153 of file L1RetrieveL1Extra.h.

References m_l1ExtraETM.

Referenced by L1ExtraDQM::analyzeL1ExtraETM().

153  {
154  return m_l1ExtraETM;
155  }
const l1extra::L1EtMissParticleCollection * m_l1ExtraETM
const l1extra::L1EtMissParticleCollection* L1RetrieveL1Extra::l1ExtraETT ( ) const
inline

Definition at line 150 of file L1RetrieveL1Extra.h.

References m_l1ExtraETT.

Referenced by L1ExtraDQM::analyzeL1ExtraETT().

150  {
151  return m_l1ExtraETT;
152  }
const l1extra::L1EtMissParticleCollection * m_l1ExtraETT
const l1extra::L1JetParticleCollection* L1RetrieveL1Extra::l1ExtraForJet ( ) const
inline

Definition at line 143 of file L1RetrieveL1Extra.h.

References m_l1ExtraForJet.

Referenced by L1ExtraDQM::analyzeL1ExtraForJet().

143  {
144  return m_l1ExtraForJet;
145  }
const l1extra::L1JetParticleCollection * m_l1ExtraForJet
const l1extra::L1HFRingsCollection* L1RetrieveL1Extra::l1ExtraHfBitCounts ( ) const
inline

Definition at line 163 of file L1RetrieveL1Extra.h.

References m_l1ExtraHfBitCounts.

Referenced by L1ExtraDQM::analyzeL1ExtraHfBitCounts().

163  {
164  return m_l1ExtraHfBitCounts;
165  }
const l1extra::L1HFRingsCollection * m_l1ExtraHfBitCounts
const l1extra::L1HFRingsCollection* L1RetrieveL1Extra::l1ExtraHfRingEtSums ( ) const
inline

Definition at line 166 of file L1RetrieveL1Extra.h.

References m_l1ExtraHfRingEtSums.

Referenced by L1ExtraDQM::analyzeL1ExtraHfRingEtSums().

166  {
167  return m_l1ExtraHfRingEtSums;
168  }
const l1extra::L1HFRingsCollection * m_l1ExtraHfRingEtSums
const l1extra::L1EtMissParticleCollection* L1RetrieveL1Extra::l1ExtraHTM ( ) const
inline

Definition at line 159 of file L1RetrieveL1Extra.h.

References m_l1ExtraHTM.

Referenced by L1ExtraDQM::analyzeL1ExtraHTM().

159  {
160  return m_l1ExtraHTM;
161  }
const l1extra::L1EtMissParticleCollection * m_l1ExtraHTM
const l1extra::L1EtMissParticleCollection* L1RetrieveL1Extra::l1ExtraHTT ( ) const
inline

Definition at line 156 of file L1RetrieveL1Extra.h.

References m_l1ExtraHTT.

Referenced by L1ExtraDQM::analyzeL1ExtraHTT().

156  {
157  return m_l1ExtraHTT;
158  }
const l1extra::L1EtMissParticleCollection * m_l1ExtraHTT
const l1extra::L1EmParticleCollection* L1RetrieveL1Extra::l1ExtraIsoEG ( ) const
inline

Definition at line 133 of file L1RetrieveL1Extra.h.

References m_l1ExtraIsoEG.

Referenced by L1ExtraDQM::analyzeL1ExtraIsoEG().

133  {
134  return m_l1ExtraIsoEG;
135  }
const l1extra::L1EmParticleCollection * m_l1ExtraIsoEG
const l1extra::L1MuonParticleCollection* L1RetrieveL1Extra::l1ExtraMuon ( ) const
inline

return retrieved L1Extra collections

Definition at line 129 of file L1RetrieveL1Extra.h.

References m_l1ExtraMuon.

Referenced by L1ExtraDQM::analyzeL1ExtraMuon().

129  {
130  return m_l1ExtraMuon;
131  }
const l1extra::L1MuonParticleCollection * m_l1ExtraMuon
retrieved L1Extra collections
const l1extra::L1EmParticleCollection* L1RetrieveL1Extra::l1ExtraNoIsoEG ( ) const
inline

Definition at line 136 of file L1RetrieveL1Extra.h.

References m_l1ExtraNoIsoEG.

Referenced by L1ExtraDQM::analyzeL1ExtraNoIsoEG().

136  {
137  return m_l1ExtraNoIsoEG;
138  }
const l1extra::L1EmParticleCollection * m_l1ExtraNoIsoEG
const l1extra::L1JetParticleCollection* L1RetrieveL1Extra::l1ExtraTauJet ( ) const
inline

Definition at line 146 of file L1RetrieveL1Extra.h.

References m_l1ExtraTauJet.

Referenced by L1ExtraDQM::analyzeL1ExtraTauJet().

146  {
147  return m_l1ExtraTauJet;
148  }
const l1extra::L1JetParticleCollection * m_l1ExtraTauJet
void L1RetrieveL1Extra::printL1Extra ( std::ostream &  oStr,
const L1GtObject gtObject,
const bool  checkBxInEvent,
const int  bxInEvent,
const bool  checkObjIndexInColl,
const int  objIndexInColl 
) const

user-friendly print of L1Extra TODO should have been defined in DataFormats for L1Extra collections... print L1GtObject object from bxInEvent, if checkBxInEvent is true, having the objIndexInColl order index in collection, if checkObjIndexInColl is true if checkBxInEvent and /or checkObjIndexInColl are false, print the objects without the bxInEvent and / or objIndexInColl check the combination checkBxInEvent = false, checkObjIndexInColl = true not supported

Definition at line 478 of file L1RetrieveL1Extra.cc.

References BPTX, CenJet, ETM, ETT, ForJet, GtExternal, HfBitCounts, HfRingEtSums, HTM, HTT, inputTagL1ExtraColl(), IsoEG, JetCounts, l1extra::L1HFRings::kNumRings, l1GtObjectEnumToString(), m_l1ExtraCenJet, m_l1ExtraETM, m_l1ExtraETT, m_l1ExtraForJet, m_l1ExtraHfBitCounts, m_l1ExtraHfRingEtSums, m_l1ExtraHTM, m_l1ExtraHTT, m_l1ExtraIsoEG, m_l1ExtraMuon, m_l1ExtraNoIsoEG, m_l1ExtraTauJet, Mu, NoIsoEG, ObjNull, TauJet, TechTrig, and validL1ExtraColl().

Referenced by L1GtAnalyzer::analyzeTrigger(), and printL1Extra().

481  {
482 
483  if (!validL1ExtraColl(gtObject)) {
484  oStr << "\n L1Extra collection for L1 GT object "
485  << l1GtObjectEnumToString(gtObject)
486  << " with collection input tag " << inputTagL1ExtraColl(
487  gtObject) << " not valid." << std::endl;
488  }
489 
490  switch (gtObject) {
491 
492  case Mu: {
493  oStr << "\n Mu collection\n" << std::endl;
494 
495  int indexInColl = -1;
496 
497  for (l1extra::L1MuonParticleCollection::const_iterator iterColl =
498  m_l1ExtraMuon->begin(); iterColl
499  != m_l1ExtraMuon->end(); ++iterColl) {
500 
501  if (checkBxInEvent) {
502  if (iterColl->bx() != bxInEvent) {
503  continue;
504  oStr << "\n BxInEvent " << bxInEvent
505  << ": collection not in the event" << std::endl;
506  } else {
507 
508  indexInColl++;
509 
510  if (!checkObjIndexInColl) {
511  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
512  << " indexInColl = " << indexInColl
513  << " PT = " << std::right << std::setw(6) << (iterColl->pt()) << " GeV"
514  << " eta = " << std::right << std::setw(8) << (iterColl->eta())
515  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
516  } else {
517  if (objIndexInColl == indexInColl) {
518  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
519  << " indexInColl = " << indexInColl
520  << " PT = " << std::right << std::setw(6) << (iterColl->pt()) << " GeV"
521  << " eta = " << std::right << std::setw(8) << (iterColl->eta())
522  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
523  }
524  }
525  }
526  } else {
527  oStr << " bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) << " PT = "
528  << std::right << std::setw(6) << (iterColl->pt()) << " GeV" << " eta = "
529  << std::right << std::setw(8) << (iterColl->eta()) << " phi = "
530  << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
531 
532  }
533 
534  }
535 
536  }
537  break;
538 
539  case NoIsoEG: {
540  oStr << "\n NoIsoEG collection\n" << std::endl;
541 
542  int indexInColl = -1;
543 
544  for (l1extra::L1EmParticleCollection::const_iterator iterColl =
545  m_l1ExtraNoIsoEG->begin(); iterColl
546  != m_l1ExtraNoIsoEG->end(); ++iterColl) {
547 
548  if (checkBxInEvent) {
549  if (iterColl->bx() != bxInEvent) {
550  continue;
551  oStr << "\n BxInEvent " << bxInEvent
552  << ": collection not in the event" << std::endl;
553  } else {
554 
555  indexInColl++;
556 
557  if (!checkObjIndexInColl) {
558  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
559  << " indexInColl = " << indexInColl
560  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
561  << " eta = " << std::right << std::setw(8) << (iterColl->eta())
562  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
563  } else {
564  if (objIndexInColl == indexInColl) {
565  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
566  << " indexInColl = " << indexInColl
567  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
568  << " eta = " << std::right << std::setw(8) << (iterColl->eta())
569  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
570  }
571  }
572  }
573  } else {
574  oStr << " bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) << " ET = "
575  << std::right << std::setw(6) << (iterColl->et()) << " GeV" << " eta = "
576  << std::right << std::setw(8) << (iterColl->eta()) << " phi = "
577  << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
578 
579  }
580 
581  }
582  }
583  break;
584 
585  case IsoEG: {
586  oStr << "\n IsoEG collection\n" << std::endl;
587 
588  int indexInColl = -1;
589 
590  for (l1extra::L1EmParticleCollection::const_iterator iterColl =
591  m_l1ExtraIsoEG->begin(); iterColl != m_l1ExtraIsoEG->end(); ++iterColl) {
592 
593  if (checkBxInEvent) {
594  if (iterColl->bx() != bxInEvent) {
595  continue;
596  oStr << "\n BxInEvent " << bxInEvent
597  << ": collection not in the event" << std::endl;
598  } else {
599 
600  indexInColl++;
601 
602  if (!checkObjIndexInColl) {
603  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
604  << " indexInColl = " << indexInColl
605  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
606  << " eta = " << std::right << std::setw(8) << (iterColl->eta())
607  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
608  } else {
609  if (objIndexInColl == indexInColl) {
610  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
611  << " indexInColl = " << indexInColl
612  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
613  << " eta = " << std::right << std::setw(8) << (iterColl->eta())
614  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
615  }
616  }
617  }
618  } else {
619  oStr << " bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) << " ET = "
620  << std::right << std::setw(6) << (iterColl->et()) << " GeV" << " eta = "
621  << std::right << std::setw(8) << (iterColl->eta()) << " phi = "
622  << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
623 
624  }
625 
626  }
627  }
628  break;
629 
630  case CenJet: {
631  oStr << "\n CenJet collection\n" << std::endl;
632 
633  int indexInColl = -1;
634 
635  for (l1extra::L1JetParticleCollection::const_iterator iterColl =
636  m_l1ExtraCenJet->begin(); iterColl
637  != m_l1ExtraCenJet->end(); ++iterColl) {
638 
639  if (checkBxInEvent) {
640  if (iterColl->bx() != bxInEvent) {
641  continue;
642  oStr << "\n BxInEvent " << bxInEvent
643  << ": collection not in the event" << std::endl;
644  } else {
645 
646  indexInColl++;
647 
648  if (!checkObjIndexInColl) {
649  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
650  << " indexInColl = " << indexInColl
651  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
652  << " eta = " << std::right << std::setw(8) << (iterColl->eta())
653  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
654  } else {
655  if (objIndexInColl == indexInColl) {
656  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
657  << " indexInColl = " << indexInColl
658  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
659  << " eta = " << std::right << std::setw(8) << (iterColl->eta())
660  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
661  }
662  }
663  }
664  } else {
665  oStr << " bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) << " ET = "
666  << std::right << std::setw(6) << (iterColl->et()) << " GeV" << " eta = "
667  << std::right << std::setw(8) << (iterColl->eta()) << " phi = "
668  << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
669 
670  }
671 
672  }
673  }
674  break;
675 
676  case ForJet: {
677  oStr << "\n ForJet collection\n" << std::endl;
678 
679  int indexInColl = -1;
680 
681  for (l1extra::L1JetParticleCollection::const_iterator iterColl =
682  m_l1ExtraForJet->begin(); iterColl
683  != m_l1ExtraForJet->end(); ++iterColl) {
684 
685  if (checkBxInEvent) {
686  if (iterColl->bx() != bxInEvent) {
687  continue;
688  oStr << "\n BxInEvent " << bxInEvent
689  << ": collection not in the event" << std::endl;
690  } else {
691 
692  indexInColl++;
693 
694  if (!checkObjIndexInColl) {
695  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
696  << " indexInColl = " << indexInColl
697  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
698  << " eta = " << std::right << std::setw(8) << (iterColl->eta())
699  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
700  } else {
701  if (objIndexInColl == indexInColl) {
702  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
703  << " indexInColl = " << indexInColl
704  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
705  << " eta = " << std::right << std::setw(8) << (iterColl->eta())
706  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
707  }
708  }
709  }
710  } else {
711  oStr << " bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) << " ET = "
712  << std::right << std::setw(6) << (iterColl->et()) << " GeV" << " eta = "
713  << std::right << std::setw(8) << (iterColl->eta()) << " phi = "
714  << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
715 
716  }
717 
718  }
719  }
720  break;
721 
722  case TauJet: {
723  oStr << "\n TauJet collection\n" << std::endl;
724 
725  int indexInColl = -1;
726 
727  for (l1extra::L1JetParticleCollection::const_iterator iterColl =
728  m_l1ExtraTauJet->begin(); iterColl
729  != m_l1ExtraTauJet->end(); ++iterColl) {
730 
731  if (checkBxInEvent) {
732  if (iterColl->bx() != bxInEvent) {
733  continue;
734  oStr << "\n BxInEvent " << bxInEvent
735  << ": collection not in the event" << std::endl;
736  } else {
737 
738  indexInColl++;
739 
740  if (!checkObjIndexInColl) {
741  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
742  << " indexInColl = " << indexInColl
743  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
744  << " eta = " << std::right << std::setw(8) << (iterColl->eta())
745  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
746  } else {
747  if (objIndexInColl == indexInColl) {
748  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
749  << " indexInColl = " << indexInColl
750  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
751  << " eta = " << std::right << std::setw(8) << (iterColl->eta())
752  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
753  }
754  }
755  }
756  } else {
757  oStr << " bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) << " ET = "
758  << std::right << std::setw(6) << (iterColl->et()) << " GeV" << " eta = "
759  << std::right << std::setw(8) << (iterColl->eta()) << " phi = "
760  << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
761 
762  }
763 
764  }
765  }
766  break;
767 
768  case ETM: {
769  oStr << "\n ETM collection\n" << std::endl;
770 
771  int indexInColl = -1;
772 
773  for (l1extra::L1EtMissParticleCollection::const_iterator iterColl =
774  m_l1ExtraETM->begin(); iterColl != m_l1ExtraETM->end(); ++iterColl) {
775 
776  if (checkBxInEvent) {
777  if (iterColl->bx() != bxInEvent) {
778  continue;
779  oStr << "\n BxInEvent " << bxInEvent
780  << ": collection not in the event" << std::endl;
781  } else {
782 
783  indexInColl++;
784 
785  if (!checkObjIndexInColl) {
786  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
787  << " indexInColl = " << indexInColl
788  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
789  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
790  } else {
791  if (objIndexInColl == indexInColl) {
792  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
793  << " indexInColl = " << indexInColl
794  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
795  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
796  }
797  }
798  }
799  } else {
800  oStr << " bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) << " ET = "
801  << std::right << std::setw(6) << (iterColl->et()) << " GeV" << " phi = "
802  << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
803 
804  }
805 
806  }
807  }
808  break;
809 
810  case ETT: {
811  oStr << "\n ETT collection\n" << std::endl;
812 
813  int indexInColl = -1;
814 
815  for (l1extra::L1EtMissParticleCollection::const_iterator iterColl =
816  m_l1ExtraETT->begin(); iterColl != m_l1ExtraETT->end(); ++iterColl) {
817 
818  if (checkBxInEvent) {
819  if (iterColl->bx() != bxInEvent) {
820  continue;
821  oStr << "\n BxInEvent " << bxInEvent
822  << ": collection not in the event" << std::endl;
823  } else {
824 
825  indexInColl++;
826 
827  if (!checkObjIndexInColl) {
828  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
829  << " indexInColl = " << indexInColl
830  << " ET = " << std::right << std::setw(6) <<(iterColl->etTotal()) << " GeV" << std::endl;
831  } else {
832  if (objIndexInColl == indexInColl) {
833  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
834  << " indexInColl = " << indexInColl
835  << " ET = " << std::right << std::setw(6) <<(iterColl->etTotal()) << " GeV" << std::endl;
836  }
837  }
838  }
839  } else {
840  oStr << " bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) << " ET = "
841  << std::right << std::setw(6) <<(iterColl->etTotal()) << " GeV" << std::endl;
842 
843  }
844 
845  }
846  }
847  break;
848 
849  case HTT: {
850  oStr << "\n HTT collection\n" << std::endl;
851 
852  int indexInColl = -1;
853 
854  for (l1extra::L1EtMissParticleCollection::const_iterator iterColl =
855  m_l1ExtraHTT->begin(); iterColl != m_l1ExtraHTT->end(); ++iterColl) {
856 
857  if (checkBxInEvent) {
858  if (iterColl->bx() != bxInEvent) {
859  continue;
860  oStr << "\n BxInEvent " << bxInEvent
861  << ": collection not in the event" << std::endl;
862  } else {
863 
864  indexInColl++;
865 
866  if (!checkObjIndexInColl) {
867  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
868  << " indexInColl = " << indexInColl
869  << " ET = " << std::right << std::setw(6) <<(iterColl->etTotal()) << " GeV" << std::endl;
870  } else {
871  if (objIndexInColl == indexInColl) {
872  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
873  << " indexInColl = " << indexInColl
874  << " ET = " << std::right << std::setw(6) <<(iterColl->etTotal()) << " GeV" << std::endl;
875  }
876  }
877  }
878  } else {
879  oStr << " bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) << " ET = "
880  << std::right << std::setw(6) <<(iterColl->etTotal()) << " GeV" << std::endl;
881 
882  }
883 
884  }
885  }
886  break;
887 
888  case HTM: {
889  oStr << "\n HTM collection\n" << std::endl;
890 
891  int indexInColl = -1;
892 
893  for (l1extra::L1EtMissParticleCollection::const_iterator iterColl =
894  m_l1ExtraHTM->begin(); iterColl != m_l1ExtraHTM->end(); ++iterColl) {
895 
896  if (checkBxInEvent) {
897  if (iterColl->bx() != bxInEvent) {
898  continue;
899  oStr << "\n BxInEvent " << bxInEvent
900  << ": collection not in the event" << std::endl;
901  } else {
902 
903  indexInColl++;
904 
905  if (!checkObjIndexInColl) {
906  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
907  << " indexInColl = " << indexInColl
908  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
909  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
910  } else {
911  if (objIndexInColl == indexInColl) {
912  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
913  << " indexInColl = " << indexInColl
914  << " ET = " << std::right << std::setw(6) << (iterColl->et()) << " GeV"
915  << " phi = " << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
916  }
917  }
918  }
919  } else {
920  oStr << " bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) << " ET = "
921  << std::right << std::setw(6) << (iterColl->et()) << " GeV" << " phi = "
922  << std::right << std::setw(8) << (iterColl->phi()) << " rad" << std::endl;
923 
924  }
925 
926  }
927  }
928  break;
929 
930  case JetCounts: {
931  // TODO print if and when JetCounts will be available
932  }
933  break;
934 
935  case HfBitCounts: {
936  oStr << "\n HfBitCounts collection\n" << std::endl;
937 
938  for (l1extra::L1HFRingsCollection::const_iterator iterColl =
939  m_l1ExtraHfBitCounts->begin(); iterColl
940  != m_l1ExtraHfBitCounts->end(); ++iterColl) {
941 
942  if (checkBxInEvent) {
943  if (iterColl->bx() != bxInEvent) {
944  continue;
945  oStr << "\n BxInEvent " << bxInEvent
946  << ": collection not in the event" << std::endl;
947  } else {
948 
949  if (!checkObjIndexInColl) {
950 
951  for (int iCount = 0; iCount
952  < l1extra::L1HFRings::kNumRings; ++iCount) {
953  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
954  << " count = " << iCount << " HF counts = "
955  << (iterColl->hfBitCount(
956  (l1extra::L1HFRings::HFRingLabels) iCount)) << std::endl;
957  }
958 
959  } else {
960  for (int iCount = 0; iCount
961  < l1extra::L1HFRings::kNumRings; ++iCount) {
962  if (objIndexInColl == iCount) {
963  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
964  << " count = " << iCount
965  << " HF counts = "
966  << (iterColl->hfBitCount(
967  (l1extra::L1HFRings::HFRingLabels) iCount)) << std::endl;
968  }
969  }
970  }
971  }
972  } else {
973  for (int iCount = 0; iCount < l1extra::L1HFRings::kNumRings; ++iCount) {
974  if (objIndexInColl == iCount) {
975  oStr << " bxInEvent = " << std::right << std::setw(2) << (iterColl->bx())
976  << " count = " << iCount << " HF counts = "
977  << (iterColl->hfBitCount(
978  (l1extra::L1HFRings::HFRingLabels) iCount)) << std::endl;
979  }
980  }
981 
982  }
983 
984  }
985  }
986  break;
987 
988  case HfRingEtSums: {
989  oStr << "\n HfRingEtSums collection\n" << std::endl;
990 
991  for (l1extra::L1HFRingsCollection::const_iterator iterColl =
992  m_l1ExtraHfRingEtSums->begin(); iterColl
993  != m_l1ExtraHfRingEtSums->end(); ++iterColl) {
994 
995  if (checkBxInEvent) {
996  if (iterColl->bx() != bxInEvent) {
997  continue;
998  oStr << "\n BxInEvent " << bxInEvent
999  << ": collection not in the event" << std::endl;
1000  } else {
1001 
1002  if (!checkObjIndexInColl) {
1003 
1004  for (int iCount = 0; iCount
1005  < l1extra::L1HFRings::kNumRings; ++iCount) {
1006  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
1007  << " count = " << iCount
1008  << " HF ET sum = "
1009  << (iterColl->hfEtSum(
1010  (l1extra::L1HFRings::HFRingLabels) iCount)) << " GeV" << std::endl;
1011  }
1012 
1013  } else {
1014  for (int iCount = 0; iCount
1015  < l1extra::L1HFRings::kNumRings; ++iCount) {
1016  if (objIndexInColl == iCount) {
1017  oStr << " bxInEvent = " << std::right << std::setw(2) << bxInEvent
1018  << " count = " << iCount
1019  << " HF ET sum = "
1020  << (iterColl->hfEtSum(
1021  (l1extra::L1HFRings::HFRingLabels) iCount)) << " GeV" << std::endl;
1022  }
1023  }
1024  }
1025  }
1026  } else {
1027  for (int iCount = 0; iCount < l1extra::L1HFRings::kNumRings; ++iCount) {
1028  if (objIndexInColl == iCount) {
1029  oStr << " bxInEvent = " << std::right << std::setw(2) << (iterColl->bx())
1030  << " count = " << iCount << " HF ET sum = "
1031  << (iterColl->hfEtSum(
1032  (l1extra::L1HFRings::HFRingLabels) iCount)) << " GeV" << std::endl;
1033  }
1034  }
1035 
1036  }
1037 
1038  }
1039  }
1040  break;
1041 
1042  case TechTrig: {
1043  // do nothing, not in L1Extra
1044  }
1045  break;
1046 
1047  case Castor: {
1048  // do nothing, not in L1Extra
1049  }
1050  break;
1051 
1052  case BPTX: {
1053  // do nothing, not in L1Extra
1054  }
1055  break;
1056 
1057  case GtExternal: {
1058  // do nothing, not in L1Extra
1059  }
1060  break;
1061 
1062  case ObjNull: {
1063  // do nothing, not in L1Extra
1064  }
1065  break;
1066 
1067  default: {
1068  edm::LogInfo("L1GtObject") << "\n '" << gtObject
1069  << "' is not a recognized L1GtObject. ";
1070 
1071  // do nothing
1072 
1073  }
1074  break;
1075  }
1076 
1077 }
const l1extra::L1JetParticleCollection * m_l1ExtraForJet
const l1extra::L1EtMissParticleCollection * m_l1ExtraETT
Definition: L1GtObject.h:39
Definition: L1GtObject.h:36
const l1extra::L1EtMissParticleCollection * m_l1ExtraHTM
std::string l1GtObjectEnumToString(const L1GtObject &)
Definition: L1GtObject.cc:74
const l1extra::L1JetParticleCollection * m_l1ExtraCenJet
Definition: L1GtObject.h:38
const l1extra::L1EmParticleCollection * m_l1ExtraIsoEG
const l1extra::L1JetParticleCollection * m_l1ExtraTauJet
const l1extra::L1EtMissParticleCollection * m_l1ExtraETM
const l1extra::L1EtMissParticleCollection * m_l1ExtraHTT
Definition: L1GtObject.h:30
const edm::InputTag inputTagL1ExtraColl(const L1GtObject &) const
input tag for a given collection
const l1extra::L1HFRingsCollection * m_l1ExtraHfRingEtSums
Definition: L1GtObject.h:37
const l1extra::L1EmParticleCollection * m_l1ExtraNoIsoEG
const bool validL1ExtraColl(const L1GtObject &) const
const l1extra::L1MuonParticleCollection * m_l1ExtraMuon
retrieved L1Extra collections
const l1extra::L1HFRingsCollection * m_l1ExtraHfBitCounts
void L1RetrieveL1Extra::printL1Extra ( std::ostream &  oStr,
const L1GtObject gtObject,
const int  bxInEvent 
) const

print all L1GtObject objects from bxInEvent

Definition at line 1079 of file L1RetrieveL1Extra.cc.

References printL1Extra().

1080  {
1081 
1082  bool checkBxInEvent = true;
1083  bool checkObjIndexInColl = false;
1084  int objIndexInColl = -1;
1085 
1086  printL1Extra(oStr, gtObject, checkBxInEvent, bxInEvent,
1087  checkObjIndexInColl, objIndexInColl);
1088 }
void printL1Extra(std::ostream &oStr, const L1GtObject &gtObject, const bool checkBxInEvent, const int bxInEvent, const bool checkObjIndexInColl, const int objIndexInColl) const
void L1RetrieveL1Extra::printL1Extra ( std::ostream &  oStr,
const L1GtObject gtObject 
) const

print all L1GtObject objects from all bxInEvent

Definition at line 1090 of file L1RetrieveL1Extra.cc.

References printL1Extra().

1091  {
1092 
1093  bool checkBxInEvent = false;
1094  bool checkObjIndexInColl = false;
1095  int bxInEvent = 999;
1096  int objIndexInColl = -1;
1097 
1098  printL1Extra(oStr, gtObject, checkBxInEvent, bxInEvent,
1099  checkObjIndexInColl, objIndexInColl);
1100 }
void printL1Extra(std::ostream &oStr, const L1GtObject &gtObject, const bool checkBxInEvent, const int bxInEvent, const bool checkObjIndexInColl, const int objIndexInColl) const
void L1RetrieveL1Extra::printL1Extra ( std::ostream &  oStr,
const int  bxInEvent 
) const

print all L1Extra collections from a given BxInEvent

Definition at line 1102 of file L1RetrieveL1Extra.cc.

References CenJet, ETM, ETT, ForJet, HfBitCounts, HfRingEtSums, HTM, HTT, IsoEG, Mu, NoIsoEG, printL1Extra(), and TauJet.

1102  {
1103 
1104  printL1Extra(oStr, Mu, iBxInEvent);
1105  printL1Extra(oStr, NoIsoEG, iBxInEvent);
1106  printL1Extra(oStr, IsoEG, iBxInEvent);
1107  printL1Extra(oStr, CenJet, iBxInEvent);
1108  printL1Extra(oStr, ForJet, iBxInEvent);
1109  printL1Extra(oStr, TauJet, iBxInEvent);
1110  printL1Extra(oStr, ETM, iBxInEvent);
1111  printL1Extra(oStr, ETT, iBxInEvent);
1112  printL1Extra(oStr, HTT, iBxInEvent);
1113  printL1Extra(oStr, HTM, iBxInEvent);
1114  // printL1Extra(oStr, JetCounts, iBxInEvent);
1115  printL1Extra(oStr, HfBitCounts, iBxInEvent);
1116  printL1Extra(oStr, HfRingEtSums, iBxInEvent);
1117 }
Definition: L1GtObject.h:39
Definition: L1GtObject.h:36
void printL1Extra(std::ostream &oStr, const L1GtObject &gtObject, const bool checkBxInEvent, const int bxInEvent, const bool checkObjIndexInColl, const int objIndexInColl) const
Definition: L1GtObject.h:38
Definition: L1GtObject.h:30
Definition: L1GtObject.h:37
void L1RetrieveL1Extra::printL1Extra ( std::ostream &  oStr) const

print all L1Extra collections from all BxInEvent

Definition at line 1119 of file L1RetrieveL1Extra.cc.

References CenJet, ETM, ETT, ForJet, HfBitCounts, HfRingEtSums, HTM, HTT, IsoEG, Mu, NoIsoEG, printL1Extra(), and TauJet.

1119  {
1120 
1121  printL1Extra(oStr, Mu);
1122  printL1Extra(oStr, NoIsoEG);
1123  printL1Extra(oStr, IsoEG);
1124  printL1Extra(oStr, CenJet);
1125  printL1Extra(oStr, ForJet);
1126  printL1Extra(oStr, TauJet);
1127  printL1Extra(oStr, ETM);
1128  printL1Extra(oStr, ETT);
1129  printL1Extra(oStr, HTT);
1130  printL1Extra(oStr, HTM);
1131  // printL1Extra(oStr, JetCounts);
1132  printL1Extra(oStr, HfBitCounts);
1133  printL1Extra(oStr, HfRingEtSums);
1134 
1135 }
Definition: L1GtObject.h:39
Definition: L1GtObject.h:36
void printL1Extra(std::ostream &oStr, const L1GtObject &gtObject, const bool checkBxInEvent, const int bxInEvent, const bool checkObjIndexInColl, const int objIndexInColl) const
Definition: L1GtObject.h:38
Definition: L1GtObject.h:30
Definition: L1GtObject.h:37
void L1RetrieveL1Extra::retrieveL1ExtraObjects ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)

retrieve L1Extra objects if a collection is not found, the corresponding m_valid(Object) is set to "false"

Definition at line 87 of file L1RetrieveL1Extra.cc.

References edm::Event::getByLabel(), edm::HandleBase::isValid(), LogDebug, m_l1ExtraCenJet, m_l1ExtraETM, m_l1ExtraETT, m_l1ExtraForJet, m_l1ExtraHfBitCounts, m_l1ExtraHfRingEtSums, m_l1ExtraHTM, m_l1ExtraHTT, m_l1ExtraIsoEG, m_l1ExtraMuon, m_l1ExtraNoIsoEG, m_l1ExtraTauJet, m_tagL1ExtraCenJet, m_tagL1ExtraEtMissHTM, m_tagL1ExtraEtMissMET, m_tagL1ExtraForJet, m_tagL1ExtraHFRings, m_tagL1ExtraIsoEG, m_tagL1ExtraMuon, m_tagL1ExtraNoIsoEG, m_tagL1ExtraTauJet, m_validL1ExtraCenJet, m_validL1ExtraETM, m_validL1ExtraETT, m_validL1ExtraForJet, m_validL1ExtraHfBitCounts, m_validL1ExtraHfRingEtSums, m_validL1ExtraHTM, m_validL1ExtraHTT, m_validL1ExtraIsoEG, m_validL1ExtraMuon, m_validL1ExtraNoIsoEG, m_validL1ExtraTauJet, and edm::Handle< T >::product().

Referenced by L1ExtraRecoDQM::analyze(), L1ExtraDQM::analyze(), and L1GtAnalyzer::analyzeTrigger().

88  {
89 
90  //
92  iEvent.getByLabel(m_tagL1ExtraMuon, collL1ExtraMuon);
93 
94  if (collL1ExtraMuon.isValid()) {
95  m_validL1ExtraMuon = true;
96  m_l1ExtraMuon = collL1ExtraMuon.product();
97  } else {
98  LogDebug("L1RetrieveL1Extra")
99  << "\n l1extra::L1MuonParticleCollection with input tag \n "
100  << m_tagL1ExtraMuon << "\n not found in the event.\n"
101  << "\n Return pointer 0 and false validity tag."
102  << std::endl;
103 
104  m_validL1ExtraMuon = false;
105  m_l1ExtraMuon = 0;
106 
107  }
108 
109  //
111  iEvent.getByLabel(m_tagL1ExtraIsoEG, collL1ExtraIsoEG);
112 
113  if (collL1ExtraIsoEG.isValid()) {
114  m_validL1ExtraIsoEG = true;
115  m_l1ExtraIsoEG = collL1ExtraIsoEG.product();
116  } else {
117  LogDebug("L1RetrieveL1Extra")
118  << "\n l1extra::L1EmParticleCollection with input tag \n "
119  << m_tagL1ExtraIsoEG << "\n not found in the event.\n"
120  << "\n Return pointer 0 and false validity tag."
121  << std::endl;
122 
123  m_validL1ExtraIsoEG = false;
124  m_l1ExtraIsoEG = 0;
125 
126  }
127 
129  iEvent.getByLabel(m_tagL1ExtraNoIsoEG, collL1ExtraNoIsoEG);
130 
131  if (collL1ExtraNoIsoEG.isValid()) {
132  m_validL1ExtraNoIsoEG = true;
133  m_l1ExtraNoIsoEG = collL1ExtraNoIsoEG.product();
134  } else {
135  LogDebug("L1RetrieveL1Extra")
136  << "\n l1extra::L1EmParticleCollection with input tag \n "
137  << m_tagL1ExtraNoIsoEG << "\n not found in the event.\n"
138  << "\n Return pointer 0 and false validity tag."
139  << std::endl;
140 
141  m_validL1ExtraNoIsoEG = false;
142  m_l1ExtraNoIsoEG = 0;
143 
144  }
145 
146  //
148  iEvent.getByLabel(m_tagL1ExtraCenJet, collL1ExtraCenJet);
149 
150  if (collL1ExtraCenJet.isValid()) {
151  m_validL1ExtraCenJet = true;
152  m_l1ExtraCenJet = collL1ExtraCenJet.product();
153  } else {
154  LogDebug("L1RetrieveL1Extra")
155  << "\n l1extra::L1JetParticleCollection with input tag \n "
156  << m_tagL1ExtraCenJet << "\n not found in the event.\n"
157  << "\n Return pointer 0 and false validity tag."
158  << std::endl;
159 
160  m_validL1ExtraCenJet = false;
161  m_l1ExtraCenJet = 0;
162 
163  }
164 
166  iEvent.getByLabel(m_tagL1ExtraForJet, collL1ExtraForJet);
167 
168  if (collL1ExtraForJet.isValid()) {
169  m_validL1ExtraForJet = true;
170  m_l1ExtraForJet = collL1ExtraForJet.product();
171  } else {
172  LogDebug("L1RetrieveL1Extra")
173  << "\n l1extra::L1JetParticleCollection with input tag \n "
174  << m_tagL1ExtraForJet << "\n not found in the event.\n"
175  << "\n Return pointer 0 and false validity tag."
176  << std::endl;
177 
178  m_validL1ExtraForJet = false;
179  m_l1ExtraForJet = 0;
180 
181  }
182 
184  iEvent.getByLabel(m_tagL1ExtraTauJet, collL1ExtraTauJet);
185 
186  if (collL1ExtraTauJet.isValid()) {
187  m_validL1ExtraTauJet = true;
188  m_l1ExtraTauJet = collL1ExtraTauJet.product();
189  } else {
190  LogDebug("L1RetrieveL1Extra")
191  << "\n l1extra::L1JetParticleCollection with input tag \n "
192  << m_tagL1ExtraTauJet << "\n not found in the event.\n"
193  << "\n Return pointer 0 and false validity tag."
194  << std::endl;
195 
196  m_validL1ExtraTauJet = false;
197  m_l1ExtraTauJet = 0;
198 
199  }
200 
201  //
203  iEvent.getByLabel(m_tagL1ExtraEtMissMET, collL1ExtraEtMissMET);
204 
205  if (collL1ExtraEtMissMET.isValid()) {
206  m_validL1ExtraETT = true;
207  m_validL1ExtraETM = true;
208  m_l1ExtraETT = collL1ExtraEtMissMET.product();
209  m_l1ExtraETM = collL1ExtraEtMissMET.product();
210  } else {
211  LogDebug("L1RetrieveL1Extra")
212  << "\n l1extra::L1EtMissParticleCollection with input tag \n "
213  << m_tagL1ExtraEtMissMET << "\n not found in the event.\n"
214  << "\n Return pointer 0 and false validity tag."
215  << std::endl;
216 
217  m_validL1ExtraETT = false;
218  m_validL1ExtraETM = false;
219  m_l1ExtraETT = 0;
220  m_l1ExtraETM = 0;
221 
222  }
223 
225  iEvent.getByLabel(m_tagL1ExtraEtMissHTM, collL1ExtraEtMissHTM);
226 
227  if (collL1ExtraEtMissHTM.isValid()) {
228  m_validL1ExtraHTT = true;
229  m_validL1ExtraHTM = true;
230  m_l1ExtraHTT = collL1ExtraEtMissHTM.product();
231  m_l1ExtraHTM = collL1ExtraEtMissHTM.product();
232  } else {
233  LogDebug("L1RetrieveL1Extra")
234  << "\n l1extra::L1EtMissParticleCollection with input tag \n "
235  << m_tagL1ExtraEtMissHTM << "\n not found in the event.\n"
236  << "\n Return pointer 0 and false validity tag."
237  << std::endl;
238 
239  m_validL1ExtraHTT = false;
240  m_validL1ExtraHTM = false;
241  m_l1ExtraHTT = 0;
242  m_l1ExtraHTM = 0;
243 
244  }
245 
246  //
248  iEvent.getByLabel(m_tagL1ExtraHFRings, collL1ExtraHFRings);
249 
250  if (collL1ExtraHFRings.isValid()) {
253  m_l1ExtraHfBitCounts = collL1ExtraHFRings.product();
254  m_l1ExtraHfRingEtSums = collL1ExtraHFRings.product();
255  } else {
256  LogDebug("L1RetrieveL1Extra")
257  << "\n l1extra::L1HFRingsCollection with input tag \n "
258  << m_tagL1ExtraHFRings << "\n not found in the event.\n"
259  << "\n Return pointer 0 and false validity tag."
260  << std::endl;
261 
266 
267  }
268 
269 }
#define LogDebug(id)
edm::InputTag m_tagL1ExtraNoIsoEG
const l1extra::L1JetParticleCollection * m_l1ExtraForJet
const l1extra::L1EtMissParticleCollection * m_l1ExtraETT
edm::InputTag m_tagL1ExtraIsoEG
edm::InputTag m_tagL1ExtraMuon
input parameters
const l1extra::L1EtMissParticleCollection * m_l1ExtraHTM
const l1extra::L1JetParticleCollection * m_l1ExtraCenJet
edm::InputTag m_tagL1ExtraCenJet
bool m_validL1ExtraMuon
validity for retrieval of L1Extra products (false: product not found)
const l1extra::L1EmParticleCollection * m_l1ExtraIsoEG
bool isValid() const
Definition: HandleBase.h:76
const l1extra::L1JetParticleCollection * m_l1ExtraTauJet
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:390
edm::InputTag m_tagL1ExtraEtMissHTM
edm::InputTag m_tagL1ExtraForJet
edm::InputTag m_tagL1ExtraTauJet
const l1extra::L1EtMissParticleCollection * m_l1ExtraETM
const l1extra::L1EtMissParticleCollection * m_l1ExtraHTT
edm::InputTag m_tagL1ExtraEtMissMET
T const * product() const
Definition: Handle.h:81
const l1extra::L1HFRingsCollection * m_l1ExtraHfRingEtSums
const l1extra::L1EmParticleCollection * m_l1ExtraNoIsoEG
const l1extra::L1MuonParticleCollection * m_l1ExtraMuon
retrieved L1Extra collections
edm::InputTag m_tagL1ExtraHFRings
const l1extra::L1HFRingsCollection * m_l1ExtraHfBitCounts
const bool L1RetrieveL1Extra::validL1ExtraCenJet ( ) const
inline

Definition at line 84 of file L1RetrieveL1Extra.h.

References m_validL1ExtraCenJet.

Referenced by L1ExtraDQM::analyzeL1ExtraCenJet().

84  {
85  return m_validL1ExtraCenJet;
86  }
const bool L1RetrieveL1Extra::validL1ExtraColl ( const L1GtObject gtObject) const

Definition at line 370 of file L1RetrieveL1Extra.cc.

References BPTX, CenJet, ETM, ETT, ForJet, GtExternal, HfBitCounts, HfRingEtSums, HTM, HTT, IsoEG, JetCounts, m_validL1ExtraCenJet, m_validL1ExtraETM, m_validL1ExtraETT, m_validL1ExtraForJet, m_validL1ExtraHfBitCounts, m_validL1ExtraHfRingEtSums, m_validL1ExtraHTM, m_validL1ExtraHTT, m_validL1ExtraIsoEG, m_validL1ExtraMuon, m_validL1ExtraNoIsoEG, m_validL1ExtraTauJet, Mu, NoIsoEG, ObjNull, TauJet, and TechTrig.

Referenced by printL1Extra().

370  {
371 
372  switch (gtObject) {
373 
374  case Mu: {
375  return m_validL1ExtraMuon;
376  }
377  break;
378 
379  case NoIsoEG: {
380  return m_validL1ExtraNoIsoEG;
381  }
382  break;
383 
384  case IsoEG: {
385  return m_validL1ExtraIsoEG;
386  }
387  break;
388 
389  case CenJet: {
390  return m_validL1ExtraCenJet;
391  }
392  break;
393 
394  case ForJet: {
395  return m_validL1ExtraForJet;
396  }
397  break;
398 
399  case TauJet: {
400  return m_validL1ExtraTauJet;
401  }
402  break;
403 
404  case ETM: {
405  return m_validL1ExtraETM;
406  }
407  break;
408 
409  case ETT: {
410  return m_validL1ExtraETT;
411  }
412  break;
413 
414  case HTT: {
415  return m_validL1ExtraHTT;
416  }
417  break;
418 
419  case HTM: {
420  return m_validL1ExtraHTM;
421  }
422  break;
423 
424  case JetCounts: {
425  // TODO update when JetCounts will be available
426  return false;
427  }
428  break;
429 
430  case HfBitCounts: {
432  }
433  break;
434 
435  case HfRingEtSums: {
437  }
438  break;
439 
440  case TechTrig: {
441  return false;
442  }
443  break;
444 
445  case Castor: {
446  return false;
447  }
448  break;
449 
450  case BPTX: {
451  return false;
452  }
453  break;
454 
455  case GtExternal: {
456  return false;
457  }
458  break;
459 
460  case ObjNull: {
461  return false;
462  }
463  break;
464 
465  default: {
466  edm::LogInfo("L1GtObject") << "\n '" << gtObject
467  << "' is not a recognized L1GtObject. ";
468 
469  return false;
470 
471  }
472  break;
473  }
474 
475  return false;
476 }
Definition: L1GtObject.h:39
Definition: L1GtObject.h:36
Definition: L1GtObject.h:38
bool m_validL1ExtraMuon
validity for retrieval of L1Extra products (false: product not found)
Definition: L1GtObject.h:30
Definition: L1GtObject.h:37
const bool L1RetrieveL1Extra::validL1ExtraETM ( ) const
inline

Definition at line 101 of file L1RetrieveL1Extra.h.

References m_validL1ExtraETM.

Referenced by L1ExtraDQM::analyzeL1ExtraETM().

101  {
102  return m_validL1ExtraETM;
103  }
const bool L1RetrieveL1Extra::validL1ExtraETT ( ) const
inline

Definition at line 97 of file L1RetrieveL1Extra.h.

References m_validL1ExtraETT.

Referenced by L1ExtraDQM::analyzeL1ExtraETT().

97  {
98  return m_validL1ExtraETT;
99  }
const bool L1RetrieveL1Extra::validL1ExtraForJet ( ) const
inline

Definition at line 88 of file L1RetrieveL1Extra.h.

References m_validL1ExtraForJet.

Referenced by L1ExtraDQM::analyzeL1ExtraForJet().

88  {
89  return m_validL1ExtraForJet;
90  }
const bool L1RetrieveL1Extra::validL1ExtraHfBitCounts ( ) const
inline

Definition at line 114 of file L1RetrieveL1Extra.h.

References m_validL1ExtraHfBitCounts.

Referenced by L1ExtraDQM::analyzeL1ExtraHfBitCounts().

114  {
116  }
const bool L1RetrieveL1Extra::validL1ExtraHfRingEtSums ( ) const
inline

Definition at line 118 of file L1RetrieveL1Extra.h.

References m_validL1ExtraHfRingEtSums.

Referenced by L1ExtraDQM::analyzeL1ExtraHfRingEtSums().

118  {
120  }
const bool L1RetrieveL1Extra::validL1ExtraHTM ( ) const
inline

Definition at line 109 of file L1RetrieveL1Extra.h.

References m_validL1ExtraHTM.

Referenced by L1ExtraDQM::analyzeL1ExtraHTM().

109  {
110  return m_validL1ExtraHTM;
111  }
const bool L1RetrieveL1Extra::validL1ExtraHTT ( ) const
inline

Definition at line 105 of file L1RetrieveL1Extra.h.

References m_validL1ExtraHTT.

Referenced by L1ExtraDQM::analyzeL1ExtraHTT().

105  {
106  return m_validL1ExtraHTT;
107  }
const bool L1RetrieveL1Extra::validL1ExtraIsoEG ( ) const
inline

Definition at line 75 of file L1RetrieveL1Extra.h.

References m_validL1ExtraIsoEG.

Referenced by L1ExtraDQM::analyzeL1ExtraIsoEG().

75  {
76  return m_validL1ExtraIsoEG;
77  }
const bool L1RetrieveL1Extra::validL1ExtraMuon ( ) const
inline

validity for retrieval of L1Extra products (false: product not found)

Definition at line 70 of file L1RetrieveL1Extra.h.

References m_validL1ExtraMuon.

Referenced by L1ExtraDQM::analyzeL1ExtraMuon().

70  {
71  return m_validL1ExtraMuon;
72  }
bool m_validL1ExtraMuon
validity for retrieval of L1Extra products (false: product not found)
const bool L1RetrieveL1Extra::validL1ExtraNoIsoEG ( ) const
inline

Definition at line 79 of file L1RetrieveL1Extra.h.

References m_validL1ExtraNoIsoEG.

Referenced by L1ExtraDQM::analyzeL1ExtraNoIsoEG().

79  {
80  return m_validL1ExtraNoIsoEG;
81  }
const bool L1RetrieveL1Extra::validL1ExtraTauJet ( ) const
inline

Definition at line 92 of file L1RetrieveL1Extra.h.

References m_validL1ExtraTauJet.

Referenced by L1ExtraDQM::analyzeL1ExtraTauJet().

92  {
93  return m_validL1ExtraTauJet;
94  }

Member Data Documentation

const l1extra::L1JetParticleCollection* L1RetrieveL1Extra::m_l1ExtraCenJet
private

Definition at line 247 of file L1RetrieveL1Extra.h.

Referenced by l1ExtraCenJet(), printL1Extra(), and retrieveL1ExtraObjects().

const l1extra::L1EtMissParticleCollection* L1RetrieveL1Extra::m_l1ExtraETM
private

Definition at line 252 of file L1RetrieveL1Extra.h.

Referenced by l1ExtraETM(), printL1Extra(), and retrieveL1ExtraObjects().

const l1extra::L1EtMissParticleCollection* L1RetrieveL1Extra::m_l1ExtraETT
private

Definition at line 251 of file L1RetrieveL1Extra.h.

Referenced by l1ExtraETT(), printL1Extra(), and retrieveL1ExtraObjects().

const l1extra::L1JetParticleCollection* L1RetrieveL1Extra::m_l1ExtraForJet
private

Definition at line 248 of file L1RetrieveL1Extra.h.

Referenced by l1ExtraForJet(), printL1Extra(), and retrieveL1ExtraObjects().

const l1extra::L1HFRingsCollection* L1RetrieveL1Extra::m_l1ExtraHfBitCounts
private

Definition at line 256 of file L1RetrieveL1Extra.h.

Referenced by l1ExtraHfBitCounts(), printL1Extra(), and retrieveL1ExtraObjects().

const l1extra::L1HFRingsCollection* L1RetrieveL1Extra::m_l1ExtraHfRingEtSums
private

Definition at line 257 of file L1RetrieveL1Extra.h.

Referenced by l1ExtraHfRingEtSums(), printL1Extra(), and retrieveL1ExtraObjects().

const l1extra::L1EtMissParticleCollection* L1RetrieveL1Extra::m_l1ExtraHTM
private

Definition at line 254 of file L1RetrieveL1Extra.h.

Referenced by l1ExtraHTM(), printL1Extra(), and retrieveL1ExtraObjects().

const l1extra::L1EtMissParticleCollection* L1RetrieveL1Extra::m_l1ExtraHTT
private

Definition at line 253 of file L1RetrieveL1Extra.h.

Referenced by l1ExtraHTT(), printL1Extra(), and retrieveL1ExtraObjects().

const l1extra::L1EmParticleCollection* L1RetrieveL1Extra::m_l1ExtraIsoEG
private

Definition at line 244 of file L1RetrieveL1Extra.h.

Referenced by l1ExtraIsoEG(), printL1Extra(), and retrieveL1ExtraObjects().

const l1extra::L1MuonParticleCollection* L1RetrieveL1Extra::m_l1ExtraMuon
private

retrieved L1Extra collections

Definition at line 242 of file L1RetrieveL1Extra.h.

Referenced by l1ExtraMuon(), printL1Extra(), and retrieveL1ExtraObjects().

const l1extra::L1EmParticleCollection* L1RetrieveL1Extra::m_l1ExtraNoIsoEG
private

Definition at line 245 of file L1RetrieveL1Extra.h.

Referenced by l1ExtraNoIsoEG(), printL1Extra(), and retrieveL1ExtraObjects().

const l1extra::L1JetParticleCollection* L1RetrieveL1Extra::m_l1ExtraTauJet
private

Definition at line 249 of file L1RetrieveL1Extra.h.

Referenced by l1ExtraTauJet(), printL1Extra(), and retrieveL1ExtraObjects().

int L1RetrieveL1Extra::m_nrBxInEventGct
private

Definition at line 219 of file L1RetrieveL1Extra.h.

int L1RetrieveL1Extra::m_nrBxInEventGmt
private

Definition at line 218 of file L1RetrieveL1Extra.h.

edm::InputTag L1RetrieveL1Extra::m_tagL1ExtraCenJet
private

Definition at line 209 of file L1RetrieveL1Extra.h.

Referenced by inputTagL1ExtraColl(), and retrieveL1ExtraObjects().

edm::InputTag L1RetrieveL1Extra::m_tagL1ExtraEtMissHTM
private

Definition at line 214 of file L1RetrieveL1Extra.h.

Referenced by inputTagL1ExtraColl(), and retrieveL1ExtraObjects().

edm::InputTag L1RetrieveL1Extra::m_tagL1ExtraEtMissMET
private

Definition at line 213 of file L1RetrieveL1Extra.h.

Referenced by inputTagL1ExtraColl(), and retrieveL1ExtraObjects().

edm::InputTag L1RetrieveL1Extra::m_tagL1ExtraForJet
private

Definition at line 210 of file L1RetrieveL1Extra.h.

Referenced by inputTagL1ExtraColl(), and retrieveL1ExtraObjects().

edm::InputTag L1RetrieveL1Extra::m_tagL1ExtraHFRings
private

Definition at line 216 of file L1RetrieveL1Extra.h.

Referenced by inputTagL1ExtraColl(), and retrieveL1ExtraObjects().

edm::InputTag L1RetrieveL1Extra::m_tagL1ExtraIsoEG
private

Definition at line 206 of file L1RetrieveL1Extra.h.

Referenced by inputTagL1ExtraColl(), and retrieveL1ExtraObjects().

edm::InputTag L1RetrieveL1Extra::m_tagL1ExtraMuon
private

input parameters

input tags for L1Extra objects

Definition at line 204 of file L1RetrieveL1Extra.h.

Referenced by inputTagL1ExtraColl(), and retrieveL1ExtraObjects().

edm::InputTag L1RetrieveL1Extra::m_tagL1ExtraNoIsoEG
private

Definition at line 207 of file L1RetrieveL1Extra.h.

Referenced by inputTagL1ExtraColl(), and retrieveL1ExtraObjects().

edm::InputTag L1RetrieveL1Extra::m_tagL1ExtraTauJet
private

Definition at line 211 of file L1RetrieveL1Extra.h.

Referenced by inputTagL1ExtraColl(), and retrieveL1ExtraObjects().

bool L1RetrieveL1Extra::m_validL1ExtraCenJet
private
bool L1RetrieveL1Extra::m_validL1ExtraETM
private

Definition at line 233 of file L1RetrieveL1Extra.h.

Referenced by retrieveL1ExtraObjects(), validL1ExtraColl(), and validL1ExtraETM().

bool L1RetrieveL1Extra::m_validL1ExtraETT
private

Definition at line 232 of file L1RetrieveL1Extra.h.

Referenced by retrieveL1ExtraObjects(), validL1ExtraColl(), and validL1ExtraETT().

bool L1RetrieveL1Extra::m_validL1ExtraForJet
private
bool L1RetrieveL1Extra::m_validL1ExtraHfBitCounts
private
bool L1RetrieveL1Extra::m_validL1ExtraHfRingEtSums
private
bool L1RetrieveL1Extra::m_validL1ExtraHTM
private

Definition at line 235 of file L1RetrieveL1Extra.h.

Referenced by retrieveL1ExtraObjects(), validL1ExtraColl(), and validL1ExtraHTM().

bool L1RetrieveL1Extra::m_validL1ExtraHTT
private

Definition at line 234 of file L1RetrieveL1Extra.h.

Referenced by retrieveL1ExtraObjects(), validL1ExtraColl(), and validL1ExtraHTT().

bool L1RetrieveL1Extra::m_validL1ExtraIsoEG
private
bool L1RetrieveL1Extra::m_validL1ExtraMuon
private

validity for retrieval of L1Extra products (false: product not found)

Definition at line 223 of file L1RetrieveL1Extra.h.

Referenced by retrieveL1ExtraObjects(), validL1ExtraColl(), and validL1ExtraMuon().

bool L1RetrieveL1Extra::m_validL1ExtraNoIsoEG
private
bool L1RetrieveL1Extra::m_validL1ExtraTauJet
private