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
cms::MinBias::myTree_
TTree * myTree_
Definition: MinBias.h:53
cms::MinBias::endJob
void endJob() override
Definition: MinBias.cc:54
cms::MinBias::allowMissingInputs_
bool allowMissingInputs_
Definition: MinBias.h:50
ESHandle.h
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
cms::MinBias::theFillDetMap1_
std::map< DetId, double > theFillDetMap1_
Definition: MinBias.h:61
edm
HLT enums.
Definition: AlignableModifier.h:19
cms::MinBias::mom3
float mom3
Definition: MinBias.h:57
cms::MinBias::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: MinBias.cc:108
cms::MinBias::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: MinBias.cc:37
cms::MinBias::mom2
float mom2
Definition: MinBias.h:57
EDAnalyzer.h
cms::MinBias::mysubd
int mysubd
Definition: MinBias.h:55
cms::MinBias::mom4
float mom4
Definition: MinBias.h:57
cms::MinBias::hfLabel_
std::string hfLabel_
Definition: MinBias.h:45
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
cms::MinBias::eta
float eta
Definition: MinBias.h:56
MakerMacros.h
CaloGeometry
Definition: CaloGeometry.h:21
cms::MinBias::mom1
float mom1
Definition: MinBias.h:57
cms::MinBias::hfToken_
edm::EDGetTokenT< HFRecHitCollection > hfToken_
Definition: MinBias.h:48
cms::MinBias::hbheLabel_
std::string hbheLabel_
Definition: MinBias.h:45
cms::MinBias::occup
float occup
Definition: MinBias.h:57
Event
cms::MinBias::hoLabel_
std::string hoLabel_
Definition: MinBias.h:45
cms::MinBias::iphi
int iphi
Definition: MinBias.h:55
cms::MinBias::theFillDetMap3_
std::map< DetId, double > theFillDetMap3_
Definition: MinBias.h:63
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
ParameterSet
Definition: Functions.h:16
cms::MinBias
Definition: MinBias.h:32
edm::EventSetup
Definition: EventSetup.h:58
cms::MinBias::beginJob
void beginJob() override
Definition: MinBias.cc:21
cms::MinBias::geo_
const CaloGeometry * geo_
Definition: MinBias.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cms::MinBias::ieta
int ieta
Definition: MinBias.h:55
cms::MinBias::hbheToken_
edm::EDGetTokenT< HBHERecHitCollection > hbheToken_
Definition: MinBias.h:46
DetId.h
Frameworkfwd.h
CaloGeometry.h
EventSetup.h
HcalRecHitCollections.h
cms::MinBias::MinBias
MinBias(const edm::ParameterSet &)
Definition: MinBias.cc:10
cms::MinBias::theFillDetMap0_
std::map< DetId, double > theFillDetMap0_
Definition: MinBias.h:60
EventSetup
ParameterSet.h
cms::MinBias::theFillDetMap4_
std::map< DetId, double > theFillDetMap4_
Definition: MinBias.h:64
edm::Event
Definition: Event.h:73
cms::MinBias::theFillDetMap2_
std::map< DetId, double > theFillDetMap2_
Definition: MinBias.h:62
cms::MinBias::mydet
int mydet
Definition: MinBias.h:55
cms::MinBias::depth
int depth
Definition: MinBias.h:55
cms::MinBias::hoToken_
edm::EDGetTokenT< HORecHitCollection > hoToken_
Definition: MinBias.h:47
cms::MinBias::phi
float phi
Definition: MinBias.h:56
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21