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  int errorCode;
21  std::stringstream commandLine;
22 
23  if( fileName_ == "" ){
24  // No File set
25  errorCode = -1;
26  }else{
27 
28  //Transfer File to Offline DB
29  commandLine.str(std::string());
30  commandLine << "lumiTransferScript.sh " << dirName_ << " " << fileName_ << " " << fileType_;
31  std::system(commandLine.str().c_str());
32 
33  }
34  return 0;
35 }
36 
void SetFileType(const std::string &fileType)