ATLAS Offline Software
Loading...
Searching...
No Matches
TBPhaseRec.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TBREC_TBPHASEREC
6#define TBREC_TBPHASEREC
7
15
17
18#include <string>
19#include <vector>
20
22{
23 public:
24 TBPhaseRec(const std::string& name, ISvcLocator* pSvcLocator);
25 virtual ~TBPhaseRec();
26
27 virtual StatusCode initialize() override;
28 virtual StatusCode execute() override;
29 virtual StatusCode finalize() override;
30
31 StatusCode getnewcalib();
32
33 static const int unknown = -99999 ;
34
35 private:
37 // Properties //
39 std::vector<std::string> m_tdcNames ; // the TDC(s) with phase information
40 std::vector<float> m_tdcToTime; // per TDC
41 std::vector<float> m_tdcwac; // wrap around constants
42 std::vector<float> m_tdcMin; // used only for choosing the best TDC if necessary
43 float m_delta; // ttc clock period
44 int m_timeBins; // number of time bins in a ttc period
45 std::string m_TBPhaseKey; // key of the TBPhase object that TBPhaseRec tries to create
46 bool m_neverReturnFailure; // controls when StatusCode::FAILURE can be issued in execute()
47
48 std::string m_calib_filename;
49 unsigned int m_runnumber;
50
51 float m_guardValue; // guard region cut
52
54 // member data and functions //
56
57 int m_nTDC ;
58 std::vector<int> m_tdcRaw;
59 std::vector<float> m_phaseReco;
60 float computePhase(int tdcIndex);
61
62};
63
64#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::string m_TBPhaseKey
Definition TBPhaseRec.h:45
unsigned int m_runnumber
Definition TBPhaseRec.h:49
std::string m_calib_filename
Definition TBPhaseRec.h:48
static const int unknown
Definition TBPhaseRec.h:33
std::vector< float > m_tdcwac
Definition TBPhaseRec.h:41
virtual ~TBPhaseRec()
int m_timeBins
Definition TBPhaseRec.h:44
virtual StatusCode finalize() override
std::vector< float > m_phaseReco
Definition TBPhaseRec.h:59
float m_delta
Definition TBPhaseRec.h:43
TBPhaseRec(const std::string &name, ISvcLocator *pSvcLocator)
float computePhase(int tdcIndex)
virtual StatusCode execute() override
std::vector< std::string > m_tdcNames
Definition TBPhaseRec.h:39
StatusCode getnewcalib()
virtual StatusCode initialize() override
std::vector< float > m_tdcMin
Definition TBPhaseRec.h:42
std::vector< int > m_tdcRaw
Definition TBPhaseRec.h:58
bool m_neverReturnFailure
Definition TBPhaseRec.h:46
std::vector< float > m_tdcToTime
Definition TBPhaseRec.h:40
float m_guardValue
Definition TBPhaseRec.h:51