CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/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: 2010/07/02 13:34:23 $
00009  *  $Revision: 1.2 $
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 
00034 class WValidation : public edm::EDAnalyzer
00035 {
00036   public:
00037         explicit WValidation(const edm::ParameterSet&);
00038         virtual ~WValidation();
00039         virtual void beginJob();
00040         virtual void endJob();  
00041         virtual void analyze(const edm::Event&, const edm::EventSetup&);
00042         virtual void beginRun(const edm::Run&, const edm::EventSetup&);
00043         virtual void endRun(const edm::Run&, const edm::EventSetup&);
00044 
00045   private:
00046 
00047   edm::InputTag hepmcCollection_;
00048 
00050   edm::ESHandle<HepPDT::ParticleDataTable> fPDGTable ;
00051   
00053   DQMStore *dbe;
00054 
00055   MonitorElement *nEvt;  
00056   MonitorElement *Wmass, *WmassPeak, /* *WmT, *WmTPeak, */  *Wpt, *WptLog, *Wrap, *Wdaughters;
00057   MonitorElement *lepmet_mT, *lepmet_mTPeak, *lepmet_pt, *lepmet_ptLog, *lepmet_rap;
00058   MonitorElement *leppt, *met, *lepeta;
00059   MonitorElement *gamma_energy, *cos_theta_gamma_lepton; 
00060 
00062   int _flavor;
00064   std::string _name;
00065 
00066 };
00067 
00068 #endif