ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/DTDPGAnalysis/src/DTDPGCreateAnalyzerSummary.h
(Generate patch)

Comparing UserCode/DTDPGAnalysis/src/DTDPGCreateAnalyzerSummary.h (file contents):
Revision 1.3 by battilan, Fri Dec 19 14:22:34 2008 UTC vs.
Revision 1.4 by battilan, Wed Dec 15 11:52:26 2010 UTC

# Line 47 | Line 47 | class DTDPGCreateAnalyzerSummary: public
47   protected:
48  
49    /// BeginJob
50 <  void beginJob(const edm::EventSetup& c);
50 >  void beginJob();
51  
52    /// Analyze
53    void analyze(const edm::Event& e, const edm::EventSetup& c);
# Line 66 | Line 66 | class DTDPGCreateAnalyzerSummary: public
66  
67    /// Get the histos
68    template <class T> T* getHisto(std::string name);
69 +  template <class T> T* force_getHisto(std::string name);
70  
71    /// Create and save the gif files
72 <  void createGifFile(std::string fileName, int wh, int sec, std::string tag, TCanvas *canvas);
72 >  void createGifFile(std::string fileName, int wh, int sec, std::string tag, TCanvas *canvas, bool isExtraFile = false);
73  
74    /// Create and save the gif files
75 <  void createGifFile(std::string fileName, int wh, std::string tag, TCanvas *canvas);
75 >  void createGifFile(std::string fileName, int wh, std::string tag, TCanvas *canvas, bool isExtraFile = false);
76  
77    /// Create and save the gif files
78 <  void createGifFile(std::string fileName, std::string tag, TCanvas *canvas);
78 >  void createGifFile(std::string fileName, std::string tag, TCanvas *canvas, bool isExtraFile = false);
79  
80   private:
81  
# Line 92 | Line 93 | template <class T>
93   T* DTDPGCreateAnalyzerSummary::getHisto(std::string name) {
94    T* t = static_cast<T*>(myFile->Get((myMainFolder+name).c_str()));
95    if(!t) {
96 <    throw cms::Exception("DTDPGCreateAnalyzerSummaryError")<< "[DTDPGCreateAnalyzerSummary]: Cannot get and convert histo " << name << " check for existence and correctness of the type" << std::endl;
96 > //    throw cms::Exception("DTDPGCreateAnalyzerSummaryError")<< "[DTDPGCreateAnalyzerSummary]: Cannot get and convert histo " << name << " check for existence and correctness of the type" << std::endl;
97 >   std::cout << "[DTDPGCreateAnalyzerSummary]: Cannot get and convert histo " << name << " check for existence and correctness of the type" << std::endl;
98 >   return NULL;
99    }
100    return t;
101   }
102 +
103 +
104 + template <class T>
105 + T* DTDPGCreateAnalyzerSummary::force_getHisto(std::string name) {
106 +  T* t = static_cast<T*>(myFile->Get((myMainFolder+name).c_str()));
107 +  return t;
108 + }
109 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines