ATLAS Offline Software
Loading...
Searching...
No Matches
CorrelationMatrix.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JETUNCERTAINTIES_CORRELATIONMATRIX_H
6#define JETUNCERTAINTIES_CORRELATIONMATRIX_H
7
11
12#include "xAODJet/Jet.h"
18
19#include "TString.h"
20
21class TH2D;
22
23namespace jet
24{
25
27// ^ because using JetUncertaintiesTool
28{
29 public:
30 // Constructor/destructor
31 CorrelationMatrix( const TString& name,
32 const int numBins,
33 const double minVal,
34 const double maxVal,
35 const double fixedVal1,
36 const double fixedVal2 );
37 virtual ~CorrelationMatrix();
38
39 // Initialization
40 virtual StatusCode initializeForPt(const JetUncertaintiesTool& uncTool);
41 virtual StatusCode initializeForEta(const JetUncertaintiesTool& uncTool);
42
43 // Information retrieval methods
44 virtual TString getName() const { return m_name; }
45 virtual const TH2D* getMatrix() const { return m_corrMat; }
46
47
48 private:
49 CorrelationMatrix(const std::string& name = "");
50
51 // Private members
53 const TString m_name;
54
55 const int m_numBins;
56 const double m_minVal;
57 const double m_maxVal;
58 const double m_fixedVal1;
59 const double m_fixedVal2;
60
61 TH2D* m_corrMat;
62
63 // Required xAOD variables for manipulation of kinematics to fill the matrix
66
70
71 // Private helper methods
72 StatusCode checkInitialization(const JetUncertaintiesTool& uncTool) const;
73 StatusCode createStore();
74 StatusCode clearStore();
75 StatusCode setDefaultProperties(const JetUncertaintiesTool& uncTool);
76 TH2D* buildMatrix(const std::vector<double>& bins) const;
77 double getCorrelation(const JetUncertaintiesTool& uncTool) const;
78 double getCovariance(const JetUncertaintiesTool& uncTool, const xAOD::Jet* jet1, const xAOD::Jet* jet2) const;
79};
80
81} // end jet namespace
82
83#endif
static const std::vector< std::string > bins
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Class mimicking the AthMessaging class from the offline software.
double getCovariance(const JetUncertaintiesTool &uncTool, const xAOD::Jet *jet1, const xAOD::Jet *jet2) const
virtual const TH2D * getMatrix() const
virtual TString getName() const
virtual StatusCode initializeForEta(const JetUncertaintiesTool &uncTool)
TH2D * buildMatrix(const std::vector< double > &bins) const
CorrelationMatrix(const TString &name, const int numBins, const double minVal, const double maxVal, const double fixedVal1, const double fixedVal2)
StatusCode setDefaultProperties(const JetUncertaintiesTool &uncTool)
double getCorrelation(const JetUncertaintiesTool &uncTool) const
virtual StatusCode initializeForPt(const JetUncertaintiesTool &uncTool)
xAOD::EventInfoContainer * m_eInfos
StatusCode checkInitialization(const JetUncertaintiesTool &uncTool) const
xAOD::EventInfo * m_eInfo
xAOD::JetContainer * m_jets
Jet_v1 Jet
Definition of the current "jet version".
EventInfoContainer_v1 EventInfoContainer
Define the latest version of the container.
EventInfo_v1 EventInfo
Definition of the latest event info version.
JetContainer_v1 JetContainer
Definition of the current "jet container version".