Project
Loading...
Searching...
No Matches
AdcClockMonitor.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
15#ifndef ALICEO2_TPC_ADCCLOCKMONITOR_H_
16#define ALICEO2_TPC_ADCCLOCKMONITOR_H_
17
18#include <fairlogger/Logger.h>
19#include <iosfwd>
20#include <iomanip>
21
22namespace o2
23{
24namespace tpc
25{
26
29
31{
32 public:
35
37 AdcClockMonitor(int sampa);
38
41
44
46 void reset();
47
51 int addSequence(const short seq);
52
55 int getState() { return ((mState == state::error) || (mSequenceCompleted == false)) ? 1 : 0; };
56
57 private:
58 enum state { locked = 0,
59 error = 1 };
60
61 int mSampa;
62 short mPrevSequence;
63 short mTransition0;
64 short mTransition1;
65 bool mSequenceCompleted;
66 int mSequencePosition;
67 state mState;
68};
69} // namespace tpc
70} // namespace o2
71#endif
Class to monitor the ADC smapling clock contained in the GBT frame.
AdcClockMonitor()
Default Constructor.
int addSequence(const short seq)
~AdcClockMonitor()
Destructor.
void reset()
Reset function to clear history.
AdcClockMonitor(const AdcClockMonitor &other)
Copy Constructor.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other