CMS 3D CMS Logo

L1RCTTestAnalyzer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: L1RCTTestAnalyzer
4 // Class: L1RCTTestAnalyzer
5 //
14 //
15 // Original Author: pts/47
16 // Created: Thu Jul 13 21:38:08 CEST 2006
17 //
18 //
19 
20 // system include files
21 #include <iostream>
22 #include <memory>
23 // user include files
26 
29 
32 
34 
38 
39 #include "TH1F.h"
40 #include "TH2F.h"
41 #include "TTree.h"
42 
43 // // outside of class
44 // bool compareEmCands(const L1CaloEmCand& cand1, const L1CaloEmCand& cand2)
45 // {
46 // return (cand1.rank() < cand2.rank());
47 // }
48 
49 //
50 // class declaration
51 //
52 
54 public:
55  explicit L1RCTTestAnalyzer(const edm::ParameterSet &);
56  ~L1RCTTestAnalyzer() override;
57 
58  void analyze(const edm::Event &, const edm::EventSetup &) override;
59 
60 private:
61  static bool compareEmCands(const L1CaloEmCand &cand1, const L1CaloEmCand &cand2);
62 
63  // ----------member data ---------------------------
70 
71  TTree *emTree;
72  // float emRank[8];
73  // float emIeta[8];
74  // float emIphi[8];
75  // float emIso[8];
76  std::vector<int> emRank;
77  std::vector<int> emIeta;
78  std::vector<int> emIphi;
79  std::vector<int> emIso;
80 
81  TH1F *h_emRank;
83  TH1F *h_emIeta;
84  TH1F *h_emIphi;
85  TH1F *h_emIso;
87  // add isolated/non-iso?
91 
92  TH1F *h_regionSum;
93  TH1F *h_regionIeta;
94  TH1F *h_regionIphi;
95  TH1F *h_regionMip;
97  // add bits in ieta/iphi? tau, overflow, mip, quiet, finegrain?
98  // (is fine grain same thing as mip??)
100 
101  TH1F *h_towerMip;
102 
105 };
106 
107 //
108 // constants, enums and typedefs
109 //
110 
111 //
112 // static data member definitions
113 //
L1RCTTestAnalyzer::h_hcalTimeSample
TH1F * h_hcalTimeSample
Definition: L1RCTTestAnalyzer.h:104
L1RCTTestAnalyzer::h_ecalTimeSample
TH1F * h_ecalTimeSample
Definition: L1RCTTestAnalyzer.h:103
L1RCTTestAnalyzer::h_emIphi
TH1F * h_emIphi
Definition: L1RCTTestAnalyzer.h:84
L1RCTTestAnalyzer::h_emIso
TH1F * h_emIso
Definition: L1RCTTestAnalyzer.h:85
L1RCTTestAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1RCTTestAnalyzer.cc:82
L1RCTTestAnalyzer::h_towerMip
TH1F * h_towerMip
Definition: L1RCTTestAnalyzer.h:101
L1RCTTestAnalyzer::emIeta
std::vector< int > emIeta
Definition: L1RCTTestAnalyzer.h:77
EDAnalyzer.h
L1RCTTestAnalyzer::compareEmCands
static bool compareEmCands(const L1CaloEmCand &cand1, const L1CaloEmCand &cand2)
Definition: L1RCTTestAnalyzer.cc:237
L1RCTTestAnalyzer::h_emNonIsoInIetaIphi
TH2F * h_emNonIsoInIetaIphi
Definition: L1RCTTestAnalyzer.h:89
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
L1RCTTestAnalyzer::h_regionSumInIetaIphi
TH2F * h_regionSumInIetaIphi
Definition: L1RCTTestAnalyzer.h:96
L1RCTTestAnalyzer::h_emCandTimeSample
TH1F * h_emCandTimeSample
Definition: L1RCTTestAnalyzer.h:90
MakerMacros.h
L1RCTTestAnalyzer::h_emIsoInIetaIphi
TH2F * h_emIsoInIetaIphi
Definition: L1RCTTestAnalyzer.h:88
L1RCTTestAnalyzer::h_regionMip
TH1F * h_regionMip
Definition: L1RCTTestAnalyzer.h:95
Service.h
HcalDigiCollections.h
EcalDigiCollections.h
L1RCTTestAnalyzer::h_regionIphi
TH1F * h_regionIphi
Definition: L1RCTTestAnalyzer.h:94
L1RCTTestAnalyzer::emRank
std::vector< int > emRank
Definition: L1RCTTestAnalyzer.h:76
L1RCTTestAnalyzer::h_emRankInIetaIphi
TH2F * h_emRankInIetaIphi
Definition: L1RCTTestAnalyzer.h:86
L1RCTTestAnalyzer::h_emRank
TH1F * h_emRank
Definition: L1RCTTestAnalyzer.h:81
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TFileService.h
L1RCTTestAnalyzer::~L1RCTTestAnalyzer
~L1RCTTestAnalyzer() override
Definition: L1RCTTestAnalyzer.cc:72
L1RCTTestAnalyzer::m_HepMCProduct
std::string m_HepMCProduct
Definition: L1RCTTestAnalyzer.h:64
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
L1RCTTestAnalyzer::h_emRankOutOfTime
TH1F * h_emRankOutOfTime
Definition: L1RCTTestAnalyzer.h:82
L1RCTTestAnalyzer::rctDigisLabel
edm::InputTag rctDigisLabel
Definition: L1RCTTestAnalyzer.h:69
L1CaloCollections.h
L1RCTTestAnalyzer
Definition: L1RCTTestAnalyzer.h:53
edm::EventSetup
Definition: EventSetup.h:57
L1RCTTestAnalyzer::hcalDigisLabel
edm::InputTag hcalDigisLabel
Definition: L1RCTTestAnalyzer.h:68
L1RCTTestAnalyzer::h_emIeta
TH1F * h_emIeta
Definition: L1RCTTestAnalyzer.h:83
L1RCTTestAnalyzer::L1RCTTestAnalyzer
L1RCTTestAnalyzer(const edm::ParameterSet &)
Definition: L1RCTTestAnalyzer.cc:27
L1RCTTestAnalyzer::h_regionIeta
TH1F * h_regionIeta
Definition: L1RCTTestAnalyzer.h:93
L1RCTTestAnalyzer::showRegionSums
bool showRegionSums
Definition: L1RCTTestAnalyzer.h:66
Frameworkfwd.h
L1RCTTestAnalyzer::h_regionFGInIetaIphi
TH2F * h_regionFGInIetaIphi
Definition: L1RCTTestAnalyzer.h:99
L1RCTTestAnalyzer::ecalDigisLabel
edm::InputTag ecalDigisLabel
Definition: L1RCTTestAnalyzer.h:67
L1RCTTestAnalyzer::emIso
std::vector< int > emIso
Definition: L1RCTTestAnalyzer.h:79
L1RCTTestAnalyzer::emIphi
std::vector< int > emIphi
Definition: L1RCTTestAnalyzer.h:78
L1RCTTestAnalyzer::emTree
TTree * emTree
Definition: L1RCTTestAnalyzer.h:71
ParameterSet.h
L1RCTTestAnalyzer::showEmCands
bool showEmCands
Definition: L1RCTTestAnalyzer.h:65
edm::Event
Definition: Event.h:73
L1CaloEmCand
Level-1 Region Calorimeter Trigger EM candidate.
Definition: L1CaloEmCand.h:17
edm::InputTag
Definition: InputTag.h:15
L1RCTTestAnalyzer::h_regionSum
TH1F * h_regionSum
Definition: L1RCTTestAnalyzer.h:92