CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/Validation/EventGenerator/interface/WValidation.h

Go to the documentation of this file.
00001 #ifndef WVALIDATION_H
00002 #define WVALIDATION_H
00003 
00004 /*class WValidation
00005  *  
00006  *  Class to fill Event Generator dqm monitor elements; works on HepMCProduct
00007  *
00008  *  $Date: 2011/12/29 10:53:10 $
00009  *  $Revision: 1.3 $
00010  *
00011  */
00012 
00013 // framework & common header files
00014 #include "FWCore/Framework/interface/EDAnalyzer.h"
00015 #include "FWCore/Framework/interface/Event.h"
00016 #include "FWCore/Framework/interface/EventSetup.h"
00017 #include "FWCore/Framework/interface/Run.h"
00018 
00019 #include "DataFormats/Common/interface/Handle.h"
00020 #include "FWCore/Framework/interface/ESHandle.h"
00021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00022 #include "FWCore/Utilities/interface/InputTag.h"
00023 
00024 //DQM services
00025 #include "DQMServices/Core/interface/DQMStore.h"
00026 #include "FWCore/ServiceRegistry/interface/Service.h"
00027 #include "DQMServices/Core/interface/MonitorElement.h"
00028 
00029 #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
00030 
00031 #include "SimGeneral/HepPDTRecord/interface/ParticleDataTable.h"
00032 
00033 #include "Validation/EventGenerator/interface/WeightManager.h"
00034 
00035 
00036 class WValidation : public edm::EDAnalyzer
00037 {
00038   public:
00039         explicit WValidation(const edm::ParameterSet&);
00040         virtual ~WValidation();
00041         virtual void beginJob();
00042         virtual void endJob();  
00043         virtual void analyze(const edm::Event&, const edm::EventSetup&);
00044         virtual void beginRun(const edm::Run&, const edm::EventSetup&);
00045         virtual void endRun(const edm::Run&, const edm::EventSetup&);
00046 
00047   private:
00048 
00049   WeightManager _wmanager;
00050 
00051   edm::InputTag hepmcCollection_;
00052 
00054   edm::ESHandle<HepPDT::ParticleDataTable> fPDGTable ;
00055   
00057   DQMStore *dbe;
00058 
00059   MonitorElement *nEvt;  
00060   MonitorElement *Wmass, *WmassPeak, /* *WmT, *WmTPeak, */  *Wpt, *WptLog, *Wrap, *Wdaughters;
00061   MonitorElement *lepmet_mT, *lepmet_mTPeak, *lepmet_pt, *lepmet_ptLog, *lepmet_rap;
00062   MonitorElement *leppt, *met, *lepeta;
00063   MonitorElement *gamma_energy, *cos_theta_gamma_lepton; 
00064 
00066   int _flavor;
00068   std::string _name;
00069 
00070 };
00071 
00072 #endif