1 #ifndef UtilAlgos_NtpProducer_h 2 #define UtilAlgos_NtpProducer_h 36 std::vector<std::pair<std::string, StringObjectFunction<typename C::value_type> > >
tags_;
48 std::vector<edm::ParameterSet>
variables =
49 par.template getParameter<std::vector<edm::ParameterSet> >(
"variables");
50 std::vector<edm::ParameterSet>::const_iterator
51 q = variables.begin(),
end = variables.end();
53 produces<edm::EventNumber_t>(
prefix_+
"EventNumber" ).setBranchAlias(
prefix_ +
"EventNumber" );
54 produces<unsigned int>(
prefix_ +
"RunNumber" ).setBranchAlias(
prefix_ +
"RunNumber" );
55 produces<unsigned int>(
prefix_ +
"LumiBlock" ).setBranchAlias(
prefix_ +
"Lumiblock" );
60 tags_.push_back(std::make_pair(tag, quantity));
61 produces<std::vector<float> >(
tag).setBranchAlias(tag);
76 std::unique_ptr<unsigned int>
run(
new unsigned int );
77 std::unique_ptr<unsigned int>
lumi(
new unsigned int );
79 *run = iEvent.
id().
run();
85 typename std::vector<std::pair<std::string, StringObjectFunction<typename C::value_type> > >::const_iterator
88 std::unique_ptr<std::vector<float> >
x(
new std::vector<float>);
89 x->reserve(coll->size());
90 for (
typename C::const_iterator
elem=coll->begin();
elem!=coll->end(); ++
elem ) {
91 x->push_back(q->second(*
elem));
EventNumber_t event() const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< C > srcToken_
label of the collection to be read in
unsigned long long EventNumber_t
edm::LuminosityBlockNumber_t luminosityBlock() const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void produce(edm::Event &, const edm::EventSetup &) override
process an event
def template(fileName, svg, replaceme="REPLACEME")
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
def elem(elemtype, innerHTML='', html_class='', kwargs)
~NtpProducer() override
destructor
std::vector< std::pair< std::string, StringObjectFunction< typename C::value_type > > > tags_
variable tags
NtpProducer(const edm::ParameterSet &)
constructor from parameter set