CMS 3D CMS Logo

HcalZeroSuppressionAlgo.cc
Go to the documentation of this file.
2 
4  m_dbService=0;
5 }
6 
7 
10 
11  for (i=input.begin(); i!=input.end(); ++i) {
12  if (shouldKeep((*i))) {
13  if (!m_markAndPass) {
14  output.push_back(*i);
15  } else {
16  HBHEDataFrame df(*i);
17  df.setZSInfo(true,false);
18  output.push_back(df);
19  }
20  } else if (m_markAndPass) {
21  HBHEDataFrame df(*i);
22  df.setZSInfo(true,true);
23  output.push_back(df);
24  }
25  }
26 }
27 
30 
31  for (i=input.begin(); i!=input.end(); ++i) {
32  if (shouldKeep((*i))) {
33  if (!m_markAndPass) {
34  output.push_back(*i);
35  } else {
36  HFDataFrame df(*i);
37  df.setZSInfo(true,false);
38  output.push_back(df);
39  }
40  } else if (m_markAndPass) {
41  HFDataFrame df(*i);
42  df.setZSInfo(true,true);
43  output.push_back(df);
44  }
45  }
46 }
47 
50 
51  for (i=input.begin(); i!=input.end(); ++i) {
52  if (shouldKeep((*i))) {
53  if (!m_markAndPass) {
54  output.push_back(*i);
55  } else {
56  HODataFrame df(*i);
57  df.setZSInfo(true,false);
58  output.push_back(df);
59  }
60  } else if (m_markAndPass) {
61  HODataFrame df(*i);
62  df.setZSInfo(true,true);
63  output.push_back(df);
64  }
65  }
66 }
67 
69  for (QIE10DigiCollection::const_iterator i=input.begin(); i!=input.end(); ++i) {
70  QIE10DataFrame df(*i);
71  if (shouldKeep(df)) {
72  if (!m_markAndPass) {
73  output.push_back(df);
74  } else {
75  df.setZSInfo(false);
76  output.push_back(df);
77  }
78  }
79  else if (m_markAndPass) {
80  df.setZSInfo(true);
81  output.push_back(df);
82  }
83  }
84 }
85 
87  for (QIE11DigiCollection::const_iterator i=input.begin(); i!=input.end(); ++i) {
88  QIE11DataFrame df(*i);
89  if (shouldKeep(df)) {
90  if (!m_markAndPass) {
91  output.push_back(df);
92  } else {
93  df.setZSInfo(false);
94  output.push_back(df);
95  }
96  }
97  else if (m_markAndPass) {
98  df.setZSInfo(true);
99  output.push_back(df);
100  }
101  }
102 }
const HcalDbService * m_dbService
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
std::vector< HBHEDataFrame >::const_iterator const_iterator
void push_back(T const &t)
void suppress(const HBHEDigiCollection &input, HBHEDigiCollection &output)
const_iterator begin() const
void setZSInfo(bool markAndPass)
set ZS params
static std::string const input
Definition: EdmProvDump.cc:44
void setZSInfo(bool markAndPass)
set ZS params
const_iterator end() const
void setZSInfo(bool unsuppressed, bool markAndPass, uint32_t crossingMask=0)
Definition: HODataFrame.cc:42
const_iterator end() const
void push_back(const Digi &digi)
void setZSInfo(bool unsuppressed, bool markAndPass, uint32_t crossingMask=0)
HcalZeroSuppressionAlgo(bool markAndPass)
virtual bool shouldKeep(const HBHEDataFrame &digi) const =0
const_iterator begin() const
void setZSInfo(bool unsuppressed, bool markAndPass, uint32_t crossingMask=0)
Definition: HFDataFrame.cc:41