ATLAS Offline Software
MuonDQAFitFunc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef Muon_MuonDQAFitFunc_H
6 #define Muon_MuonDQAFitFunc_H
7 
8 #include <string>
9 #include <sstream>
10 #include <vector>
11 #include <iostream>
12 #include "TH1F.h"
13 #include "TH2.h"
14 #include "TProfile.h"
15 #include "TProfile2D.h"
17 #include "GaudiKernel/ToolHandle.h"
18 
19 static const InterfaceID IID_MuonDQAFitFunc("Muon::MuonDQAFitFunc",1,0);
20 
21 namespace Muon {
29  class MuonDQAFitFunc: public AthAlgTool {
30  public:
31 
33  MuonDQAFitFunc(const std::string& type, const std::string& name, const IInterface* parent);
34  //const std::string&,const std::string&,const IInterface*);
35 
37  virtual ~MuonDQAFitFunc() {};
38 
40  static const InterfaceID& interfaceID() { return IID_MuonDQAFitFunc; }
41 
42  void ZmumuFitHistograms(TH1F* hmass, TH1F* hwidth, TH1F* h1[], int nbins);
43 
44  void MuonEffHisto1D(TH1F* h_Num, TH1F* h_Denom, TProfile* h_Eff) const;
45  void MuonEffHisto2D(TH2F* h_Num, TH2F* h_Denom, TProfile2D* h_Eff) const;
46 
50  void MinWindow1Set_from_TProf(TProfile* hProf, float windowMin, float windowMax) const;
51  void MinWindow2Set_from_TProf(TProfile2D* hProf, float windowMin, float windowMax) const;
52 
53  void FillMeanRmsProj(TH2F*, TH1F*, int) const;
54  //void FillRMSFromProfile(TProfile*, TProfile*) const;
55 
57  void FillRMSFromProfile(TProfile*, TH1F*) const;
58 
60  void FillRMSFromCharProfile(TProfile*, TH1F*) const;
61  void FillGausMeanOrWidth(TH2F*, TH1F*, float, float, int) const;
62  void FillGaussMeanAndWidth(TH2F*, TH1F*, float, float) const;
63  void FillGaussMeanAndWidth(TH1F*, TH1F*, int, float, float) const;
64 
65  protected:
66  const static int NBINS=6;
69 
70  private:
72  };
73 }
74 #endif
Muon::MuonDQAFitFunc::MuonEffHisto2D
void MuonEffHisto2D(TH2F *h_Num, TH2F *h_Denom, TProfile2D *h_Eff) const
Definition: MuonDQAFitFunc.cxx:88
Muon::MuonDQAFitFunc::NBINS
static const int NBINS
Definition: MuonDQAFitFunc.h:66
Muon::MuonDQAFitFunc::FillRMSFromCharProfile
void FillRMSFromCharProfile(TProfile *, TH1F *) const
Fills a histogram with the RMS values of a TProfile, which labeled bins->keeping the labeling for the...
Definition: MuonDQAFitFunc.cxx:213
Muon::MuonDQAFitFunc::FillGausMeanOrWidth
void FillGausMeanOrWidth(TH2F *, TH1F *, float, float, int) const
Definition: MuonDQAFitFunc.cxx:246
Muon::MuonDQAFitFunc::ZmumuFitHistograms
void ZmumuFitHistograms(TH1F *hmass, TH1F *hwidth, TH1F *h1[], int nbins)
Definition: MuonDQAFitFunc.cxx:34
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
read_hist_ntuple.h1
h1
Definition: read_hist_ntuple.py:21
Muon::MuonDQAFitFunc::~MuonDQAFitFunc
virtual ~MuonDQAFitFunc()
destructor
Definition: MuonDQAFitFunc.h:37
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:45
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
Muon::MuonDQAFitFunc::m_ZmumuPDGmass
double m_ZmumuPDGmass
Definition: MuonDQAFitFunc.h:71
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
Muon::MuonDQAFitFunc::FillMeanRmsProj
void FillMeanRmsProj(TH2F *, TH1F *, int) const
Definition: MuonDQAFitFunc.cxx:140
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
Muon::MuonDQAFitFunc
Tool to fit histograms.
Definition: MuonDQAFitFunc.h:29
Muon::MuonDQAFitFunc::MinWindow2Set_from_TProf
void MinWindow2Set_from_TProf(TProfile2D *hProf, float windowMin, float windowMax) const
Definition: MuonDQAFitFunc.cxx:128
Muon::MuonDQAFitFunc::m_maxMuonEffWindow
float m_maxMuonEffWindow
Definition: MuonDQAFitFunc.h:68
Muon::MuonDQAFitFunc::MuonDQAFitFunc
MuonDQAFitFunc(const std::string &type, const std::string &name, const IInterface *parent)
constructor
Definition: MuonDQAFitFunc.cxx:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Muon::MuonDQAFitFunc::interfaceID
static const InterfaceID & interfaceID()
access to tool interface
Definition: MuonDQAFitFunc.h:40
Muon::MuonDQAFitFunc::FillGaussMeanAndWidth
void FillGaussMeanAndWidth(TH2F *, TH1F *, float, float) const
Definition: MuonDQAFitFunc.cxx:301
Muon::MuonDQAFitFunc::FillRMSFromProfile
void FillRMSFromProfile(TProfile *, TH1F *) const
Fills a histogram with the RMS values of a TProfile.
Definition: MuonDQAFitFunc.cxx:185
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Muon::MuonDQAFitFunc::MuonEffHisto1D
void MuonEffHisto1D(TH1F *h_Num, TH1F *h_Denom, TProfile *h_Eff) const
Definition: MuonDQAFitFunc.cxx:68
Muon::MuonDQAFitFunc::m_minMuonEffWindow
float m_minMuonEffWindow
Definition: MuonDQAFitFunc.h:67
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
Muon::MuonDQAFitFunc::MinWindow1Set_from_TProf
void MinWindow1Set_from_TProf(TProfile *hProf, float windowMin, float windowMax) const
================================================================
Definition: MuonDQAFitFunc.cxx:115
AthAlgTool
Definition: AthAlgTool.h:26