CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
L1DataEmulRecord.cc File Reference
#include "DataFormats/L1Trigger/interface/L1DataEmulRecord.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const L1DataEmulRecord &cand)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const L1DataEmulRecord cand 
)

Definition at line 59 of file L1DataEmulRecord.cc.

References L1DataEmulRecord::DEnsys, L1DataEmulRecord::get_isComp(), L1DataEmulRecord::get_status(), L1DataEmulRecord::getColl(), L1DataEmulRecord::getGlt(), L1DataEmulRecord::getNCand(), mps_fire::i, alignCSCRings::s, and findQualityFiles::size.

59  {
60  s << "L1DataEmulRecord d|e status: " << (cand.get_status() ? "agree" : "disagree");
61  s << "\n\tsys compd? ";
62  for (int i = 0; i < L1DataEmulRecord::DEnsys; i++)
63  s << cand.get_isComp(i);
64  s << "\n\tsys match? ";
65  for (int i = 0; i < L1DataEmulRecord::DEnsys; i++)
66  s << cand.get_status(i);
67  s << "\n\tndata: ";
68  for (int i = 0; i < L1DataEmulRecord::DEnsys; i++)
69  s << cand.getNCand(i, 0) << " ";
70  s << "\n\tnemul: ";
71  for (int i = 0; i < L1DataEmulRecord::DEnsys; i++)
72  s << cand.getNCand(i, 1) << " ";
73  s << "\n\tdigis size:" << (cand.getColl()).size();
74  s << std::flush;
75  L1DataEmulRecord::L1DEDigiCollection::const_iterator it;
76  std::vector<L1DataEmulDigi> dgcoll = cand.getColl();
77  for (it = dgcoll.begin(); it != dgcoll.end(); it++)
78  s << "\n\t" << *it;
79  s << cand.getGlt();
80  return s;
81 }
static const int DEnsys
GltDEDigi getGlt() const
bool get_status() const
int getNCand(int i, int j) const
L1DEDigiCollection getColl() const
tuple size
Write out results.
bool get_isComp(int i) const