GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
#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>
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 288 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 816 of file offsetfix.cxx.
References TEventTime::correctionmap, DGREEN, and RESET_COLOR.
Referenced by main().
void GetRoughTimeDiff | ( | std::vector< TEventTime * > * | eventQ | ) |
Definition at line 361 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 472 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 859 of file offsetfix.cxx.
References 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 195 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 581 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 207 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 789 of file offsetfix.cxx.
References TEventTime::correctionmap.
Referenced by main().
void WriteEvents | ( | TMidasFile * | file | ) |
Definition at line 726 of file offsetfix.cxx.
References DGREEN, DMAGENTA, DRED, TMidasFile::FillBuffer(), TRawFile::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().