CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/SLHCUpgradeSimulations/L1CaloTrigger/plugins/CaloTriggerAnalyzerOnDataTrees.h

Go to the documentation of this file.
00001 //
00002 // Original Author:  Isabel R Ojalvo
00003 //         Created:  Tue Jul 22 12:21:36 CEST 2008
00004 // $Id: CaloTriggerAnalyzerOnDataTrees.h,v 1.2 2013/04/20 03:52:16 dlange Exp $
00005 
00006 // system include files
00007 #include <memory>
00008 
00009 // user include files
00010 #include "FWCore/Framework/interface/Frameworkfwd.h"
00011 #include "FWCore/Framework/interface/EDProducer.h"
00012 #include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
00013 #include "DataFormats/PatCandidates/interface/Electron.h"
00014 #include "FWCore/Framework/interface/Event.h"
00015 #include "FWCore/Framework/interface/MakerMacros.h"
00016 
00017 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00018 #include "DataFormats/PatCandidates/interface/Electron.h"
00019 
00020 #include "DataFormats/BeamSpot/interface/BeamSpot.h"
00021 
00022 #include "Math/GenVector/VectorUtil.h"
00023 
00024 #include "DataFormats/VertexReco/interface/Vertex.h"
00025 #include "DataFormats/VertexReco/interface/VertexFwd.h"
00026 
00027 
00028 // system include files
00029 #include <memory>
00030 
00031 // user include files
00032 #include "FWCore/Framework/interface/Frameworkfwd.h"
00033 #include "FWCore/Framework/interface/EDAnalyzer.h"
00034 #include "FWCore/Framework/interface/EDProducer.h"
00035 
00036 #include "FWCore/Framework/interface/Event.h"
00037 #include "FWCore/Framework/interface/MakerMacros.h"
00038 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00039 
00040 #include "DataFormats/Candidate/interface/Candidate.h"
00041 #include "DataFormats/Candidate/interface/CandidateFwd.h"
00042 #include "FWCore/ServiceRegistry/interface/Service.h"
00043 #include "CommonTools/UtilAlgos/interface/TFileService.h"
00044 
00045 #include "TH1F.h"
00046 #include "TProfile.h"
00047 
00048 #include "TTree.h"
00049 
00050 class CaloTriggerAnalyzerOnDataTrees : public edm::EDAnalyzer {
00051    public:
00052       explicit CaloTriggerAnalyzerOnDataTrees(const edm::ParameterSet&);
00053       ~CaloTriggerAnalyzerOnDataTrees();
00054 
00055    private:
00056       virtual void analyze(const edm::Event&, const edm::EventSetup&);
00057       virtual void matchSLHC(const reco::Candidate * recoCAND);
00058 
00059 
00060 
00061       TTree * RRTree;
00062 
00063       //Inputs
00064       edm::InputTag vertices_;
00065       edm::InputTag SLHCsrc_;
00066       edm::InputTag LHCsrc_;
00067       edm::InputTag LHCisosrc_;
00068       edm::InputTag ref_;
00069       edm::InputTag electrons_;
00070       double iso_;
00071       double DR_;
00072       double threshold_;
00073       double maxEta_;
00074       float numVertices;
00075 
00076       float highestGenPt;
00077       float secondGenPt;
00078       float highPt;
00079       float highPhi;
00080       float highEta;
00081       float highRecoPt;
00082       float secondPtf;
00083 
00084       float LHCL1pt;
00085       float LHCL1eta;
00086       float LHCL1phi;
00087       float SLHCL1pt;
00088       float SLHCL1phi;
00089       float SLHCL1eta;
00090       float SLHCCentralTowerE;
00091 
00092       float RecoEpt;
00093       float RecoEeta;
00094       float RecoEphi;
00095 
00096       TH1F * SLHCpt;
00097       TH1F * LHCpt;
00098 
00099       TH1F * eta;
00100       TH1F * RECOpt;
00101       TH1F * ptNum;   
00102       TH1F * ptDenom;
00103       TH1F * etaNum;
00104       TH1F * etaDenom;
00105       TH1F * pt;
00106       TH1F * dPt;
00107       TH1F * dEta;
00108       TH1F * dPhi;
00109 
00110       TH1F * LHChighestPt;
00111       TH1F * LHCsecondPt;
00112       TH1F * SLHChighestPt;
00113       TH1F * SLHCsecondPt;
00114 
00115       TH1F * highestPt;
00116       TH1F * secondPt;
00117       TH1F * highestPtGen;
00118       TH1F * secondPtGen;
00119       TH1F * RPt;
00120       TH1F * absEta;
00121       TH1F * dR;
00122       TProfile * RPtEta;
00123       TProfile * RPtEtaFull;
00124 };
00125 
00126 
00127 
00128 
00129