

#include "TGRSIOptions.h"#include "TMidasFile.h"#include "TMidasEvent.h"#include "TFile.h"#include "TFragment.h"#include "TGRSIDataParser.h"#include "TGRSIDataParserException.h"#include "TTree.h"#include "TSpectrum.h"#include "TChannel.h"#include "TH2D.h"#include "TTreeIndex.h"#include "TVirtualIndex.h"#include "Globals.h"#include "TF1.h"#include "TMath.h"#include "TString.h"#include "TPolyMarker.h"#include "TStopwatch.h"#include "TSystem.h"#include <vector>#include <iostream>#include <fstream>
Include dependency graph for offsetfix.cxx:Go to the source code of this file.
Classes | |
| class | TEventTime |
Functions | |
| void | CheckHighTimeStamp (std::vector< TEventTime *> *eventQ) |
| int | CorrectionFile (int runnumber) |
| void | GetRoughTimeDiff (std::vector< TEventTime *> *eventQ) |
| void | GetTimeDiff (std::vector< TEventTime *> *eventQ) |
| int | main (int argc, char **argv) |
| void | PrintError (const std::shared_ptr< TMidasEvent > &event, int frags, bool verb) |
| bool | ProcessEvent (const std::shared_ptr< TMidasEvent > &event, TMidasFile *outfile) |
| int | QueueEvents (TMidasFile *infile, std::vector< TEventTime *> *eventQ) |
| void | WriteCorrectionFile (int runnumber) |
| void | WriteEvents (TMidasFile *file) |
Variables | |
| Bool_t | SplitMezz = false |
| void CheckHighTimeStamp | ( | std::vector< TEventTime *> * | eventQ | ) |
Definition at line 284 of file offsetfix.cxx.
References TEventTime::correctionmap, DBLUE, TEventTime::digmap, TEventTime::GetBestDigitizer(), TEventTime::GetLowestMidasTime(), and RESET_COLOR.
Referenced by main().
| int CorrectionFile | ( | int | runnumber | ) |
Definition at line 817 of file offsetfix.cxx.
References TEventTime::correctionmap, DGREEN, and RESET_COLOR.
Referenced by main().
| void GetRoughTimeDiff | ( | std::vector< TEventTime *> * | eventQ | ) |
Definition at line 363 of file offsetfix.cxx.
References TEventTime::correctionmap, DBLUE, TEventTime::digmap, DYELLOW, TEventTime::GetBestDigitizer(), and RESET_COLOR.
Referenced by main().
| void GetTimeDiff | ( | std::vector< TEventTime *> * | eventQ | ) |
Definition at line 474 of file offsetfix.cxx.
References TEventTime::correctionmap, DBLUE, TEventTime::digmap, DYELLOW, TEventTime::GetBestDigitizer(), hist, and RESET_COLOR.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 860 of file offsetfix.cxx.
References pygui.grut-view::argv, CheckHighTimeStamp(), CorrectionFile(), TEventTime::digmap, TGRSIOptions::Get(), GetRoughTimeDiff(), GetTimeDiff(), TMidasFile::Open(), QueueEvents(), TGRSIOptions::SuppressErrors(), WriteCorrectionFile(), and WriteEvents().
| void PrintError | ( | const std::shared_ptr< TMidasEvent > & | event, |
| int | frags, | ||
| bool | verb | ||
| ) |
Definition at line 191 of file offsetfix.cxx.
References DRED, and RESET_COLOR.
Referenced by QueueEvents().
| bool ProcessEvent | ( | const std::shared_ptr< TMidasEvent > & | event, |
| TMidasFile * | outfile | ||
| ) |
Definition at line 583 of file offsetfix.cxx.
References TEventTime::correctionmap, TMidasFile::FillBuffer(), and SplitMezz.
Referenced by WriteEvents().
| int QueueEvents | ( | TMidasFile * | infile, |
| std::vector< TEventTime *> * | eventQ | ||
| ) |
Definition at line 203 of file offsetfix.cxx.
References DBLUE, DGREEN, DRED, DYELLOW, TGRSIDataParserException::GetFailedWord(), TMidasFile::GetSubRunNumber(), TGRSIDataParser::GriffinDataToFragment(), TGRSIDataParser::kGRF2, TEventTime::OrderDigitizerMap(), PrintError(), TMidasFile::Read(), and RESET_COLOR.
Referenced by main().
| void WriteCorrectionFile | ( | int | runnumber | ) |
Definition at line 790 of file offsetfix.cxx.
References TEventTime::correctionmap.
Referenced by main().
| void WriteEvents | ( | TMidasFile * | file | ) |
Definition at line 728 of file offsetfix.cxx.
References DGREEN, DMAGENTA, DRED, TMidasFile::FillBuffer(), TMidasFile::GetFilename(), TMidasFile::GetLastErrno(), TMidasFile::GetLastError(), HIDE_CURSOR, ProcessEvent(), TMidasFile::Read(), RESET_COLOR, SHOW_CURSOR, and TMidasFile::WriteBuffer().
Referenced by main().
| Bool_t SplitMezz = false |
Definition at line 29 of file offsetfix.cxx.
Referenced by ProcessEvent(), and TEventTime::SetDigitizer().