Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:14:54

0001 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 8; -*-
0002 
0003 /**
0004  *
0005  * Test module for matacq data producing some histograms.
0006  *
0007  * Parameters:
0008  * <UL> outputRootFile: untracked string, name of the root file to create for
0009  * the histograms
0010  * <LI> nTimePlots: untracked int, number of events whose laser pulse is to
0011  * be plotted.
0012  * <LI> firstTimePlotEvent: untracked int, first event for laser pulse time
0013  * plot starting at 1.
0014  * </UL>
0015  */
0016 
0017 #include <FWCore/Framework/interface/EDAnalyzer.h>
0018 #include <FWCore/Framework/interface/Event.h>
0019 #include <FWCore/Framework/interface/MakerMacros.h>
0020 
0021 #include <TFile.h>
0022 #include <memory>
0023 
0024 class TProfile;
0025 class TH1D;
0026 
0027 class EcalMatacqHist2: public edm::EDAnalyzer{  
0028  public:
0029   EcalMatacqHist2(const edm::ParameterSet& ps);  
0030 
0031   virtual ~EcalMatacqHist2();
0032   
0033  protected:
0034   void
0035   analyze( const edm::Event & e, const  edm::EventSetup& c);
0036 
0037 
0038 private:
0039   std::string outFileName;
0040   int nTimePlots;
0041   int firstTimePlotEvent;
0042   int iEvent;
0043   double hTTrigMin;
0044   double hTTrigMax;
0045   std::unique_ptr<TFile> outFile;
0046   std::vector<TProfile> profiles;
0047   //profile->MATACQ CH ID map
0048   std::vector<int> profChId;
0049   TH1D* hTTrig;
0050   std::string matacqProducer_;
0051 };
0052 
0053