75 selections_(0), plotter_(0), ntupler_(0)
78 std::string moduleLabel = iConfig.
getParameter<std::string>(
"@module_label");
81 if (iConfig.
exists(
"InputTags"))
92 if (!plotPset.
empty()){
93 std::string plotterName = plotPset.
getParameter<std::string>(
"ComponentName");
101 if (!ntPset.
empty()){
102 std::string ntuplerName=ntPset.
getParameter<std::string>(
"ComponentName");
111 produces<std::vector<bool> >();
133 bool majorGlobalAccept=
false;
135 std::auto_ptr<std::vector<bool> > passedProduct(
new std::vector<bool>(
flows_.size(),
false));
136 bool filledOnce=
false;
142 unsigned int iFlow=0;
152 bool globalAccept=
true;
153 std::string separator=
"";
154 std::string cumulative=
"";
155 std::string allButOne=
"allBut_";
156 std::string fullAccept=
"fullAccept";
157 std::string fullContent=
"fullContent";
168 cumulative+=separator+filter.
name(); separator=
"_";
170 if (accept[filter.
name()]){
178 bool goodForAllButThisOne=
true;
179 for (std::map<std::string,bool>::iterator decision=accept.begin(); decision!=accept.end();++decision){
180 if (decision->first==filter.
name())
continue;
181 if (!decision->second) {
182 goodForAllButThisOne=
false;
193 (*passedProduct)[iFlow]=
true;
194 majorGlobalAccept=
true;
207 iEvent.
put(passedProduct);
209 return majorGlobalAccept;
T getParameter(std::string const &) const
std::vector< BranchDescription const * > Selections
#define DEFINE_FWK_MODULE(type)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual unsigned int registerleaves(edm::ProducerBase *producer)=0
const std::string & name()
virtual bool filter(edm::Event &, const edm::EventSetup &)
std::vector< Filter * >::iterator iterator
ConfigurableAnalysis(const edm::ParameterSet &)
std::vector< Selection >::iterator iterator
virtual void fill(edm::Event &iEvent)=0
virtual void fill(std::string subDir, const edm::Event &iEvent)=0
virtual void complete()=0
virtual void setDir(std::string dir)=0
T get(const Candidate &c)
std::vector< std::string > flows_