Skip to content

Commit

Permalink
L1TGlobalProducer: migrate to stream module
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed May 12, 2016
1 parent 197b8fd commit 64a8baa
Showing 1 changed file with 6 additions and 18 deletions.
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

0 comments on commit 64a8baa

Please sign in to comment.