File indexing completed on 2024-04-06 12:19:52
0001 #ifndef L1GCTVALIDATION_H
0002 #define L1GCTVALIDATION_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #include <memory>
0021
0022
0023 #include "FWCore/Framework/interface/Frameworkfwd.h"
0024 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0025
0026 #include "FWCore/Framework/interface/Event.h"
0027
0028 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0029 #include "FWCore/Utilities/interface/ESGetToken.h"
0030
0031 #include "DataFormats/L1GlobalCaloTrigger/interface/L1GctCollections.h"
0032 #include "CondFormats/L1TObjects/interface/L1GctJetFinderParams.h"
0033 #include "CondFormats/DataRecord/interface/L1GctJetFinderParamsRcd.h"
0034 #include "CondFormats/L1TObjects/interface/L1CaloEtScale.h"
0035 #include "CondFormats/DataRecord/interface/L1HtMissScaleRcd.h"
0036 #include "CondFormats/DataRecord/interface/L1HfRingEtScaleRcd.h"
0037 #include "TH1.h"
0038 #include "TH2.h"
0039
0040
0041
0042
0043 class L1GctValidation : public edm::one::EDAnalyzer<edm::one::SharedResources> {
0044 public:
0045 explicit L1GctValidation(const edm::ParameterSet&);
0046 ~L1GctValidation() override;
0047
0048 private:
0049 void beginJob() override;
0050 void analyze(const edm::Event&, const edm::EventSetup&) override;
0051 void endJob() override;
0052
0053
0054
0055 edm::InputTag m_gctinp_tag;
0056 edm::InputTag m_energy_tag;
0057
0058 TH1F* theSumEtInLsb;
0059 TH1F* theSumHtInLsb;
0060 TH1F* theMissEtInLsb;
0061 TH1F* theMissHtInLsb;
0062 TH1F* theSumEtInGeV;
0063 TH1F* theSumHtInGeV;
0064 TH1F* theMissEtInGeV;
0065 TH1F* theMissEtAngle;
0066 TH2F* theMissEtVector;
0067 TH1F* theMissHtInGeV;
0068 TH1F* theMissHtAngle;
0069 TH2F* theMissHtVector;
0070
0071 TH2F* theSumEtVsInputRegions;
0072 TH2F* theMissEtMagVsInputRegions;
0073 TH2F* theMissEtAngleVsInputRegions;
0074 TH2F* theMissHtMagVsInputRegions;
0075
0076 TH2F* theMissEtVsMissHt;
0077 TH2F* theMissEtVsMissHtAngle;
0078 TH2F* theDPhiVsMissEt;
0079 TH2F* theDPhiVsMissHt;
0080
0081 TH2F* theHtVsInternalJetsSum;
0082 TH2F* theMissHtVsInternalJetsSum;
0083 TH2F* theMissHtPhiVsInternalJetsSum;
0084 TH2F* theMissHxVsInternalJetsSum;
0085 TH2F* theMissHyVsInternalJetsSum;
0086
0087 TH1F* theHfRing0EtSumPositiveEta;
0088 TH1F* theHfRing0EtSumNegativeEta;
0089 TH1F* theHfRing1EtSumPositiveEta;
0090 TH1F* theHfRing1EtSumNegativeEta;
0091 TH1F* theHfRing0CountPositiveEta;
0092 TH1F* theHfRing0CountNegativeEta;
0093 TH1F* theHfRing1CountPositiveEta;
0094 TH1F* theHfRing1CountNegativeEta;
0095 edm::ESGetToken<L1GctJetFinderParams, L1GctJetFinderParamsRcd> m_jfParsToken;
0096 edm::ESGetToken<L1CaloEtScale, L1HtMissScaleRcd> m_htMissScaleToken;
0097 edm::ESGetToken<L1CaloEtScale, L1HfRingEtScaleRcd> m_hfRingEtScaleToken;
0098 };
0099 #endif