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

Member Typedef Documentation

◆ Selector

Definition at line 207 of file NanoAODDQM.cc.

Constructor & Destructor Documentation

◆ SelGroupConfig() [1/2]

NanoAODDQM::SelGroupConfig::SelGroupConfig ( )
inline

Definition at line 212 of file NanoAODDQM.cc.

212 : name(), cutstr(), cutptr(), plots() {}
std::unique_ptr< StringCutObjectSelector< FlatTable::RowView > > cutptr
Definition: NanoAODDQM.cc:210
std::vector< std::unique_ptr< Plot > > plots
Definition: NanoAODDQM.cc:211

◆ SelGroupConfig() [2/2]

NanoAODDQM::SelGroupConfig::SelGroupConfig ( const std::string &  nam,
const std::string &  cut 
)
inline

Definition at line 213 of file NanoAODDQM.cc.

References cutptr, cutstr, and nullCut().

213  : name(nam), cutstr(cut), cutptr(), plots() {
214  if (not nullCut()) {
215  cutptr = std::make_unique<Selector>(replaceStringsToColumGets(cutstr));
216  }
217  }
std::unique_ptr< StringCutObjectSelector< FlatTable::RowView > > cutptr
Definition: NanoAODDQM.cc:210
std::vector< std::unique_ptr< Plot > > plots
Definition: NanoAODDQM.cc:211

Member Function Documentation

◆ fillSel()

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

Definition at line 219 of file NanoAODDQM.cc.

References EcalPhiSymFlatTableProducers_cfi::fill, mps_fire::i, create_idmaps::n, nullCut(), MillePedeFileConverter_cfg::out, and TableParser::table.

219  {
220  out.resize(table.size());
221  if (nullCut()) {
222  std::fill(out.begin(), out.end(), true);
223  } else {
224  for (unsigned int i = 0, n = table.size(); i < n; ++i) {
225  out[i] = (*cutptr)(table.row(i));
226  }
227  }
228  }

◆ nullCut()

bool NanoAODDQM::SelGroupConfig::nullCut ( ) const
inline

Definition at line 218 of file NanoAODDQM.cc.

References cutstr.

Referenced by fillSel(), and SelGroupConfig().

218 { return cutstr.empty(); }

Member Data Documentation

◆ cutptr

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

Definition at line 210 of file NanoAODDQM.cc.

Referenced by SelGroupConfig().

◆ cutstr

std::string NanoAODDQM::SelGroupConfig::cutstr

Definition at line 209 of file NanoAODDQM.cc.

Referenced by nullCut(), and SelGroupConfig().

◆ name

std::string NanoAODDQM::SelGroupConfig::name

◆ plots

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

Definition at line 211 of file NanoAODDQM.cc.