#include <ROOTFileTransfer.h>
Public Member Functions | |
ROOTFileTransfer () | |
void | SetEtSumOnly (const bool &bEtSumOnly) |
void | SetFileName (const std::string &fileName) |
void | SetFileType (const std::string &fileType) |
void | SetInputDir (const std::string &dirName) |
int | TransferFile () |
~ROOTFileTransfer () | |
Private Attributes | |
bool | bEtSumOnly_ |
std::string | dirName_ |
std::string | fileName_ |
std::string | fileType_ |
Definition at line 8 of file ROOTFileTransfer.h.
HCAL_HLX::ROOTFileTransfer::ROOTFileTransfer | ( | ) |
Definition at line 5 of file ROOTFileTransfer.cc.
HCAL_HLX::ROOTFileTransfer::~ROOTFileTransfer | ( | ) |
Definition at line 10 of file ROOTFileTransfer.cc.
{}
void HCAL_HLX::ROOTFileTransfer::SetEtSumOnly | ( | const bool & | bEtSumOnly | ) | [inline] |
Definition at line 15 of file ROOTFileTransfer.h.
References bEtSumOnly_.
{ bEtSumOnly_ = bEtSumOnly; }
void HCAL_HLX::ROOTFileTransfer::SetFileName | ( | const std::string & | fileName | ) | [inline] |
Definition at line 13 of file ROOTFileTransfer.h.
References convertXMLtoSQLite_cfg::fileName, and fileName_.
void HCAL_HLX::ROOTFileTransfer::SetFileType | ( | const std::string & | fileType | ) |
Definition at line 13 of file ROOTFileTransfer.cc.
{ fileType_ = fileType; }
void HCAL_HLX::ROOTFileTransfer::SetInputDir | ( | const std::string & | dirName | ) | [inline] |
Definition at line 14 of file ROOTFileTransfer.h.
References TrackerOfflineValidation_Dqm_cff::dirName, and dirName_.
int HCAL_HLX::ROOTFileTransfer::TransferFile | ( | ) |
Definition at line 18 of file ROOTFileTransfer.cc.
{ int errorCode; std::stringstream commandLine; if( fileName_ == "" ){ // No File set errorCode = -1; }else{ //Transfer File to Offline DB commandLine.str(std::string()); commandLine << "lumiTransferScript.sh " << dirName_ << " " << fileName_ << " " << fileType_; std::system(commandLine.str().c_str()); } return 0; }
bool HCAL_HLX::ROOTFileTransfer::bEtSumOnly_ [private] |
Definition at line 24 of file ROOTFileTransfer.h.
Referenced by SetEtSumOnly().
std::string HCAL_HLX::ROOTFileTransfer::dirName_ [private] |
Definition at line 21 of file ROOTFileTransfer.h.
Referenced by SetInputDir().
std::string HCAL_HLX::ROOTFileTransfer::fileName_ [private] |
Definition at line 20 of file ROOTFileTransfer.h.
Referenced by SetFileName().
std::string HCAL_HLX::ROOTFileTransfer::fileType_ [private] |
Definition at line 22 of file ROOTFileTransfer.h.