ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/DTDPGAnalysis/src/DTDPGCreateWheelSummary.h
Revision: 1.3
Committed: Thu Jul 4 17:16:33 2013 UTC (11 years, 10 months ago) by marycruz
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -1 lines
Error occurred while calculating annotation data.
Log Message:
Update last version of PromptOffline

File Contents

# Content
1 #ifndef DTDPGCreateWheelSummary_H
2 #define DTDPGCreateWheelSummary_H
3
4
5 /** \class DTDPGCreateWheelSummary
6 * *
7 *
8 * $Date: 2010/12/15 11:52:26 $
9 * \author M.C Fouz
10 *
11 */
12
13
14 #include "FWCore/Framework/interface/Frameworkfwd.h"
15 #include <FWCore/Framework/interface/EDAnalyzer.h>
16 #include "DataFormats/Common/interface/Handle.h"
17 #include <FWCore/Framework/interface/ESHandle.h>
18 #include <FWCore/Framework/interface/Event.h>
19 #include <FWCore/Framework/interface/MakerMacros.h>
20 #include "FWCore/ParameterSet/interface/ParameterSet.h"
21
22 #include "DQMServices/Core/interface/DQMStore.h"
23 #include "FWCore/ServiceRegistry/interface/Service.h"
24
25
26 #include <memory>
27 #include <iostream>
28 #include <fstream>
29 #include <string>
30 #include <vector>
31 #include <map>
32
33 class DTGeometry;
34 class TCanvas;
35
36 class DTDPGCreateWheelSummary: public edm::EDAnalyzer{
37
38 public:
39
40 /// Constructor
41 DTDPGCreateWheelSummary(const edm::ParameterSet& ps);
42
43 /// Destructor
44 virtual ~DTDPGCreateWheelSummary();
45
46 protected:
47
48 /// BeginJob
49 void beginJob();
50
51 /// BeginRun
52 void beginRun(const edm::Run& r, const edm::EventSetup& c);
53
54 /// Analyze
55 void analyze(const edm::Event& e, const edm::EventSetup& c);
56
57 /// Endjob
58 void endJob();
59
60 /// get DDU number from wheel num
61 inline int wheelToDDU(int wheel) { return 770+wheel+2; }
62
63 /// Create and save the gif files
64 void createGifFile(std::string fileName,TCanvas *canvas, bool isExtraFile = false);
65
66 /// Create and save the gif files (per wheel)
67 void createGifFile(std::string fileName,TCanvas *canvas, int wh, bool isExtraFile = false);
68
69 std::ofstream* DeadChannelList;
70
71 private:
72
73 // int nevents;
74 std::string myMainFolder;
75 std::string myL1TFolder;
76
77 edm::ParameterSet myParameters;
78 edm::ESHandle<DTGeometry> myMuonGeom;
79
80 // The file which contain the occupancy plot and the digi event plot
81 TFile *myFile;
82
83 /* // The DDUId */
84 /* int DDUId[5]; */
85
86 // The run number
87 int myRunNumber;
88
89 //histos summary
90 std::map< std::string , MonitorElement* > RecoHistos; // CB x+ MEs e non Histos???
91
92
93 };
94
95 #endif
96
97