CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/SimCalorimetry/EcalTrigPrimProducers/plugins/EcalTrigPrimAnalyzerMIPs.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Class:      EcalTrigPrimAnalyzerMIPs
00004 // 
00005 //
00006 // Original Author:  Pascal Paganini
00007 //
00008 
00009 
00010 // system include files
00011 #include "FWCore/Framework/interface/EDAnalyzer.h"
00012 
00013 #include "FWCore/Framework/interface/Event.h"
00014 #include "FWCore/Framework/interface/MakerMacros.h"
00015 
00016 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00017 #include <vector>
00018 #include <string>
00019 #include <TFile.h>
00020 #include <TTree.h>
00021 
00022 //
00023 // class declaration
00024 //
00025 
00026 class towerEner {   
00027  public:
00028   float eRec_, mean_, tpgGeV_;
00029   float data_[10] ;
00030   int tpgADC_,tpgEmul0_,tpgEmul1_,tpgEmul2_,tpgEmul3_ ,tpgEmul4_;
00031   int iphi_, ieta_, ttf_, fg_, nXtal_ ;
00032   float sample_ ;
00033   towerEner()
00034     : eRec_(0), mean_(0), tpgGeV_(0), tpgADC_(0),  
00035       tpgEmul0_(0),tpgEmul1_(0), tpgEmul2_(0), tpgEmul3_(0), tpgEmul4_(0), 
00036       iphi_(-999), ieta_(-999), ttf_(-999), fg_(-999), nXtal_(0), sample_(0)
00037   { 
00038     for (int i=0 ; i<10 ; i ++) data_[i] = 0. ; 
00039   }
00040 };
00041 
00042 
00043 class EcalTrigPrimAnalyzerMIPs : public edm::EDAnalyzer {
00044 public:
00045   explicit EcalTrigPrimAnalyzerMIPs(const edm::ParameterSet&);
00046   ~EcalTrigPrimAnalyzerMIPs();
00047   
00048   
00049   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00050   
00051 private:
00052 
00053   TFile *histfile_;
00054 
00055   TTree *tree_ ;
00056   int iphi_, ieta_ , tpgADC_, ttf_, fg_, 
00057     tpgEmul0_, tpgEmul1_, tpgEmul2_, tpgEmul3_, tpgEmul4_,
00058     nevt_, nXtal_ ;
00059   float eRec_, mean_, tpgGeV_, sample_ ;
00060   float data0_, data1_, data2_, data3_, data4_, data5_, data6_, data7_, data8_, data9_ ;
00061 
00062   TTree *fedtree_ ;
00063   int fedId_, fedSize_ ;
00064 
00065   TTree * treetopbot_ ;
00066   int iphitop_, ietatop_, iphibot_, ietabot_, Ntop_, Nbot_ ;
00067   float Etop_, Ebot_ ;
00068 
00069   std::string label_;
00070   std::string producer_;
00071   std::string digi_label_;
00072   std::string digi_producer_;
00073   std::string emul_label_;
00074   std::string emul_producer_;
00075 
00076 };
00077