7 produces <unsigned int> (
"run" );
8 produces <unsigned int> (
"event" );
9 produces <unsigned int> (
"bx" );
10 produces <unsigned int> (
"lumi" );
11 produces <float> (
"instLumi" );
12 produces <float> (
"PU" );
13 produces <std::vector<bool> > (
"TrigTech" );
14 produces <std::vector<bool> > (
"TrigPh" );
25 auto run = std::make_unique<unsigned int>(iEvent.
id().
run() );
26 auto event = std::make_unique<unsigned int>(iEvent.
id().
event() );
27 auto bx = std::make_unique<unsigned int>(iEvent.
bunchCrossing() );
33 std::vector<bool> TrigTech_(64,
false);
34 std::vector<bool> TrigPh_(128,
false);
38 if ( ! dWord.empty() ) {
40 for (
int i = 0;
i < 64; ++
i ) {
48 for (
int i = 0;
i < 64; ++
i ) {
53 auto TrigTech = std::make_unique<std::vector<bool>>(TrigTech_);
54 auto TrigPh = std::make_unique<std::vector<bool>>(TrigPh_);
58 float instLumi_=0;
float PU_=0;
60 if(lumiScalers.isValid()){
61 if (lumiScalers->begin() != lumiScalers->end()) {
62 instLumi_ = lumiScalers->begin()->instantLumi();
63 PU_ = lumiScalers->begin()->pileup();
67 <<
"LumiScalers collection not found in the event; will write dummy values";
70 auto instLumi = std::make_unique<float>(instLumi_);
71 auto PU = std::make_unique<float>(PU_);
T getParameter(std::string const &) const
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< LumiScalersCollection > scalerToken_
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > trig_token_
std::vector< bool > DecisionWord
typedefs
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
void produce(edm::Event &, const edm::EventSetup &) override
ShallowEventDataProducer(const edm::ParameterSet &)