CMS 3D CMS Logo

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 
55  std::string hbheLabel_,hoLabel_,hfLabel_;
59  // stuff for histogramms
60  // output file name with histograms
63  //
64  TFile* hOutputFile ;
65  // TH1D* hCalo1[8000], *hCalo2;
66  TTree * myTree;
67  //
68  int mydet, mysubd, depth, iphi, ieta, ievent;
69  float phi,eta;
70  float mom1,mom2,mom3,mom4,occup;
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 }
def analyze(function, filename, filter=None)
Definition: Profiling.py:11
edm::EDGetTokenT< HFRecHitCollection > hfToken_
Definition: MinBias.h:58
std::string hoLabel_
Definition: MinBias.h:55
std::map< DetId, double > theFillDetMap4
Definition: MinBias.h:77
void beginJob()
Definition: Breakpoints.cc:15
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
std::map< DetId, double > theFillDetMap3
Definition: MinBias.h:76
float occup
Definition: MinBias.h:70
TTree * myTree
Definition: MinBias.h:66
float phi
Definition: MinBias.h:69
HLT enums.
TFile * hOutputFile
Definition: MinBias.h:64
int mysubd
Definition: MinBias.h:68
std::string fOutputFileName
Definition: MinBias.h:61