Skip to content

Commit

Permalink
Merge pull request #26987 from cms-sw/code-format-l1-03f0fe
Browse files Browse the repository at this point in the history
Running code-format for l1
  • Loading branch information
cmsbuild authored May 31, 2019
2 parents 6b79245 + b779886 commit fe5b448
Show file tree
Hide file tree
Showing 241 changed files with 27,808 additions and 29,527 deletions.
29 changes: 16 additions & 13 deletions EventFilter/CSCTFRawToDigi/interface/CSCTFAnalyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,25 @@

class CSCTFAnalyzer : public edm::EDAnalyzer {
private:
edm::InputTag mbProducer, lctProducer, trackProducer, statusProducer;
TTree *tree;
TFile *file;
int dtPhi[12][2];

edm::EDGetTokenT<L1CSCStatusDigiCollection> L1CSCS_Tok;
edm::EDGetTokenT<CSCTriggerContainer<csctf::TrackStub> > CSCTC_Tok;
edm::EDGetTokenT<CSCCorrelatedLCTDigiCollection> CSCCDC_Tok;
edm::EDGetTokenT<L1CSCTrackCollection> L1CST_Tok;
edm::InputTag mbProducer, lctProducer, trackProducer, statusProducer;
TTree *tree;
TFile *file;
int dtPhi[12][2];

edm::EDGetTokenT<L1CSCStatusDigiCollection> L1CSCS_Tok;
edm::EDGetTokenT<CSCTriggerContainer<csctf::TrackStub> > CSCTC_Tok;
edm::EDGetTokenT<CSCCorrelatedLCTDigiCollection> CSCCDC_Tok;
edm::EDGetTokenT<L1CSCTrackCollection> L1CST_Tok;

public:
void analyze(const edm::Event& e, const edm::EventSetup& c) override;

explicit CSCTFAnalyzer(const edm::ParameterSet &conf);
~CSCTFAnalyzer(void) override{ file->cd(); tree->Write(); file->Close(); }
void analyze(const edm::Event &e, const edm::EventSetup &c) override;

explicit CSCTFAnalyzer(const edm::ParameterSet &conf);
~CSCTFAnalyzer(void) override {
file->cd();
tree->Write();
file->Close();
}
};

#endif
16 changes: 5 additions & 11 deletions EventFilter/CSCTFRawToDigi/interface/CSCTFMonitorInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,17 @@
*
*/


class CSCTFDCCEventData;
class CSCTFTBEventData;

class CSCTFMonitorInterface{

class CSCTFMonitorInterface {
public:

CSCTFMonitorInterface(){}
virtual ~CSCTFMonitorInterface(){}
virtual void process(CSCTFDCCEventData & dccData)=0;
virtual void process(CSCTFTBEventData & tbdata)=0;

CSCTFMonitorInterface() {}
virtual ~CSCTFMonitorInterface() {}
virtual void process(CSCTFDCCEventData& dccData) = 0;
virtual void process(CSCTFTBEventData& tbdata) = 0;

private:


};

#endif
28 changes: 14 additions & 14 deletions EventFilter/CSCTFRawToDigi/interface/CSCTFPacker.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@

class CSCTFPacker : public edm::one::EDProducer<> {
private:
edm::InputTag lctProducer, mbProducer, trackProducer;
edm::InputTag lctProducer, mbProducer, trackProducer;

bool zeroSuppression;
unsigned short nTBINs;
unsigned short activeSectors;
bool putBufferToEvent;
bool zeroSuppression;
unsigned short nTBINs;
unsigned short activeSectors;
bool putBufferToEvent;

bool swapME1strips;
bool swapME1strips;

FILE *file;
FILE* file;

int m_minBX, m_maxBX, central_lct_bx, central_sp_bx;
int m_minBX, m_maxBX, central_lct_bx, central_sp_bx;

edm::EDGetTokenT<CSCCorrelatedLCTDigiCollection> CSCCDC_Tok;
edm::EDGetTokenT<CSCTriggerContainer<csctf::TrackStub> > CSCTC_Tok;
edm::EDGetTokenT<L1CSCTrackCollection> L1CSCTr_Tok;
edm::EDGetTokenT<CSCCorrelatedLCTDigiCollection> CSCCDC_Tok;
edm::EDGetTokenT<CSCTriggerContainer<csctf::TrackStub> > CSCTC_Tok;
edm::EDGetTokenT<L1CSCTrackCollection> L1CSCTr_Tok;

public:
void produce(edm::Event& e, const edm::EventSetup& c) override;
void produce(edm::Event& e, const edm::EventSetup& c) override;

explicit CSCTFPacker(const edm::ParameterSet &conf);
~CSCTFPacker(void) override;
explicit CSCTFPacker(const edm::ParameterSet& conf);
~CSCTFPacker(void) override;
};

#endif
29 changes: 14 additions & 15 deletions EventFilter/CSCTFRawToDigi/interface/CSCTFUnpacker.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef CSCTFUnpacker_h
#define CSCTFUnpacker_h


#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include <FWCore/ParameterSet/interface/ParameterSet.h>
Expand All @@ -20,29 +19,29 @@

class CSCTriggerMapping;

class CSCTFUnpacker: public edm::stream::EDProducer<> {
class CSCTFUnpacker : public edm::stream::EDProducer<> {
private:
int m_minBX, m_maxBX;
bool swapME1strips;
int m_minBX, m_maxBX;
bool swapME1strips;

CSCTriggerMapping *mapping; // redundant, but needed
CSCTriggerMapping* mapping; // redundant, but needed

CSCTFEvent tfEvent; // TF data container
CSCTFEvent tfEvent; // TF data container

// geometry may not be properly set in CSC TF data
// make an artificial assignment of each of 12 SPs (slots 6-11 and 16-21) to 12 sectors (1-12, 0-not assigned)
std::vector<int> slot2sector;
// geometry may not be properly set in CSC TF data
// make an artificial assignment of each of 12 SPs (slots 6-11 and 16-21) to 12 sectors (1-12, 0-not assigned)
std::vector<int> slot2sector;

// label of the module which produced raw data
edm::InputTag producer;
// label of the module which produced raw data
edm::InputTag producer;

edm::EDGetTokenT<FEDRawDataCollection> Raw_token;
edm::EDGetTokenT<FEDRawDataCollection> Raw_token;

public:
void produce(edm::Event& e, const edm::EventSetup& c) override;
void produce(edm::Event& e, const edm::EventSetup& c) override;

CSCTFUnpacker(const edm::ParameterSet& pset);
~CSCTFUnpacker(void) override;
CSCTFUnpacker(const edm::ParameterSet& pset);
~CSCTFUnpacker(void) override;
};

#endif
Loading

0 comments on commit fe5b448

Please sign in to comment.