Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L1TGlobalProducer: migrate to stream module (80x) #14351

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 6 additions & 18 deletions L1Trigger/L1TGlobal/plugins/L1TGlobalProducer.h
Expand Up @@ -6,13 +6,11 @@

#include <string>
#include <vector>
#include<iostream>
#include<fstream>

#include <boost/cstdint.hpp>
#include <iostream>
#include <fstream>

#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
Expand All @@ -33,15 +31,15 @@ class TriggerMenu;

// class declaration

class L1TGlobalProducer : public edm::EDProducer
class L1TGlobalProducer : public edm::stream::EDProducer<>
{

public:

explicit L1TGlobalProducer(const edm::ParameterSet&);
~L1TGlobalProducer();

virtual void produce(edm::Event&, const edm::EventSetup&);
virtual void produce(edm::Event&, const edm::EventSetup&) override;

static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);

Expand Down Expand Up @@ -78,7 +76,7 @@ class L1TGlobalProducer : public edm::EDProducer
int m_totalBxInEvent;

/// active boards in L1 GT DAQ record
boost::uint16_t m_activeBoardsGtDaq;
uint16_t m_activeBoardsGtDaq;

/// length of BST record (in bytes) from event setup
unsigned int m_bstLengthBytes;
Expand All @@ -91,31 +89,25 @@ class L1TGlobalProducer : public edm::EDProducer
const L1GtPrescaleFactors* m_l1GtPfAlgo;
unsigned long long m_l1GtPfAlgoCacheID;



const std::vector<std::vector<int> >* m_prescaleFactorsAlgoTrig;
std::vector<std::vector<int> > m_initialPrescaleFactorsAlgoTrig;

/// CSV file for prescales
std::string m_prescalesFile;


/// trigger masks & veto masks
const L1GtTriggerMask* m_l1GtTmAlgo;
unsigned long long m_l1GtTmAlgoCacheID;

const L1GtTriggerMask* m_l1GtTmVetoAlgo;
unsigned long long m_l1GtTmVetoAlgoCacheID;


const std::vector<unsigned int>* m_triggerMaskAlgoTrig;
std::vector<unsigned int> m_initialTriggerMaskAlgoTrig;

const std::vector<unsigned int>* m_triggerMaskVetoAlgoTrig;
std::vector<unsigned int> m_initialTriggerMaskVetoAlgoTrig;

private:

l1t::GlobalBoard* m_uGtBrd;

/// input tag for muon collection from GMT
Expand Down Expand Up @@ -161,7 +153,6 @@ class L1TGlobalProducer : public edm::EDProducer
/// length of BST record (in bytes) from parameter set
int m_psBstLengthBytes;


/// prescale set used
unsigned int m_prescaleSet;

Expand All @@ -174,9 +165,6 @@ class L1TGlobalProducer : public edm::EDProducer
/// will overwrite the event setup
bool m_algorithmTriggersUnmasked;


private:

/// verbosity level
int m_verbosity;
bool m_isDebugEnabled;
Expand Down