ATLAS Offline Software
Loading...
Searching...
No Matches
LumiCalibrator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
10
11#ifndef LUMIBLOCKCOMPS_LumiCalibrator_H
12#define LUMIBLOCKCOMPS_LumiCalibrator_H
13
14#include "CoralBase/AttributeList.h"
15#include "GaudiKernel/MsgStream.h"
16
17#include <vector>
18#include <string>
19
21
22 public:
23
25
26 // Pass DB object to set parameters, return False on error
27 bool setCalibration(const coral::AttributeList& attrList);
28
29 // Return False on error
30 bool calibrateMu(float rawLumi, float& calMu) const;
31 bool calibrateLumi(float rawLumi, float& calLumi) const;
32
33 float getMuToLumi() const {return m_muToLumi;}
34
35 // Allow to dump out the calibration values
36 MsgStream& dump(MsgStream&) const;
37
38 private:
39
40 unsigned int m_nPar;
41 std::string m_fType;
43 std::vector<float> m_parVec;
44
45 static float getMuVis(float rawPerBX, float sigo, float siga) ;
46 static float getMuVis2(float rawPerBX, float sigo, float siga) ;
47
48};
49
50MsgStream& operator<< (MsgStream& ,const LumiCalibrator&);
51
52inline MsgStream& operator<< (MsgStream& stream, const LumiCalibrator& lc)
53{
54 return lc.dump(stream);
55}
56
57#endif
MsgStream & operator<<(MsgStream &, const LumiCalibrator &)
Utility class to apply calibrations from /TDAQ/OLC/CALIBRATIONS folder.
std::string m_fType
static float getMuVis(float rawPerBX, float sigo, float siga)
bool calibrateLumi(float rawLumi, float &calLumi) const
bool setCalibration(const coral::AttributeList &attrList)
unsigned int m_nPar
bool calibrateMu(float rawLumi, float &calMu) const
float getMuToLumi() const
static float getMuVis2(float rawPerBX, float sigo, float siga)
std::vector< float > m_parVec
-event-from-file