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