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

Member Typedef Documentation

◆ Selector

Definition at line 160 of file NanoAODDQM.cc.

Constructor & Destructor Documentation

◆ SelGroupConfig() [1/2]

NanoAODDQM::SelGroupConfig::SelGroupConfig ( )
inline

Definition at line 165 of file NanoAODDQM.cc.

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

◆ SelGroupConfig() [2/2]

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

Definition at line 166 of file NanoAODDQM.cc.

166 : 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 168 of file NanoAODDQM.cc.

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

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

167 { return cutstr.empty(); }

References cutstr.

Referenced by fillSel().

Member Data Documentation

◆ cutptr

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

Definition at line 163 of file NanoAODDQM.cc.

Referenced by fillSel().

◆ cutstr

std::string NanoAODDQM::SelGroupConfig::cutstr

Definition at line 162 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 164 of file NanoAODDQM.cc.

mps_fire.i
i
Definition: mps_fire.py:428
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
TkAlMuonSelectors_cfi.cut
cut
Definition: TkAlMuonSelectors_cfi.py:5
NanoAODDQM::SelGroupConfig::cutptr
std::unique_ptr< StringCutObjectSelector< FlatTable::RowView > > cutptr
Definition: NanoAODDQM.cc:163
NanoAODDQM::SelGroupConfig::cutstr
std::string cutstr
Definition: NanoAODDQM.cc:162
ntuplemaker.fill
fill
Definition: ntuplemaker.py:304
NanoAODDQM::SelGroupConfig::plots
std::vector< std::unique_ptr< Plot > > plots
Definition: NanoAODDQM.cc:164
NanoAODDQM::SelGroupConfig::nullCut
bool nullCut() const
Definition: NanoAODDQM.cc:167
NanoAODDQM::SelGroupConfig::name
std::string name
Definition: NanoAODDQM.cc:161
NanoAODDQM::SelGroupConfig::Selector
StringCutObjectSelector< FlatTable::RowView > Selector
Definition: NanoAODDQM.cc:160
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
TableParser.table
table
Definition: TableParser.py:111