CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MinBias.h
Go to the documentation of this file.
1 // system include files
2 #include <memory>
3 #include <string>
4 #include <iostream>
5 #include <map>
6 
7 // user include files
15 
19 
25 
26 #include "TFile.h"
27 #include "TTree.h"
28 
29 
30 
31 namespace edm {
32  class ParameterSet;
33  class Event;
34  class EventSetup;
35 }
36 
37 //
38 // class decleration
39 //
40 namespace cms
41 {
42 class MinBias : public edm::EDAnalyzer {
43  public:
44  explicit MinBias(const edm::ParameterSet&);
45  ~MinBias();
46 
47  virtual void analyze(const edm::Event&, const edm::EventSetup&);
48  virtual void beginJob() ;
49  virtual void endJob() ;
50 
51  private:
52  // ----------member data ---------------------------
53  // names of modules, producing object collections
54 
56  // stuff for histogramms
57  // output file name with histograms
60  //
61  TFile* hOutputFile ;
62  // TH1D* hCalo1[8000], *hCalo2;
63  TTree * myTree;
64  //
66  float phi,eta;
68  const CaloGeometry* geo;
69  // counters
70  std::map<DetId,double> theFillDetMap0;
71  std::map<DetId,double> theFillDetMap1;
72  std::map<DetId,double> theFillDetMap2;
73  std::map<DetId,double> theFillDetMap3;
74  std::map<DetId,double> theFillDetMap4;
75 
76 };
77 }
float mom2
Definition: MinBias.h:67
float mom1
Definition: MinBias.h:67
float mom4
Definition: MinBias.h:67
virtual void endJob()
Definition: MinBias.cc:50
MinBias(const edm::ParameterSet &)
Definition: MinBias.cc:9
int ievent
Definition: MinBias.h:65
virtual void beginJob()
Definition: MinBias.cc:30
std::string hoLabel_
Definition: MinBias.h:55
std::map< DetId, double > theFillDetMap4
Definition: MinBias.h:74
int mydet
Definition: MinBias.h:65
int ieta
Definition: MinBias.h:65
bool allowMissingInputs_
Definition: MinBias.h:59
std::map< DetId, double > theFillDetMap1
Definition: MinBias.h:71
const CaloGeometry * geo
Definition: MinBias.h:68
std::map< DetId, double > theFillDetMap0
Definition: MinBias.h:70
std::map< DetId, double > theFillDetMap2
Definition: MinBias.h:72
int depth
Definition: MinBias.h:65
std::map< DetId, double > theFillDetMap3
Definition: MinBias.h:73
float occup
Definition: MinBias.h:67
float eta
Definition: MinBias.h:66
TTree * myTree
Definition: MinBias.h:63
float phi
Definition: MinBias.h:66
float mom3
Definition: MinBias.h:67
int iphi
Definition: MinBias.h:65
TFile * hOutputFile
Definition: MinBias.h:61
std::string hbheLabel_
Definition: MinBias.h:55
int mysubd
Definition: MinBias.h:65
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: MinBias.cc:104
std::string hfLabel_
Definition: MinBias.h:55
std::string fOutputFileName
Definition: MinBias.h:58