CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/JetMETCorrections/MinBias/interface/MinBias.h

Go to the documentation of this file.
00001 // system include files
00002 #include <memory>
00003 #include <string>
00004 #include <iostream>
00005 #include <map>
00006 
00007 // user include files
00008 #include "FWCore/Framework/interface/Frameworkfwd.h"
00009 #include "FWCore/Framework/interface/EDAnalyzer.h"
00010 #include "FWCore/Framework/interface/Event.h"
00011 #include "FWCore/Framework/interface/MakerMacros.h"
00012 #include "FWCore/Framework/interface/ESHandle.h"
00013 #include "FWCore/Framework/interface/EventSetup.h"
00014 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00015 
00016 #include "DataFormats/Common/interface/Ref.h"
00017 #include "DataFormats/CaloTowers/interface/CaloTowerCollection.h"
00018 #include "DataFormats/DetId/interface/DetId.h"
00019 
00020 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
00021 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
00022 #include "DataFormats/CaloTowers/interface/CaloTowerDetId.h"
00023 #include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h"
00024 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
00025 
00026 #include "TFile.h"
00027 #include "TTree.h"
00028 
00029 
00030 
00031 namespace edm {
00032   class ParameterSet;
00033   class Event;
00034   class EventSetup;
00035 }
00036 
00037 //
00038 // class decleration
00039 //
00040 namespace cms
00041 {
00042 class MinBias : public edm::EDAnalyzer {
00043    public:
00044       explicit MinBias(const edm::ParameterSet&);
00045       ~MinBias();
00046 
00047       virtual void analyze(const edm::Event&, const edm::EventSetup&);
00048       virtual void beginJob() ;
00049       virtual void endJob() ;
00050 
00051    private:
00052   // ----------member data ---------------------------
00053   // names of modules, producing object collections
00054      
00055      std::string hbheLabel_,hoLabel_,hfLabel_;
00056   // stuff for histogramms
00057   //  output file name with histograms
00058      std::string fOutputFileName ;
00059      bool allowMissingInputs_;
00060   //
00061      TFile*      hOutputFile ;
00062   //   TH1D*       hCalo1[8000], *hCalo2;
00063      TTree * myTree;
00064   //  
00065      int mydet, mysubd, depth, iphi, ieta, ievent;
00066      float phi,eta;
00067      float mom1,mom2,mom3,mom4,occup;
00068      const CaloGeometry* geo;
00069   // counters
00070      std::map<DetId,double> theFillDetMap0;
00071      std::map<DetId,double> theFillDetMap1; 
00072      std::map<DetId,double> theFillDetMap2; 
00073      std::map<DetId,double> theFillDetMap3; 
00074      std::map<DetId,double> theFillDetMap4; 
00075     
00076 };
00077 }