File indexing completed on 2024-04-06 12:21:35
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #include <iostream>
0022 #include <memory>
0023
0024 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0025 #include "FWCore/Framework/interface/Frameworkfwd.h"
0026
0027 #include "FWCore/Framework/interface/Event.h"
0028 #include "FWCore/Framework/interface/MakerMacros.h"
0029
0030 #include "CommonTools/UtilAlgos/interface/TFileService.h"
0031 #include "FWCore/ServiceRegistry/interface/Service.h"
0032
0033 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0034
0035 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0036 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h"
0037 #include "DataFormats/L1CaloTrigger/interface/L1CaloCollections.h"
0038
0039 #include "TH1F.h"
0040 #include "TH2F.h"
0041 #include "TTree.h"
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053 class L1RCTTestAnalyzer : public edm::one::EDAnalyzer<edm::one::SharedResources> {
0054 public:
0055 explicit L1RCTTestAnalyzer(const edm::ParameterSet &);
0056 ~L1RCTTestAnalyzer() override;
0057
0058 void analyze(const edm::Event &, const edm::EventSetup &) override;
0059
0060 private:
0061 static bool compareEmCands(const L1CaloEmCand &cand1, const L1CaloEmCand &cand2);
0062
0063
0064 std::string m_HepMCProduct;
0065 bool showEmCands;
0066 bool showRegionSums;
0067 edm::InputTag ecalDigisLabel;
0068 edm::InputTag hcalDigisLabel;
0069 edm::InputTag rctDigisLabel;
0070
0071 TTree *emTree;
0072
0073
0074
0075
0076 std::vector<int> emRank;
0077 std::vector<int> emIeta;
0078 std::vector<int> emIphi;
0079 std::vector<int> emIso;
0080
0081 TH1F *h_emRank;
0082 TH1F *h_emRankOutOfTime;
0083 TH1F *h_emIeta;
0084 TH1F *h_emIphi;
0085 TH1F *h_emIso;
0086 TH2F *h_emRankInIetaIphi;
0087
0088 TH2F *h_emIsoInIetaIphi;
0089 TH2F *h_emNonIsoInIetaIphi;
0090 TH1F *h_emCandTimeSample;
0091
0092 TH1F *h_regionSum;
0093 TH1F *h_regionIeta;
0094 TH1F *h_regionIphi;
0095 TH1F *h_regionMip;
0096 TH2F *h_regionSumInIetaIphi;
0097
0098
0099 TH2F *h_regionFGInIetaIphi;
0100
0101 TH1F *h_towerMip;
0102
0103 TH1F *h_ecalTimeSample;
0104 TH1F *h_hcalTimeSample;
0105 };
0106
0107
0108
0109
0110
0111
0112
0113