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); |
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 |
|
|
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 |
+ |
|