ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/DTDPGAnalysis/src/DTDPGCreateWheelSummary.h
Revision: 1.2
Committed: Wed Dec 15 11:52:26 2010 UTC (14 years, 4 months ago) by battilan
Content type: text/plain
Branch: MAIN
CVS Tags: V00-01-00, V00-00-15
Changes since 1.1: +8 -4 lines
Log Message:
PromptOffline back to CVS First Version from Mary-Cruz

File Contents

# User Rev Content
1 battilan 1.1 #ifndef DTDPGCreateWheelSummary_H
2     #define DTDPGCreateWheelSummary_H
3    
4    
5     /** \class DTDPGCreateWheelSummary
6     * *
7     *
8 battilan 1.2 * $Date: 2008/10/14 15:27:13 $
9 battilan 1.1 * \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 battilan 1.2 void beginJob();
50    
51     /// BeginRun
52     void beginRun(const edm::Run& r, const edm::EventSetup& c);
53 battilan 1.1
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 battilan 1.2 void createGifFile(std::string fileName,TCanvas *canvas, bool isExtraFile = false);
65 battilan 1.1
66     /// Create and save the gif files (per wheel)
67 battilan 1.2 void createGifFile(std::string fileName,TCanvas *canvas, int wh, bool isExtraFile = false);
68    
69 battilan 1.1
70     private:
71    
72     // int nevents;
73     std::string myMainFolder;
74    
75     edm::ParameterSet myParameters;
76     edm::ESHandle<DTGeometry> myMuonGeom;
77    
78     // The file which contain the occupancy plot and the digi event plot
79     TFile *myFile;
80    
81     /* // The DDUId */
82     /* int DDUId[5]; */
83    
84     // The run number
85     int myRunNumber;
86    
87     //histos summary
88     std::map< std::string , MonitorElement* > RecoHistos; // CB x+ MEs e non Histos???
89    
90    
91     };
92    
93     #endif
94    
95