CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HCAL_HLX::ROOTFileTransfer Class Reference

#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_
 

Detailed Description

Definition at line 8 of file ROOTFileTransfer.h.

Constructor & Destructor Documentation

HCAL_HLX::ROOTFileTransfer::ROOTFileTransfer ( )

Definition at line 5 of file ROOTFileTransfer.cc.

5  :fileName_(""),
6  dirName_(""),
7  fileType_("RAW")
8 {}
HCAL_HLX::ROOTFileTransfer::~ROOTFileTransfer ( )

Definition at line 10 of file ROOTFileTransfer.cc.

10 {}

Member Function Documentation

void HCAL_HLX::ROOTFileTransfer::SetEtSumOnly ( const bool &  bEtSumOnly)
inline

Definition at line 15 of file ROOTFileTransfer.h.

References bEtSumOnly_.

15 { bEtSumOnly_ = bEtSumOnly; }
void HCAL_HLX::ROOTFileTransfer::SetFileName ( const std::string &  fileName)
inline
void HCAL_HLX::ROOTFileTransfer::SetFileType ( const std::string &  fileType)

Definition at line 13 of file ROOTFileTransfer.cc.

13  {
14 
15  fileType_ = fileType;
16 }
void HCAL_HLX::ROOTFileTransfer::SetInputDir ( const std::string &  dirName)
inline
int HCAL_HLX::ROOTFileTransfer::TransferFile ( )

Definition at line 18 of file ROOTFileTransfer.cc.

18  {
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 }

Member Data Documentation

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.