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