CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ROOTFileTransfer.cc
Go to the documentation of this file.
2 #include <sstream>
3 #include <cstdlib>
4 
6  dirName_(""),
7  fileType_("RAW")
8 {}
9 
11 
12 
13 void HCAL_HLX::ROOTFileTransfer::SetFileType( const std::string &fileType ){
14 
15  fileType_ = fileType;
16 }
17 
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 
void SetFileType(const std::string &fileType)