L1TStage2BMTF

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
#ifndef DQM_L1TMonitor_L1TStage2BMTF_h
#define DQM_L1TMonitor_L1TStage2BMTF_h

/*
 * \file L1TStage2BMTF.h
 * \Author Esmaeel Eskandari Tadavani
 * \December 2015
*/

// system requirements
#include <iosfwd>
#include <memory>
#include <vector>
#include <string>
#include <algorithm>

// general requirements
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "DataFormats/Common/interface/Handle.h"

// stage2 requirements
#include "DataFormats/L1TMuon/interface/RegionalMuonCand.h"
#include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
#include "DataFormats/FEDRawData/interface/FEDHeader.h"
#include "DataFormats/FEDRawData/interface/FEDNumbering.h"
#include "DataFormats/L1Trigger/interface/BXVector.h"
#include "DataFormats/L1Trigger/interface/Muon.h"
#include "DataFormats/L1TMuon/interface/RegionalMuonCandFwd.h"
#include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h"

// dqm requirements
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"

#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ServiceRegistry/interface/Service.h"

#include "L1Trigger/L1TMuon/interface/MuonRawDigiTranslator.h"
#include "L1Trigger/L1TMuon/interface/RegionalMuonRawDigiTranslator.h"

#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambPhContainer.h"
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambThContainer.h"

// class decleration

class L1TStage2BMTF : public DQMEDAnalyzer {
public:
  // class constructor
  L1TStage2BMTF(const edm::ParameterSet& ps);
  // class destructor
  ~L1TStage2BMTF() override;

  // member functions
protected:
  void analyze(const edm::Event&, const edm::EventSetup&) override;
  void bookHistograms(DQMStore::IBooker&, const edm::Run&, const edm::EventSetup&) override;

  // data members
private:
  std::string monitorDir;
  edm::InputTag bmtfSource;
  //  edm::InputTag bmtfSourceTwinMux1;
  //  edm::InputTag bmtfSourceTwinMux2;
  bool verbose;
  bool kalman;
  edm::EDGetToken bmtfToken;
  // edm::EDGetToken bmtfTokenTwinMux1;
  //  edm::EDGetToken bmtfTokenTwinMux2;
  float global_phi;

  MonitorElement* bmtf_hwEta;
  MonitorElement* bmtf_hwLocalPhi;
  MonitorElement* bmtf_hwGlobalPhi;
  MonitorElement* bmtf_hwPt;
  MonitorElement* bmtf_hwQual;
  MonitorElement* bmtf_proc;

  MonitorElement* bmtf_wedge_bx;
  MonitorElement* bmtf_hwEta_hwLocalPhi;
  MonitorElement* bmtf_hwEta_hwGlobalPhi;

  MonitorElement* bmtf_hwPt_hwEta;
  MonitorElement* bmtf_hwPt_hwLocalPhi;

  MonitorElement* bmtf_hwEta_bx;
  MonitorElement* bmtf_hwLocalPhi_bx;
  MonitorElement* bmtf_hwPt_bx;
  MonitorElement* bmtf_hwQual_bx;

  MonitorElement* bmtf_hwDXY;
  MonitorElement* bmtf_hwPtUnconstrained;

  /* MonitorElement* bmtf_twinmuxInput_PhiBX; */
  /* MonitorElement* bmtf_twinmuxInput_PhiPhi; */
  /* MonitorElement* bmtf_twinmuxInput_PhiPhiB; */
  /* MonitorElement* bmtf_twinmuxInput_PhiQual; */
  /* MonitorElement* bmtf_twinmuxInput_PhiStation; */
  /* MonitorElement* bmtf_twinmuxInput_PhiSector; */
  /* MonitorElement* bmtf_twinmuxInput_PhiWheel; */
  /* MonitorElement* bmtf_twinmuxInput_PhiTrSeg; */
  /* MonitorElement* bmtf_twinmuxInput_PhiWheel_PhiSector; */

  /* MonitorElement* bmtf_twinmuxInput_TheBX; */
  /* MonitorElement* bmtf_twinmuxInput_ThePhi; */
  /* MonitorElement* bmtf_twinmuxInput_ThePhiB; */
  /* MonitorElement* bmtf_twinmuxInput_TheQual; */
  /* MonitorElement* bmtf_twinmuxInput_TheStation; */
  /* MonitorElement* bmtf_twinmuxInput_TheSector; */
  /* MonitorElement* bmtf_twinmuxInput_TheWheel; */
  /* MonitorElement* bmtf_twinmuxInput_TheTrSeg; */
  /* MonitorElement* bmtf_twinmuxInput_TheWheel_TheSector; */
};

#endif