CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
NanoAODDQM::SelGroupConfig Struct Reference

Public Types

typedef StringCutObjectSelector< FlatTable::RowViewSelector
 

Public Member Functions

void fillSel (const FlatTable &table, std::vector< bool > &out)
 
bool nullCut () const
 
 SelGroupConfig ()
 
 SelGroupConfig (const std::string &nam, const std::string &cut)
 

Public Attributes

std::unique_ptr< StringCutObjectSelector< FlatTable::RowView > > cutptr
 
std::string cutstr
 
std::string name
 
std::vector< std::unique_ptr< Plot > > plots
 

Detailed Description

Definition at line 158 of file NanoAODDQM.cc.

Member Typedef Documentation

Definition at line 159 of file NanoAODDQM.cc.

Constructor & Destructor Documentation

NanoAODDQM::SelGroupConfig::SelGroupConfig ( )
inline

Definition at line 164 of file NanoAODDQM.cc.

164 : name(), cutstr(), cutptr(), plots() {}
std::unique_ptr< StringCutObjectSelector< FlatTable::RowView > > cutptr
Definition: NanoAODDQM.cc:162
std::vector< std::unique_ptr< Plot > > plots
Definition: NanoAODDQM.cc:163
NanoAODDQM::SelGroupConfig::SelGroupConfig ( const std::string &  nam,
const std::string &  cut 
)
inline

Definition at line 165 of file NanoAODDQM.cc.

165 : name(nam), cutstr(cut), cutptr(), plots() {}
std::unique_ptr< StringCutObjectSelector< FlatTable::RowView > > cutptr
Definition: NanoAODDQM.cc:162
std::vector< std::unique_ptr< Plot > > plots
Definition: NanoAODDQM.cc:163

Member Function Documentation

void NanoAODDQM::SelGroupConfig::fillSel ( const FlatTable table,
std::vector< bool > &  out 
)
inline

Definition at line 167 of file NanoAODDQM.cc.

References ntuplemaker::fill, mps_fire::i, dqmiodumpmetadata::n, nanoaod::FlatTable::row(), ALCARECOPromptCalibProdSiPixelAli0T_cff::Selector, and nanoaod::FlatTable::size().

167  {
168  out.resize(table.size());
169  if (nullCut()) {
170  std::fill(out.begin(), out.end(), true);
171  } else {
172  if (!cutptr) {
173  cutptr.reset(new Selector(replaceStringsToColumGets(cutstr, table)));
174  }
175  for (unsigned int i = 0, n = table.size(); i < n; ++i) {
176  out[i] = (*cutptr)(table.row(i));
177  }
178  }
179  }
std::unique_ptr< StringCutObjectSelector< FlatTable::RowView > > cutptr
Definition: NanoAODDQM.cc:162
StringCutObjectSelector< FlatTable::RowView > Selector
Definition: NanoAODDQM.cc:159
bool NanoAODDQM::SelGroupConfig::nullCut ( ) const
inline

Definition at line 166 of file NanoAODDQM.cc.

166 { return cutstr.empty(); }

Member Data Documentation

std::unique_ptr<StringCutObjectSelector<FlatTable::RowView> > NanoAODDQM::SelGroupConfig::cutptr

Definition at line 162 of file NanoAODDQM.cc.

std::string NanoAODDQM::SelGroupConfig::cutstr

Definition at line 161 of file NanoAODDQM.cc.

std::string NanoAODDQM::SelGroupConfig::name
std::vector<std::unique_ptr<Plot> > NanoAODDQM::SelGroupConfig::plots

Definition at line 163 of file NanoAODDQM.cc.