CMS 3D CMS Logo

Public Member Functions | Private Attributes

HCAL_HLX::ROOTFileTransfer Class Reference

#include <ROOTFileTransfer.h>

List of all members.

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.

                                          :fileName_(""),
                                               dirName_(""),
                                               fileType_("RAW")
{}
HCAL_HLX::ROOTFileTransfer::~ROOTFileTransfer ( )

Definition at line 10 of file ROOTFileTransfer.cc.

{}

Member Function Documentation

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;
}

Member Data Documentation

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().

Definition at line 20 of file ROOTFileTransfer.h.

Referenced by SetFileName().

Definition at line 22 of file ROOTFileTransfer.h.