CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Analyzer_minbias.h
Go to the documentation of this file.
1 #ifndef PhysicsToolsAnalysisAnalyzerMinBias_h
2 #define PhysicsToolsAnalysisAnalyzerMinBias_h
3 
4 // system include files
5 #include <memory>
6 #include <string>
7 #include <iostream>
8 
9 // user include files
36 #include "TFile.h"
37 #include "TH1.h"
38 #include "TH2.h"
39 #include "TTree.h"
41 #include <vector>
42 #include <map>
43 
44 #include <string>
45 #include <iostream>
46 #include <fstream>
47 #include <sstream>
48 
49 // class declaration
50 namespace cms{
52  public:
53  explicit Analyzer_minbias(const edm::ParameterSet&);
55  virtual void analyze(const edm::Event&, const edm::EventSetup&);
56  virtual void beginJob() ;
57  virtual void endJob() ;
58  virtual void beginRun( const edm::Run& r, const edm::EventSetup& iSetup);
59  virtual void endRun( const edm::Run& r, const edm::EventSetup& iSetup);
60 
61  private:
62 
63  // ----------member data ---------------------------
66  std::ofstream *myout_hcal;
67  TFile* hOutputFile ;
68  TTree* myTree;
69 
70  // Root tree members
71  double rnnum, rnnumber;
73  float phi,eta;
77  struct myInfo{
81  void MyInfo() {
82  theMB0 = theMB1 = theMB2 = theMB3 = theMB4 = 0;
83  theNS0 = theNS1 = theNS2 = theNS3 = theNS4 = 0;
84  theDif0 = theDif1 = theDif2 = runcheck = 0;
85  }
86  };
87  std::map<std::pair<int,HcalDetId>,myInfo> myMap;
91  bool theRecalib;
94  };
95 }
96 #endif
std::map< std::pair< int, HcalDetId >, myInfo > myMap
virtual void beginRun(const edm::Run &r, const edm::EventSetup &iSetup)
std::ofstream * myout_hcal
virtual void endRun(const edm::Run &r, const edm::EventSetup &iSetup)
Analyzer_minbias(const edm::ParameterSet &)
edm::EDGetTokenT< HORecHitCollection > tok_horecoNoise_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< HORecHitCollection > tok_horecoMB_
edm::EDGetTokenT< HFRecHitCollection > tok_hfrecoNoise_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNormal_
edm::EDGetTokenT< L1GlobalTriggerObjectMapRecord > tok_hltL1GtMap_
edm::EDGetTokenT< HFRecHitCollection > tok_hfrecoMB_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbherecoMB_
Definition: Run.h:41
edm::EDGetTokenT< HBHERecHitCollection > tok_hbherecoNoise_