test
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 
59  // stuff for histogramms
60  // output file name with histograms
63  //
64  TFile* hOutputFile ;
65  // TH1D* hCalo1[8000], *hCalo2;
66  TTree * myTree;
67  //
69  float phi,eta;
71  const CaloGeometry* geo;
72  // counters
73  std::map<DetId,double> theFillDetMap0;
74  std::map<DetId,double> theFillDetMap1;
75  std::map<DetId,double> theFillDetMap2;
76  std::map<DetId,double> theFillDetMap3;
77  std::map<DetId,double> theFillDetMap4;
78 
79 };
80 }
float mom2
Definition: MinBias.h:70
float mom1
Definition: MinBias.h:70
float mom4
Definition: MinBias.h:70
virtual void endJob()
Definition: MinBias.cc:53
MinBias(const edm::ParameterSet &)
Definition: MinBias.cc:9
int ievent
Definition: MinBias.h:68
edm::EDGetTokenT< HFRecHitCollection > hfToken_
Definition: MinBias.h:58
virtual void beginJob()
Definition: MinBias.cc:33
std::string hoLabel_
Definition: MinBias.h:55
std::map< DetId, double > theFillDetMap4
Definition: MinBias.h:77
int mydet
Definition: MinBias.h:68
int ieta
Definition: MinBias.h:68
edm::EDGetTokenT< HORecHitCollection > hoToken_
Definition: MinBias.h:57
bool allowMissingInputs_
Definition: MinBias.h:62
std::map< DetId, double > theFillDetMap1
Definition: MinBias.h:74
const CaloGeometry * geo
Definition: MinBias.h:71
std::map< DetId, double > theFillDetMap0
Definition: MinBias.h:73
std::map< DetId, double > theFillDetMap2
Definition: MinBias.h:75
edm::EDGetTokenT< HBHERecHitCollection > hbheToken_
Definition: MinBias.h:56
int depth
Definition: MinBias.h:68
std::map< DetId, double > theFillDetMap3
Definition: MinBias.h:76
float occup
Definition: MinBias.h:70
float eta
Definition: MinBias.h:69
TTree * myTree
Definition: MinBias.h:66
float phi
Definition: MinBias.h:69
float mom3
Definition: MinBias.h:70
int iphi
Definition: MinBias.h:68
TFile * hOutputFile
Definition: MinBias.h:64
std::string hbheLabel_
Definition: MinBias.h:55
int mysubd
Definition: MinBias.h:68
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: MinBias.cc:107
std::string hfLabel_
Definition: MinBias.h:55
std::string fOutputFileName
Definition: MinBias.h:61