CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EvFFEDSelector.cc
Go to the documentation of this file.
1 #include <memory>
2 
3 #include "EvFFEDSelector.h"
4 
7 
8 namespace evf {
9 
11  token_( consumes<FEDRawDataCollection>( config.getParameter<edm::InputTag>("inputTag")) ),
12  fedlist_( config.getParameter<std::vector<unsigned int> >("fedList") )
13  {
14  produces<FEDRawDataCollection>();
15  }
16 
19  desc.add<edm::InputTag>("inputTag",edm::InputTag("source"));
20  {
21  std::vector<unsigned int> temp1;
22  temp1.reserve(2);
23  temp1.push_back(812);
24  temp1.push_back(1023);
25  desc.add<std::vector<unsigned int> >("fedList",temp1);
26  }
27  descriptions.add("EvFFEDSelector",desc);
28  }
29 
31  {
33  event.getByToken(token_, rawdata);
34 
35  std::unique_ptr<FEDRawDataCollection> fedcoll( new FEDRawDataCollection() );
36 
37  for (unsigned int i : fedlist_)
38  if (rawdata->FEDData(i).size() > 0)
39  fedcoll->FEDData(i) = rawdata->FEDData(i);
40 
41  event.put(std::move(fedcoll));
42  }
43 
44 } // namespace evf
int i
Definition: DBlmapReader.cc:9
std::vector< unsigned int > fedlist_
void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const overridefinal
edm::EDGetTokenT< FEDRawDataCollection > token_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
def move
Definition: eostools.py:510
ParameterDescriptionBase * add(U const &iLabel, T const &value)
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
void add(std::string const &label, ParameterSetDescription const &psetDescription)
EvFFEDSelector(edm::ParameterSet const &)
dictionary rawdata
Definition: lumiPlot.py:393
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")