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 
20 #include "TTree.h"
21 
22 
23 
24 namespace edm {
25  class ParameterSet;
26  class Event;
27  class EventSetup;
28 }
29 
30 //
31 // class decleration
32 //
33 namespace cms
34 {
35 class MinBias : public edm::EDAnalyzer {
36  public:
37  explicit MinBias(const edm::ParameterSet&);
38 
39  void analyze(const edm::Event&, const edm::EventSetup&) override;
40  void beginJob() override;
41  void beginRun(edm::Run const&, edm::EventSetup const&) override;
42  void endJob() override;
43 
44  private:
45  // ----------member data ---------------------------
46  // names of modules, producing object collections
47 
48  std::string hbheLabel_,hoLabel_,hfLabel_;
52  // stuff for histogramms
54  //
55  // TH1D* hCalo1[8000], *hCalo2;
56  TTree * myTree_;
57  //
58  int mydet, mysubd, depth, iphi, ieta;
59  float phi,eta;
60  float mom1,mom2,mom3,mom4,occup;
62  // counters
63  std::map<DetId,double> theFillDetMap0_;
64  std::map<DetId,double> theFillDetMap1_;
65  std::map<DetId,double> theFillDetMap2_;
66  std::map<DetId,double> theFillDetMap3_;
67  std::map<DetId,double> theFillDetMap4_;
68 
69 };
70 }
edm::EDGetTokenT< HFRecHitCollection > hfToken_
Definition: MinBias.h:51
std::string hoLabel_
Definition: MinBias.h:48
TTree * myTree_
Definition: MinBias.h:56
std::map< DetId, double > theFillDetMap4_
Definition: MinBias.h:67
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
void beginJob()
Definition: Breakpoints.cc:14
edm::EDGetTokenT< HORecHitCollection > hoToken_
Definition: MinBias.h:50
const CaloGeometry * geo_
Definition: MinBias.h:61
bool allowMissingInputs_
Definition: MinBias.h:53
std::map< DetId, double > theFillDetMap3_
Definition: MinBias.h:66
edm::EDGetTokenT< HBHERecHitCollection > hbheToken_
Definition: MinBias.h:49
Namespace of DDCMS conversion namespace.
float occup
Definition: MinBias.h:60
float phi
Definition: MinBias.h:59
HLT enums.
std::map< DetId, double > theFillDetMap2_
Definition: MinBias.h:65
std::map< DetId, double > theFillDetMap0_
Definition: MinBias.h:63
int mysubd
Definition: MinBias.h:58
std::map< DetId, double > theFillDetMap1_
Definition: MinBias.h:64
Definition: Run.h:45