CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/SimG4Core/GFlash/TB/TreeProducerCalibSimul.h

Go to the documentation of this file.
00001 #ifndef TREEPRODUCERCALIBSIMUL_H
00002 #define TREEPRODUCERCALIBSIMUL_H
00003 
00004 // system include files
00005 #include <memory>
00006 
00007 // framework
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/EventSetup.h"
00012 #include "FWCore/Framework/interface/MakerMacros.h"
00013 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00014 #include "FWCore/Framework/interface/ESHandle.h"
00015 
00016 // for reconstruction
00017 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
00018 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
00019 #include "DataFormats/EcalRecHit/interface/EcalUncalibratedRecHit.h"
00020 #include "DataFormats/EcalDetId/interface/EBDetId.h"
00021 #include "TBDataFormats/EcalTBObjects/interface/EcalTBHodoscopeRecInfo.h"
00022 #include "TBDataFormats/EcalTBObjects/interface/EcalTBTDCRecInfo.h"
00023 #include "TBDataFormats/EcalTBObjects/interface/EcalTBEventHeader.h"
00024 
00025 // geometry
00026 #include "Geometry/Records/interface/IdealGeometryRecord.h"
00027 #include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h"
00028 #include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
00029 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
00030 
00031 // my include files
00032 #include "SimG4Core/GFlash/TB/TreeMatrixCalib.h"
00033 
00034 
00035 // root includes
00036 #include "TROOT.h"
00037 #include "TSystem.h"
00038 #include "TFile.h"
00039 #include "TTree.h"
00040 #include "TF1.h"
00041 #include "TH1.h"
00042 #include "TH2.h"
00043 #include "TGraph.h"
00044 #include "TStyle.h"
00045 #include "TCanvas.h"
00046 #include "TSelector.h"
00047 #include "TApplication.h"
00048 
00049 // c++ includes
00050 #include <string>
00051 #include <stdio.h>
00052 #include <sstream>
00053 #include <iostream>
00054 #include <unistd.h>
00055 #include <fstream>
00056 #include <math.h>
00057 #include <stdexcept>
00058 
00059 
00060 class TreeProducerCalibSimul : public edm::EDAnalyzer {
00061    public:
00062       explicit TreeProducerCalibSimul(const edm::ParameterSet&);
00063       ~TreeProducerCalibSimul();
00064 
00065       virtual void analyze(const edm::Event&, const edm::EventSetup&);
00066       virtual void beginJob();
00067       virtual void endJob();
00068  private:
00069 
00070       
00071       std::string rootfile_;
00072       std::string txtfile_;
00073       std::string EBRecHitCollection_;
00074       std::string RecHitProducer_;
00075       std::string hodoRecInfoCollection_;
00076       std::string hodoRecInfoProducer_;
00077       std::string tdcRecInfoCollection_;
00078       std::string tdcRecInfoProducer_;
00079       std::string eventHeaderCollection_;
00080       std::string eventHeaderProducer_;
00081       double posCluster_;
00082 
00083       TreeMatrixCalib* myTree;
00084 
00085       int xtalInBeam;
00086       int tot_events;
00087       int tot_events_ok;
00088       int noHits;
00089       int noHodo;
00090       int noTdc;
00091       int noHeader;
00092 };
00093 
00094 
00095 
00096 #endif