CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/SimGeneral/MixingModule/plugins/TestMixedSource.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:    TestMixedSource
00004 // Class:      TestMixedSource
00005 // 
00013 //
00014 // Original Author:  Emilia Lubenova Becheva
00015 //         Created:  Wed May 20 16:46:58 CEST 2009
00016 // $Id: TestMixedSource.h,v 1.2 2009/07/02 17:11:20 ebecheva Exp $
00017 //
00018 //
00019 
00020 #ifndef TestMixedSource_h
00021 #define TestMixedSource_h
00022 
00023 // system include files
00024 #include <memory>
00025 
00026 // user include files
00027 #include "FWCore/Framework/interface/Frameworkfwd.h"
00028 #include "FWCore/Framework/interface/EDAnalyzer.h"
00029 
00030 #include "FWCore/Framework/interface/Event.h"
00031 #include "FWCore/Framework/interface/MakerMacros.h"
00032 
00033 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00034 
00035 #include "TH1I.h"
00036 #include "TFile.h"
00037 
00038 #include <iostream>
00039 #include <fstream>
00040 
00041 //
00042 // class decleration
00043 //
00044 namespace edm
00045 {
00046 class TestMixedSource : public edm::EDAnalyzer {
00047    public:
00048       explicit TestMixedSource(const edm::ParameterSet&);
00049       ~TestMixedSource();
00050 
00051 
00052    private:
00053       virtual void beginJob() ;
00054       virtual void analyze(const edm::Event&, const edm::EventSetup&);
00055       virtual void endJob() ;
00056 
00057       // ----------member data ---------------------------
00058       ofstream outputFile;
00059       std::string fileName_;
00060       int bunchcr_;
00061       int minbunch_;
00062       int maxbunch_;
00063       TH1I * histTrack_bunchPileups_;
00064       TH1I * histTrack_bunchSignal_;
00065       TH1I * histVertex_bunch_;
00066       TH1I * histPCaloHit_bunch_;
00067       TH1I * histPSimHit_bunchSignal_TrackerHitsTECHighTof_;
00068       TH1I * histPSimHit_bunchPileups_TrackerHitsTECHighTof_;
00069       TH1I * tofhist_;
00070       TH1I * tofhist_sig_;
00071       TH1I * histPSimHit_bunchSignal_MuonCSCHits_;
00072       TH1I * histPSimHit_bunchPileups_MuonCSCHits_;
00073       TH1I * histHepMCProduct_bunch_;
00074       TFile *histFile_;
00075        
00076 
00077 };
00078 }//edm
00079 #endif