CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTauEventFlagProducer.cc
Go to the documentation of this file.
1 /*
2  * Produce an int in the event that specifies an event type.
3  *
4  * Takes one int parameter: flag, and puts it in the event
5  *
6  * Used to identify different samples in MVA training.
7  *
8  * Author: Evan K. Friis, UC Davis
9  *
10  */
11 
17 
19  public:
21  flag_ = pset.getParameter<int>("flag");
22  produces<int>();
23  }
25  void produce(edm::Event& evt, const edm::EventSetup &es) {
26  std::auto_ptr<int> toput(new int(flag_));
27  evt.put(toput);
28  }
29  private:
30  int flag_;
31 };
32 
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void produce(edm::Event &evt, const edm::EventSetup &es)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
RecoTauEventFlagProducer(const edm::ParameterSet &pset)