Project
Loading...
Searching...
No Matches
GRPTool.cxx File Reference
#include <boost/program_options.hpp>
#include <string>
#include "DataFormatsParameters/GRPECSObject.h"
#include "DataFormatsParameters/GRPMagField.h"
#include "DataFormatsParameters/GRPLHCIFData.h"
#include "CommonUtils/FileSystemUtils.h"
#include <fairlogger/Logger.h>
#include <TFile.h>
#include <CommonUtils/NameConf.h>
#include <DetectorsCommonDataFormats/DetID.h>
#include <CCDB/BasicCCDBManager.h>
#include <SimConfig/SimConfig.h>
#include <unordered_map>
#include <filesystem>
#include "CommonUtils/ConfigurableParam.h"
#include "DataFormatsCalibration/MeanVertexObject.h"
#include "SimConfig/InteractionDiamondParam.h"

Go to the source code of this file.

Classes

struct  Options
 

Enumerations

enum class  GRPCommand {
  kNONE , kCREATE , kANCHOR , kSETROMODE ,
  kPRINTECS , kPRINTLHC , kPRINTMAG
}
 

Functions

void print_globalHelp (int argc, char *argv[])
 
void printGRPECS (std::string const &filename)
 
void printGRPMAG (std::string const &filename)
 
void printGRPLHC (std::string const &filename)
 
void setROMode (std::string const &filename, std::vector< std::string > const &continuous, std::vector< std::string > const &triggered, bool clear=false)
 
bool publish (std::string const &filename, std::string const &path, std::string CCDBpath)
 
bool anchor_GRPs (Options const &opts, std::vector< std::string > const &paths={"GLO/Config/GRPECS", "GLO/Config/GRPMagField", "GLO/Config/GRPLHCIF"})
 
bool create_MeanVertexObject (Options const &opts)
 
bool create_GRPs (Options const &opts)
 
void perform_Command (Options const &opts)
 
bool parseOptions (int argc, char *argv[], Options &optvalues)
 
int main (int argc, char *argv[])
 

Variables

std::unique_ptr< CCDBHelper > gCCDBWrapper
 

Enumeration Type Documentation

◆ GRPCommand

enum class GRPCommand
strong
Enumerator
kNONE 
kCREATE 
kANCHOR 
kSETROMODE 
kPRINTECS 
kPRINTLHC 
kPRINTMAG 

Definition at line 36 of file GRPTool.cxx.

Function Documentation

◆ anchor_GRPs()

bool anchor_GRPs ( Options const &  opts,
std::vector< std::string > const &  paths = {"GLO/Config/GRPECS", "GLO/Config/GRPMagField", "GLO/Config/GRPLHCIF"} 
)

Definition at line 223 of file GRPTool.cxx.

◆ create_GRPs()

bool create_GRPs ( Options const &  opts)

Definition at line 293 of file GRPTool.cxx.

◆ create_MeanVertexObject()

bool create_MeanVertexObject ( Options const &  opts)

Definition at line 243 of file GRPTool.cxx.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 643 of file GRPTool.cxx.

◆ parseOptions()

bool parseOptions ( int  argc,
char argv[],
Options optvalues 
)

Definition at line 491 of file GRPTool.cxx.

◆ perform_Command()

void perform_Command ( Options const &  opts)

Definition at line 459 of file GRPTool.cxx.

◆ print_globalHelp()

void print_globalHelp ( int  argc,
char argv[] 
)

Definition at line 98 of file GRPTool.cxx.

◆ printGRPECS()

void printGRPECS ( std::string const &  filename)

Definition at line 130 of file GRPTool.cxx.

◆ printGRPLHC()

void printGRPLHC ( std::string const &  filename)

Definition at line 140 of file GRPTool.cxx.

◆ printGRPMAG()

void printGRPMAG ( std::string const &  filename)

Definition at line 135 of file GRPTool.cxx.

◆ publish()

bool publish ( std::string const &  filename,
std::string const &  path,
std::string  CCDBpath 
)

Definition at line 198 of file GRPTool.cxx.

◆ setROMode()

void setROMode ( std::string const &  filename,
std::vector< std::string > const &  continuous,
std::vector< std::string > const &  triggered,
bool  clear = false 
)

Definition at line 145 of file GRPTool.cxx.

Variable Documentation

◆ gCCDBWrapper

std::unique_ptr<CCDBHelper> gCCDBWrapper

Definition at line 96 of file GRPTool.cxx.