CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTrigPrimAnalyzer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Class: EcalTrigPrimAnalyzer
4 //
10 //
11 // Original Author: Ursula Berthon
12 // Created: Thu Jul 4 11:38:38 CEST 2005
13 // $Id: EcalTrigPrimAnalyzer.h,v 1.11 2010/02/11 00:14:53 wmtan Exp $
14 //
15 //
16 
17 
18 // system include files
19 //#include "FWCore/Framework/interface/Frameworkfwd.h"
22 
25 
27 #include <vector>
28 #include <string>
29 #include <TH1I.h>
30 #include <TFile.h>
31 #include <TTree.h>
32 #include <TH2F.h>
33 #include <TH1F.h>
34 
35 //
36 // class declaration
37 //
38 
40  public:
41  explicit EcalTrigPrimAnalyzer(const edm::ParameterSet&);
43 
44 
45  virtual void analyze(const edm::Event&, const edm::EventSetup&);
46  virtual void endJob();
47  private:
48 
49  // for histos of nr of hits
50  std::vector<std::string> ecal_parts_;
51  TH1I * ecal_et_[2];
52  TH1I * ecal_tt_[2];
53  TH1I * ecal_fgvb_[2];
54  TH1I *histEndc,*histBar;
55  TFile *histfile_;
56  TH2F *hTPvsRechit_;
58  TTree *tree_ ;
59 
60  int iphi_, ieta_ , tpgADC_, ttf_, fg_ ;
61  float eRec_, tpgGeV_ ;
62 
64 
67 
68  bool recHits_;
69 };
70 
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::vector< std::string > ecal_parts_
EcalTrigPrimAnalyzer(const edm::ParameterSet &)
edm::InputTag rechits_labelEE_
edm::InputTag rechits_labelEB_