CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DQMOffline/Trigger/src/HLTInclusiveVBFClient.cc

Go to the documentation of this file.
00001 /*
00002  *  $Date: 2012/05/18 09:23:50 $
00003  *  $Revision: 1.1 $
00004  *  \author N. Srimanobhas
00005  */
00006 
00007 #include "DQMOffline/Trigger/interface/HLTInclusiveVBFClient.h"
00008 
00009 using namespace std;
00010 using namespace edm;
00011 
00012 
00013 HLTInclusiveVBFClient::HLTInclusiveVBFClient( const edm::ParameterSet& iConfig ):conf_(iConfig) {
00014   
00015   //
00016   dbe_ = Service<DQMStore>().operator->();
00017 
00018   //
00019   if (!dbe_){
00020     edm::LogError("HLTInclusiveVBFClient") << "unable to get DQMStore service, upshot is no client histograms will be made";
00021   }
00022   
00023   //
00024   if(iConfig.getUntrackedParameter<bool>("DQMStore", false)) {
00025     if(dbe_) dbe_->setVerbose(0);
00026   }
00027  
00028   //
00029   debug_ = false;
00030   verbose_ = false;
00031 
00032   //
00033   processname_ = iConfig.getParameter<std::string>("processname");
00034 
00035   //
00036   hltTag_ = iConfig.getParameter<std::string>("hltTag");
00037   if (debug_) std::cout << hltTag_ << std::endl;
00038   
00039   //
00040   dirName_=iConfig.getParameter<std::string>("DQMDirName");
00041   if(dbe_) dbe_->setCurrentFolder(dirName_);
00042 }
00043 
00044 
00045 HLTInclusiveVBFClient::~HLTInclusiveVBFClient() {
00046 
00047 }
00048 
00049 
00050 void HLTInclusiveVBFClient::beginJob() {
00051 
00052 }
00053 
00054 
00055 void HLTInclusiveVBFClient::beginRun(const edm::Run& r, const edm::EventSetup& context) {
00056 
00057 }
00058 
00059 
00060 void HLTInclusiveVBFClient::beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) {
00061 
00062 }
00063 
00064 
00065 void HLTInclusiveVBFClient::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup ) {
00066 
00067 }
00068 
00069 
00070 void HLTInclusiveVBFClient::endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) {
00071   runClient_();
00072 }
00073 
00074 
00075 void HLTInclusiveVBFClient::endRun(const edm::Run& r, const edm::EventSetup& context) {
00076 }
00077 
00078 
00079 void HLTInclusiveVBFClient::endJob() {
00080 
00081 }
00082 
00083 void HLTInclusiveVBFClient::runClient_() {
00084   
00085   if(!dbe_) return; //we dont have the DQMStore so we cant do anything
00086   dbe_->setCurrentFolder(dirName_);
00087 
00088   LogDebug("HLTInclusiveVBFClient") << "runClient" << std::endl;
00089   if (debug_) std::cout << "runClient" << std::endl; 
00090 
00091 }