#include <ConfigurableHisto.h>
Definition at line 225 of file ConfigurableHisto.h.
SplittingConfigurableHisto::SplittingConfigurableHisto |
( |
HType |
t, |
|
|
std::string |
name, |
|
|
edm::ParameterSet & |
pset |
|
) |
| |
|
inline |
Definition at line 227 of file ConfigurableHisto.h.
References MillePedeFileConverter_cfg::e, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), mps_fire::i, edm::ParameterSet::insert(), label, Splitter::label(), Splitter::maxSlots(), CachingVariable::name(), muonDTDigis_cfi::pset, alignCSCRings::s, Splitter::shortLabel(), confdb::splitter(), AlCaHLTBitMon_QueryRunRegistry::string, fftjetcommon_cfi::title, and findQualityFiles::v.
232 if (pset.
exists(
"splitters")){
234 std::vector<std::string> splitters = pset.
getParameter<std::vector<std::string> >(
"splitters");
235 for (
unsigned int s=0;
s!=splitters.size();++
s){
239 edm::LogError(
"SplittingConfigurableHisto")<<
"for: "<<
name_<<
" the splitting variable: "<<splitters[
s]<<
" is not a Splitter";
246 unsigned int mSlots=splitter->
maxSlots();
247 for (
unsigned int i=0;
i!=mSlots;++
i){
265 edm::LogError(
"SplittingConfigurableHisto")<<
"for: "<<
name_<<
" the splitting variable: "<<v->
name()<<
" is not a Splitter";
270 for (
unsigned int i=0;
i!=mSlots;
i++){
T getParameter(std::string const &) const
def splitter(iterator, n)
const Splitter * splitter_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void insert(bool ok_to_replace, char const *, Entry const &)
ConfigurableHisto(HType t, std::string name, edm::ParameterSet &iConfig)
std::vector< ConfigurableHisto * > subHistos_
const std::string shortLabel(unsigned int i) const
virtual unsigned int maxSlots() const
const std::string & label(unsigned int i) const
const std::string & name() const
Definition at line 360 of file ConfigurableHisto.h.
References clone(), mps_fire::i, splitter_, subHistoMap_, and subHistos_.
364 SubHistoMap::const_iterator i_end=master.
subHistoMap_.end();
366 const std::vector<ConfigurableHisto*> & masterHistos=i->second;
367 std::vector<ConfigurableHisto*> & clonedHistos=
subHistoMap_[i->first];
368 for (
unsigned int i=0;i!=masterHistos.size();i++){clonedHistos.push_back(masterHistos[i]->
clone());}
const Splitter * splitter_
ConfigurableHisto(HType t, std::string name, edm::ParameterSet &iConfig)
std::vector< ConfigurableHisto * > subHistos_
ConfigurableHisto * clone() const override
void SplittingConfigurableHisto::complete |
( |
| ) |
|
|
inline |
Definition at line 340 of file ConfigurableHisto.h.
References h, and mps_fire::i.
346 for (
unsigned int h=0;
h!=i->second.size();
h++){
const Splitter * splitter_
SubHistoStacks subHistoStacks_
std::vector< ConfigurableHisto * > subHistos_
const std::string & label(unsigned int i) const
void SplittingConfigurableHisto::fill |
( |
const edm::Event & |
e | ) |
|
|
inlineoverridevirtual |
const Splitter* SplittingConfigurableHisto::splitter_ |
|
private |
THStack* SplittingConfigurableHisto::stack_ |
|
private |