CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/DQM/HLTEvF/interface/HLTMonPhotonSource.h

Go to the documentation of this file.
00001 #ifndef HLTMonPhotonSource_H
00002 #define HLTMonPhotonSource_H
00003 
00004 // system include files
00005 #include <memory>
00006 #include <unistd.h>
00007 
00008 
00009 // user include files
00010 #include "FWCore/Framework/interface/Frameworkfwd.h"
00011 #include "FWCore/Framework/interface/EDAnalyzer.h"
00012 
00013 #include "FWCore/Framework/interface/Event.h"
00014 #include "FWCore/Framework/interface/MakerMacros.h"
00015 #include "DataFormats/HLTReco/interface/TriggerEventWithRefs.h"
00016 
00017 #include "DQMServices/Core/interface/DQMStore.h"
00018 #include "DQMServices/Core/interface/MonitorElement.h"
00019 #include "FWCore/ServiceRegistry/interface/Service.h"
00020 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00022 #include <iostream>
00023 #include <fstream>
00024 #include <vector>
00025 
00026 //
00027 // class decleration
00028 //
00029 
00030 class HLTMonPhotonSource : public edm::EDAnalyzer {
00031    public:
00032       explicit HLTMonPhotonSource(const edm::ParameterSet&);
00033       ~HLTMonPhotonSource();
00034 
00035 
00036    private:
00037       virtual void beginJob() ;
00038       virtual void analyze(const edm::Event&, const edm::EventSetup&);
00039       virtual void endJob() ;
00040       template <class T> void fillHistos(edm::Handle<trigger::TriggerEventWithRefs>& , const edm::Event&  ,unsigned int);
00041 
00042       // ----------member data --------------------------- 
00043       int nev_;
00044       DQMStore * dbe;
00045       std::vector<MonitorElement *> etahist;
00046       std::vector<MonitorElement *> phihist;
00047       std::vector<MonitorElement *> ethist;
00048       std::vector<MonitorElement *> etahistiso;
00049       std::vector<MonitorElement *> phihistiso;
00050       std::vector<MonitorElement *> ethistiso;
00051       std::vector<MonitorElement *> histiso;
00052       MonitorElement * eventCounter;
00053       std::vector<edm::InputTag> theHLTCollectionLabels;  
00054       std::vector<int> theHLTOutputTypes;
00055       std::vector<bool> plotiso;
00056       std::vector<std::vector<edm::InputTag> > isoNames; // there has to be a better solution
00057       std::vector<std::pair<double,double> > plotBounds; 
00058       unsigned int reqNum;
00059  
00060       double thePtMin ;
00061       double thePtMax ;
00062       unsigned int theNbins ;
00063 
00064       float maxEt;
00065       float eta;
00066       float phi;
00067       float sigmaetaeta;
00068 
00069       
00070       std::string dirname_;
00071       bool monitorDaemon_;
00072       ofstream logFile_;
00073       int theHLTOutputType;
00074       std::string outputFile_;
00075       
00076 };
00077 #endif