CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes

HCAL_HLX::ROOTFileBase Class Reference

#include <ROOTFileBase.h>

Inheritance diagram for HCAL_HLX::ROOTFileBase:
HCAL_HLX::ROOTFileReader HCAL_HLX::ROOTFileWriter

List of all members.

Public Member Functions

std::string GetDir ()
std::string GetFileName ()
 ROOTFileBase ()
void SetDate (const std::string &date)
void SetDir (const std::string &dir)
void SetEtSumOnly (bool bEtSumOnly)
void SetFileName (const HCAL_HLX::LUMI_SECTION &lumiSection)
void SetFileName (unsigned int runNumber, unsigned int sectionNumber)
void SetFileType (const std::string &type)
virtual ~ROOTFileBase ()

Protected Member Functions

void CleanUp ()
virtual void CreateTree ()=0
void Init ()

Protected Attributes

bool bEtSumOnly_
std::string date_
HCAL_HLX::LUMI_DETAILDetail_
std::string dirName_
HCAL_HLX::ET_SUM_SECTIONEtSumPtr_ [36]
std::string fileName_
std::string filePrefix_
std::string fileType_
HCAL_HLX::LUMI_SECTION_HEADERHeader_
HCAL_HLX::LHC_SECTIONLHCPtr_ [36]
HCAL_HLX::LUMI_SECTIONlumiSection_
HCAL_HLX::OCCUPANCY_SECTIONOccupancyPtr_ [36]
HCAL_HLX::LUMI_SUMMARYSummary_

Detailed Description

Definition at line 26 of file ROOTFileBase.h.


Constructor & Destructor Documentation

HCAL_HLX::ROOTFileBase::ROOTFileBase ( )

Definition at line 21 of file ROOTFileBase.cc.

                                  :filePrefix_("CMS_LUMI_RAW"),
                                       dirName_("./"),
                                       bEtSumOnly_(false),
                                       date_(""),
                                       fileType_("RAW")
{}
HCAL_HLX::ROOTFileBase::~ROOTFileBase ( ) [virtual]

Definition at line 28 of file ROOTFileBase.cc.

{}

Member Function Documentation

void HCAL_HLX::ROOTFileBase::CleanUp ( ) [protected]

Definition at line 35 of file ROOTFileBase.cc.

                                  {

  delete lumiSection_;
}
virtual void HCAL_HLX::ROOTFileBase::CreateTree ( ) [protected, pure virtual]
std::string HCAL_HLX::ROOTFileBase::GetDir ( ) [inline]

Definition at line 43 of file ROOTFileBase.h.

References dirName_.

{ return dirName_; }
std::string HCAL_HLX::ROOTFileBase::GetFileName ( ) [inline]

Definition at line 44 of file ROOTFileBase.h.

References fileName_.

{ return fileName_; }
void HCAL_HLX::ROOTFileBase::Init ( void  ) [protected]
void HCAL_HLX::ROOTFileBase::SetDate ( const std::string &  date)

Definition at line 50 of file ROOTFileBase.cc.

                                                       {

  date_ = date;
}
void HCAL_HLX::ROOTFileBase::SetDir ( const std::string &  dir)

Definition at line 40 of file ROOTFileBase.cc.

References TrackerOfflineValidation_Dqm_cff::dirName.

                                                         {

  dirName_ = dirName;
}
void HCAL_HLX::ROOTFileBase::SetEtSumOnly ( bool  bEtSumOnly)

Definition at line 76 of file ROOTFileBase.cc.

                                                        {

  bEtSumOnly_ = bEtSumOnly;
} 
void HCAL_HLX::ROOTFileBase::SetFileName ( unsigned int  runNumber,
unsigned int  sectionNumber 
)

Definition at line 55 of file ROOTFileBase.cc.

References convertXMLtoSQLite_cfg::fileName.

                                                                           {
  
  std::stringstream fileName;
  fileName.str(std::string());
  
  fileName << "CMS_LUMI_" << fileType_ << "_" << date_ << "_"
           << std::setfill('0') << std::setw(9) << runNumber << "_"
           << std::setfill('0') << std::setw(4) << sectionNumber << ".root";
  
  fileName_ = fileName.str();
  
  CreateTree();
}
void HCAL_HLX::ROOTFileBase::SetFileName ( const HCAL_HLX::LUMI_SECTION lumiSection)

Definition at line 70 of file ROOTFileBase.cc.

References HCAL_HLX::LUMI_SECTION::hdr, HCAL_HLX::LUMI_SECTION_HEADER::runNumber, and HCAL_HLX::LUMI_SECTION_HEADER::sectionNumber.

                                                                             {

  SetFileName( lumiSection.hdr.runNumber,
               lumiSection.hdr.sectionNumber);
}
void HCAL_HLX::ROOTFileBase::SetFileType ( const std::string &  type)

Definition at line 45 of file ROOTFileBase.cc.

                                                               {
  
  fileType_ = fileType;
}

Member Data Documentation

Definition at line 69 of file ROOTFileBase.h.

std::string HCAL_HLX::ROOTFileBase::date_ [protected]

Definition at line 70 of file ROOTFileBase.h.

Definition at line 59 of file ROOTFileBase.h.

std::string HCAL_HLX::ROOTFileBase::dirName_ [protected]

Definition at line 67 of file ROOTFileBase.h.

Referenced by GetDir().

Definition at line 61 of file ROOTFileBase.h.

std::string HCAL_HLX::ROOTFileBase::fileName_ [protected]

Definition at line 66 of file ROOTFileBase.h.

Referenced by GetFileName().

std::string HCAL_HLX::ROOTFileBase::filePrefix_ [protected]

Definition at line 65 of file ROOTFileBase.h.

std::string HCAL_HLX::ROOTFileBase::fileType_ [protected]

Definition at line 71 of file ROOTFileBase.h.

Definition at line 57 of file ROOTFileBase.h.

Definition at line 63 of file ROOTFileBase.h.

Definition at line 55 of file ROOTFileBase.h.

Definition at line 62 of file ROOTFileBase.h.

Definition at line 58 of file ROOTFileBase.h.