ATLAS Offline Software
NPVBeamspotCorrection.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5  /*
6  * Class definition of GSCTool - see Root/GSC.cxx for more details
7  * Joe Taenzer (joseph.taenzer@cern.ch), Nov 2012
8  */
9 
10 #ifndef JETCALIBTOOLS_NPVBEAMSPOTCORRECTION_H
11 #define JETCALIBTOOLS_NPVBEAMSPOTCORRECTION_H 1
12 
13 #include <iostream>
14 #include <fstream>
15 #include <TROOT.h>
16 #include <TFile.h>
17 #include <TMath.h>
18 #include <TGraph.h>
19 #include <vector>
20 
22 
23  public:
24 
26  virtual ~NPVBeamspotCorrection();
27 
29  double GetNVertexBsCorrection(double nRecoVtx);
30 
31  private:
32 
33  void error(TString msg)
34  { printf("\nERROR - NPVBeamspotCorrection:\n\n %s\n\n",msg.Data()); abort(); }
35 
38 
39  //Graph which will be filled with expected number of reconstructed vertices for beamspot length = 66mm
41  //Graph which will be filled with expected number of reconstructed vertices for beamspot length = 47mm
43 
44  TGraph *m_invGraph;
45 
46  double m_NPVmin, m_NPVmax;
47 
48 };
49 
50 #endif
NPVBeamspotCorrection::NPVBeamspotCorrection
NPVBeamspotCorrection()
Return approximate correction on the number of reconstructed vertices due to different beamspot longi...
Definition: NPVBeamspotCorrection.cxx:33
NPVBeamspotCorrection::m_NPVmin
double m_NPVmin
Definition: NPVBeamspotCorrection.h:46
NPVBeamspotCorrection::m_invGraph
TGraph * m_invGraph
Definition: NPVBeamspotCorrection.h:44
NPVBeamspotCorrection::NVtx_NReconstructible_bs47mm
TGraph * NVtx_NReconstructible_bs47mm()
Definition: NPVBeamspotCorrection.cxx:71
NPVBeamspotCorrection::initNPVBeamspotCorrection
void initNPVBeamspotCorrection()
Definition: NPVBeamspotCorrection.cxx:46
NPVBeamspotCorrection::error
void error(TString msg)
Definition: NPVBeamspotCorrection.h:33
NPVBeamspotCorrection::m_g_nvtx_nreco_bs66mm
TGraph * m_g_nvtx_nreco_bs66mm
Definition: NPVBeamspotCorrection.h:40
NPVBeamspotCorrection::NVtx_NReconstructible_bs66mm
TGraph * NVtx_NReconstructible_bs66mm()
Definition: NPVBeamspotCorrection.cxx:118
NPVBeamspotCorrection::GetNVertexBsCorrection
double GetNVertexBsCorrection(double nRecoVtx)
Definition: NPVBeamspotCorrection.cxx:62
NPVBeamspotCorrection::m_NPVmax
double m_NPVmax
Definition: NPVBeamspotCorrection.h:46
NPVBeamspotCorrection::~NPVBeamspotCorrection
virtual ~NPVBeamspotCorrection()
Definition: NPVBeamspotCorrection.cxx:39
NPVBeamspotCorrection::m_g_nvtx_nreco_bs47mm
TGraph * m_g_nvtx_nreco_bs47mm
Definition: NPVBeamspotCorrection.h:42
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
NPVBeamspotCorrection
Definition: NPVBeamspotCorrection.h:21