CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalZeroSuppressionAlgo.cc
Go to the documentation of this file.
2 
3 HcalZeroSuppressionAlgo::HcalZeroSuppressionAlgo(bool mp) : m_markAndPass(mp) { m_dbService = nullptr; }
4 
7 
8  for (i = input.begin(); i != input.end(); ++i) {
9  if (shouldKeep((*i))) {
10  if (!m_markAndPass) {
11  output.push_back(*i);
12  } else {
13  HBHEDataFrame df(*i);
14  df.setZSInfo(true, false);
15  output.push_back(df);
16  }
17  } else if (m_markAndPass) {
18  HBHEDataFrame df(*i);
19  df.setZSInfo(true, true);
20  output.push_back(df);
21  }
22  }
23 }
24 
27 
28  for (i = input.begin(); i != input.end(); ++i) {
29  if (shouldKeep((*i))) {
30  if (!m_markAndPass) {
31  output.push_back(*i);
32  } else {
33  HFDataFrame df(*i);
34  df.setZSInfo(true, false);
35  output.push_back(df);
36  }
37  } else if (m_markAndPass) {
38  HFDataFrame df(*i);
39  df.setZSInfo(true, true);
40  output.push_back(df);
41  }
42  }
43 }
44 
47 
48  for (i = input.begin(); i != input.end(); ++i) {
49  if (shouldKeep((*i))) {
50  if (!m_markAndPass) {
51  output.push_back(*i);
52  } else {
53  HODataFrame df(*i);
54  df.setZSInfo(true, false);
55  output.push_back(df);
56  }
57  } else if (m_markAndPass) {
58  HODataFrame df(*i);
59  df.setZSInfo(true, true);
60  output.push_back(df);
61  }
62  }
63 }
64 
66  for (QIE10DigiCollection::const_iterator i = input.begin(); i != input.end(); ++i) {
68  if (shouldKeep(df)) {
69  if (!m_markAndPass) {
70  output.push_back(df);
71  } else {
72  df.setZSInfo(false);
73  output.push_back(df);
74  }
75  } else if (m_markAndPass) {
76  df.setZSInfo(true);
77  output.push_back(df);
78  }
79  }
80 }
81 
83  for (QIE11DigiCollection::const_iterator i = input.begin(); i != input.end(); ++i) {
85  if (shouldKeep(df)) {
86  if (!m_markAndPass) {
87  output.push_back(df);
88  } else {
89  df.setZSInfo(false);
90  output.push_back(df);
91  }
92  } else if (m_markAndPass) {
93  df.setZSInfo(true);
94  output.push_back(df);
95  }
96  }
97 }
const HcalDbService * m_dbService
constexpr void setZSInfo(bool markAndPass)
set ZS params
std::vector< T >::const_iterator const_iterator
void push_back(T const &t)
void suppress(const HBHEDigiCollection &input, HBHEDigiCollection &output)
const_iterator begin() const
The iterator returned can not safely be used across threads.
constexpr void setZSInfo(bool markAndPass)
set ZS params
constexpr void setZSInfo(bool unsuppressed, bool markAndPass, uint32_t crossingMask=0)
Definition: HFDataFrame.h:73
static std::string const input
Definition: EdmProvDump.cc:47
constexpr void setZSInfo(bool unsuppressed, bool markAndPass, uint32_t crossingMask=0)
Definition: HBHEDataFrame.h:73
const_iterator end() const
constexpr void setZSInfo(bool unsuppressed, bool markAndPass, uint32_t crossingMask=0)
Definition: HODataFrame.h:73
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
const_iterator end() const
void push_back(const Digi &digi)
HcalZeroSuppressionAlgo(bool markAndPass)
virtual bool shouldKeep(const HBHEDataFrame &digi) const =0
const_iterator begin() const