CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
METFileSaver.cc
Go to the documentation of this file.
2 // author: Mike Schmitt, University of Florida
3 // first version 8/24/2006
4 // modification: Bobby Scurlock
5 // date: 03.20.2008
6 // notes: This is to save outputfile.
7 
10 
13 
16 //#include "FWCore/Framework/interface/Handle.h"
18 
19 #include <vector>
20 #include <utility>
21 #include <ostream>
22 #include <fstream>
23 #include <iostream>
24 #include <algorithm>
25 #include <cmath>
26 #include <memory>
28 
30 {
31  outputFile_ = iConfig.getUntrackedParameter<std::string>("OutputFile");
32  if (outputFile_.size() > 0)
33  edm::LogInfo("OutputInfo") << " MET Task histograms will be saved to '" << outputFile_.c_str() << "'";
34  else edm::LogInfo("OutputInfo") << " MET Task histograms will NOT be saved";
35 
36 }
37 
39 {
40  // get ahold of back-end interface
42 
43 }
44 
46 {
47 }
48 
50 {
51  // Store the DAQ Histograms
52  if (outputFile_.size() > 0 && dbe_)
54 }
T getUntrackedParameter(std::string const &, T const &) const
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2118
virtual void beginJob()
Definition: METFileSaver.cc:38
int iEvent
Definition: GenABIO.cc:243
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: METFileSaver.cc:45
virtual void endJob()
Definition: METFileSaver.cc:49
std::string outputFile_
Definition: METFileSaver.h:41
DQMStore * dbe_
Definition: METFileSaver.h:37
METFileSaver(const edm::ParameterSet &)
Definition: METFileSaver.cc:29