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

Member Typedef Documentation

◆ Selector

Definition at line 162 of file NanoAODDQM.cc.

Constructor & Destructor Documentation

◆ SelGroupConfig() [1/2]

NanoAODDQM::SelGroupConfig::SelGroupConfig ( )
inline

Definition at line 167 of file NanoAODDQM.cc.

167 : name(), cutstr(), cutptr(), plots() {}

◆ SelGroupConfig() [2/2]

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

Definition at line 168 of file NanoAODDQM.cc.

168 : name(nam), cutstr(cut), cutptr(), plots() {}

Member Function Documentation

◆ fillSel()

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

Definition at line 170 of file NanoAODDQM.cc.

170  {
171  out.resize(table.size());
172  if (nullCut()) {
173  std::fill(out.begin(), out.end(), true);
174  } else {
175  if (!cutptr) {
176  cutptr = std::make_unique<Selector>(replaceStringsToColumGets(cutstr, table));
177  }
178  for (unsigned int i = 0, n = table.size(); i < n; ++i) {
179  out[i] = (*cutptr)(table.row(i));
180  }
181  }
182  }

References cutptr, cutstr, ntuplemaker::fill, mps_fire::i, dqmiodumpmetadata::n, nullCut(), MillePedeFileConverter_cfg::out, and TableParser::table.

◆ nullCut()

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

Definition at line 169 of file NanoAODDQM.cc.

169 { return cutstr.empty(); }

References cutstr.

Referenced by fillSel().

Member Data Documentation

◆ cutptr

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

Definition at line 165 of file NanoAODDQM.cc.

Referenced by fillSel().

◆ cutstr

std::string NanoAODDQM::SelGroupConfig::cutstr

Definition at line 164 of file NanoAODDQM.cc.

Referenced by fillSel(), and nullCut().

◆ name

std::string NanoAODDQM::SelGroupConfig::name

◆ plots

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

Definition at line 166 of file NanoAODDQM.cc.

mps_fire.i
i
Definition: mps_fire.py:428
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
NanoAODDQM::SelGroupConfig::cutptr
std::unique_ptr< StringCutObjectSelector< FlatTable::RowView > > cutptr
Definition: NanoAODDQM.cc:165
NanoAODDQM::SelGroupConfig::cutstr
std::string cutstr
Definition: NanoAODDQM.cc:164
ntuplemaker.fill
fill
Definition: ntuplemaker.py:304
NanoAODDQM::SelGroupConfig::plots
std::vector< std::unique_ptr< Plot > > plots
Definition: NanoAODDQM.cc:166
NanoAODDQM::SelGroupConfig::nullCut
bool nullCut() const
Definition: NanoAODDQM.cc:169
PA_MinBiasSkim_cff.cut
cut
Definition: PA_MinBiasSkim_cff.py:13
NanoAODDQM::SelGroupConfig::name
std::string name
Definition: NanoAODDQM.cc:163
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
TableParser.table
table
Definition: TableParser.py:111