CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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) output.push_back(*i);
14  else {
15  HBHEDataFrame df(*i);
16  df.setZSInfo(true,false);
17  output.push_back(df);
18  }
19  } else if (m_markAndPass) {
20  HBHEDataFrame df(*i);
21  df.setZSInfo(true,true);
22  output.push_back(df);
23  }
24 }
25 
28 
29 
30  for (i=input.begin(); i!=input.end(); ++i)
31  if (shouldKeep((*i))) {
32  if (!m_markAndPass) output.push_back(*i);
33  else {
34  HFDataFrame df(*i);
35  df.setZSInfo(true,false);
36  output.push_back(df);
37  }
38  } else if (m_markAndPass) {
39  HFDataFrame df(*i);
40  df.setZSInfo(true,true);
41  output.push_back(df);
42  }
43 }
44 
47 
48 
49  for (i=input.begin(); i!=input.end(); ++i)
50  if (shouldKeep((*i))) {
51  if (!m_markAndPass) 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 
65 
66 
const HcalDbService * m_dbService
int i
Definition: DBlmapReader.cc:9
std::vector< T >::const_iterator const_iterator
void push_back(T const &t)
void suppress(const HBHEDigiCollection &input, HBHEDigiCollection &output)
const_iterator end() const
void setZSInfo(bool unsuppressed, bool markAndPass, uint32_t crossingMask=0)
Definition: HODataFrame.cc:42
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