Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoLuminosity
ROOTSchema
src
ROOTFileTransfer.cc
Go to the documentation of this file.
1
#include "
RecoLuminosity/ROOTSchema/interface/ROOTFileTransfer.h
"
2
#include <sstream>
3
#include <cstdlib>
4
5
HCAL_HLX::ROOTFileTransfer::ROOTFileTransfer
():fileName_(
""
),
6
dirName_(
""
),
7
fileType_(
"RAW"
)
8
{}
9
10
HCAL_HLX::ROOTFileTransfer::~ROOTFileTransfer
(){}
11
12
13
void
HCAL_HLX::ROOTFileTransfer::SetFileType
(
const
std::string &fileType ){
14
15
fileType_ = fileType;
16
}
17
18
int
HCAL_HLX::ROOTFileTransfer::TransferFile
(){
19
20
std::stringstream commandLine;
21
22
if
( fileName_ !=
""
){
23
24
//Transfer File to Offline DB
25
commandLine.str(std::string());
26
commandLine <<
"lumiTransferScript.sh "
<< dirName_ <<
" "
<< fileName_ <<
" "
<< fileType_;
27
std::system(commandLine.str().c_str());
28
29
}
30
return
0;
31
}
32
HCAL_HLX::ROOTFileTransfer::~ROOTFileTransfer
~ROOTFileTransfer()
Definition:
ROOTFileTransfer.cc:10
HCAL_HLX::ROOTFileTransfer::SetFileType
void SetFileType(const std::string &fileType)
Definition:
ROOTFileTransfer.cc:13
ROOTFileTransfer.h
HCAL_HLX::ROOTFileTransfer::TransferFile
int TransferFile()
Definition:
ROOTFileTransfer.cc:18
HCAL_HLX::ROOTFileTransfer::ROOTFileTransfer
ROOTFileTransfer()
Definition:
ROOTFileTransfer.cc:5
Generated for CMSSW Reference Manual by
1.8.5