Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:11

0001 /**
0002  *  Test analyser: SharesInputTest
0003  *
0004  * Original Author:  Phillip Killewald
0005  *         Created:  Thu Jan 29 17:33:51 CET 2009
0006  */
0007 
0008 #include <map>
0009 #include <string>
0010 
0011 #include "FWCore/Framework/interface/ConsumesCollector.h"
0012 #include "FWCore/Framework/interface/Frameworkfwd.h"
0013 #include "FWCore/Framework/interface/EDAnalyzer.h"
0014 #include "FWCore/Framework/interface/Event.h"
0015 #include "FWCore/Framework/interface/MakerMacros.h"
0016 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0017 #include "FWCore/ServiceRegistry/interface/Service.h"
0018 #include "CommonTools/UtilAlgos/interface/TFileService.h"
0019 
0020 #include "DataFormats/CSCRecHit/interface/CSCRecHit2DCollection.h"
0021 #include "DataFormats/MuonReco/interface/Muon.h"
0022 
0023 #include "TNtuple.h"
0024 
0025 class CSCSharesInputTest : public edm::EDAnalyzer {
0026 public:
0027   explicit CSCSharesInputTest(const edm::ParameterSet &myConfig);
0028 
0029   ~CSCSharesInputTest();
0030 
0031 private:
0032   virtual void beginJob();
0033 
0034   virtual void analyze(const edm::Event &myEvent, const edm::EventSetup &mySetup);
0035 
0036   virtual void endJob();
0037 
0038   edm::EDGetTokenT<CSCRecHit2DCollection> rh_token;
0039   edm::EDGetTokenT<edm::View<reco::Muon> > mu_token;
0040 
0041   std::map<std::string, uint64_t> counts_;
0042 
0043   edm::Service<TFileService> rootFile_;
0044   std::map<std::string, TNtuple *> ntuples_;
0045 };