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 133 of file NanoAODDQM.cc.

Member Typedef Documentation

Definition at line 134 of file NanoAODDQM.cc.

Constructor & Destructor Documentation

NanoAODDQM::SelGroupConfig::SelGroupConfig ( )
inline

Definition at line 139 of file NanoAODDQM.cc.

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

Definition at line 140 of file NanoAODDQM.cc.

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

Member Function Documentation

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

Definition at line 142 of file NanoAODDQM.cc.

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

142  {
143  out.resize(table.size());
144  if (nullCut()) {
145  std::fill(out.begin(), out.end(), true);
146  } else {
147  if (!cutptr) {
148  cutptr.reset(new Selector(replaceStringsToColumGets(cutstr, table)));
149  }
150  for (unsigned int i = 0, n = table.size(); i < n; ++i) {
151  out[i] = (*cutptr)(table.row(i));
152  }
153  }
154  }
std::unique_ptr< StringCutObjectSelector< FlatTable::RowView > > cutptr
Definition: NanoAODDQM.cc:137
StringCutObjectSelector< FlatTable::RowView > Selector
Definition: NanoAODDQM.cc:134
bool NanoAODDQM::SelGroupConfig::nullCut ( ) const
inline

Definition at line 141 of file NanoAODDQM.cc.

141 { return cutstr.empty(); }

Member Data Documentation

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

Definition at line 137 of file NanoAODDQM.cc.

std::string NanoAODDQM::SelGroupConfig::cutstr

Definition at line 136 of file NanoAODDQM.cc.

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

Definition at line 138 of file NanoAODDQM.cc.