ATLAS Offline Software
Loading...
Searching...
No Matches
InDetBeamSpotRooFit.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef INDET_INDETBEAMSPOTROOFIT_H
6#define INDET_INDETBEAMSPOTROOFIT_H
7
9// Author jwalder@cern.ch
10// Concrete implementation of the IInDetBeamSpotTool class
11// for RooFit method of Beamspot determination.
13
17#include "CLHEP/Matrix/Vector.h"
18#include "TMinuit.h"
19#include "TMath.h"
20#include "TTree.h"
21#include <string>
22#include <vector>
23#include <RooAbsReal.h>
24#include <RooRealVar.h>
25#include "BeamSpotPdf.h"
26#include "RooFitResult.h"
27
28namespace InDet {
34 virtual public IInDetBeamSpotTool {
35 public:
36 // Constructor
37 InDetBeamSpotRooFit( const std::string& type,
38 const std::string& name,
39 const IInterface* parent);
40 // Standard Destructor
42
43 //Copy Constructor
45
46
47 //These are the member functions to keep:
48 virtual StatusCode initialize();
49 virtual StatusCode finalize();
50 virtual std::map<std::string,double> getCovMap() const;
51 virtual std::map<std::string,double> getParamMap() const;
52 virtual FitID getFitID() const { return RooFitLL; }
53 virtual FitStatus fit(std::vector< BeamSpot::VrtHolder >&);
55 //std::string combineCuts( RooDataSet & );
56
57 private:
58 //m_cov is the covariance matrix from the fit
59 TMatrixDSym m_cov;
60 //Fit parameter results
61 double m_ax;
62 double m_ay;
63 double m_k;
64 double m_mx;
65 double m_my;
66 double m_mz;
67 double m_rho;
68 double m_sx;
69 double m_sy;
70 double m_sz;
72 std::vector< BeamSpot::VrtHolder > m_vertexData;
75 std::string m_vtxCutString;
77 double m_kStart;
80 };
81}
82
83
84
85#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Abstract class for all beamspot determination algorithms.
FitStatus
Internally used enum for fit status.
FitID
Beamspot determination type.
A concrete implementation of IInDetBeamSpotTool, using primary vertex information to determine the po...
virtual std::map< std::string, double > getParamMap() const
virtual FitStatus fit(std::vector< BeamSpot::VrtHolder > &)
Attempt a to find a solution of the beamspot.
virtual FitID getFitID() const
A unique ID for the specific fit type.
virtual StatusCode initialize()
Standard initialize.
std::vector< BeamSpot::VrtHolder > m_vertexData
IInDetBeamSpotTool * Clone()
virtual std::map< std::string, double > getCovMap() const
InDetBeamSpotRooFit(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode finalize()
Standard finalize.
Primary Vertex Finder.