Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:28

0001 #ifndef CSCTFAnalyzer_h
0002 #define CSCTFAnalyzer_h
0003 
0004 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "DataFormats/Common/interface/Handle.h"
0007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0008 #include "FWCore/Framework/interface/EventSetup.h"
0009 #include "FWCore/Framework/interface/ESHandle.h"
0010 #include "FWCore/Utilities/interface/ESGetToken.h"
0011 #include "FWCore/Utilities/interface/InputTag.h"
0012 #include "CondFormats/L1TObjects/interface/L1MuTriggerScales.h"
0013 #include "CondFormats/DataRecord/interface/L1MuTriggerScalesRcd.h"
0014 
0015 #include "TTree.h"
0016 #include "TFile.h"
0017 
0018 class CSCTFanalyzer : public edm::one::EDAnalyzer<> {
0019 private:
0020   edm::InputTag lctProducer, mbProducer, dataTrackProducer, emulTrackProducer;
0021   edm::ESGetToken<L1MuTriggerScales, L1MuTriggerScalesRcd> scalesToken;
0022   TTree* tree;
0023   TFile* file;
0024   int nDataMuons, nEmulMuons, verbose;
0025   double dphi1, deta1;
0026   int dpt1, dch1, dbx1;
0027   double dphi2, deta2;
0028   int dpt2, dch2, dbx2;
0029   double dphi3, deta3;
0030   int dpt3, dch3, dbx3;
0031   int drank1, drank2, drank3;
0032   int dmode1, dmode2, dmode3;
0033   int dlcts1, dlcts2, dlcts3;
0034   double ephi1, eeta1;
0035   int ept1, ech1, ebx1;
0036   double ephi2, eeta2;
0037   int ept2, ech2, ebx2;
0038   double ephi3, eeta3;
0039   int ept3, ech3, ebx3;
0040   int erank1, erank2, erank3;
0041   int emode1, emode2, emode3;
0042 
0043   const L1MuTriggerScales* ts;
0044 
0045 public:
0046   void analyze(edm::Event const& e, edm::EventSetup const& iSetup) override;
0047   void endJob(void) override;
0048   void beginJob() override {}
0049 
0050   explicit CSCTFanalyzer(edm::ParameterSet const& pset);
0051   ~CSCTFanalyzer(void) override {}
0052 };
0053 
0054 #endif