CMS 3D CMS Logo

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

#include <ROOTFileBase.h>

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

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.

21  :filePrefix_("CMS_LUMI_RAW"),
22  dirName_("./"),
23  bEtSumOnly_(false),
24  date_(""),
25  fileType_("RAW")
26 {}
std::string filePrefix_
Definition: ROOTFileBase.h:65
HCAL_HLX::ROOTFileBase::~ROOTFileBase ( )
virtual

Definition at line 28 of file ROOTFileBase.cc.

28 {}

Member Function Documentation

void HCAL_HLX::ROOTFileBase::CleanUp ( )
protected

Definition at line 35 of file ROOTFileBase.cc.

35  {
36 
37  delete lumiSection_;
38 }
HCAL_HLX::LUMI_SECTION * lumiSection_
Definition: ROOTFileBase.h:55
virtual void HCAL_HLX::ROOTFileBase::CreateTree ( )
protectedpure virtual
std::string HCAL_HLX::ROOTFileBase::GetDir ( )
inline

Definition at line 43 of file ROOTFileBase.h.

References dirName_.

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

Definition at line 44 of file ROOTFileBase.h.

References fileName_.

44 { 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.

References BuildWebpage::date.

50  {
51 
52  date_ = date;
53 }
void HCAL_HLX::ROOTFileBase::SetDir ( const std::string &  dir)
void HCAL_HLX::ROOTFileBase::SetEtSumOnly ( bool  bEtSumOnly)

Definition at line 76 of file ROOTFileBase.cc.

76  {
77 
78  bEtSumOnly_ = bEtSumOnly;
79 }
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.

70  {
71 
72  SetFileName( lumiSection.hdr.runNumber,
73  lumiSection.hdr.sectionNumber);
74 }
void SetFileName(const HCAL_HLX::LUMI_SECTION &lumiSection)
Definition: ROOTFileBase.cc:70
void HCAL_HLX::ROOTFileBase::SetFileName ( unsigned int  runNumber,
unsigned int  sectionNumber 
)

Definition at line 55 of file ROOTFileBase.cc.

References convertXMLtoSQLite_cfg::fileName.

56  {
57 
58  std::stringstream fileName;
59  fileName.str(std::string());
60 
61  fileName << "CMS_LUMI_" << fileType_ << "_" << date_ << "_"
62  << std::setfill('0') << std::setw(9) << runNumber << "_"
63  << std::setfill('0') << std::setw(4) << sectionNumber << ".root";
64 
65  fileName_ = fileName.str();
66 
67  CreateTree();
68 }
virtual void CreateTree()=0
void HCAL_HLX::ROOTFileBase::SetFileType ( const std::string &  type)

Definition at line 45 of file ROOTFileBase.cc.

45  {
46 
47  fileType_ = fileType;
48 }

Member Data Documentation

bool HCAL_HLX::ROOTFileBase::bEtSumOnly_
protected

Definition at line 69 of file ROOTFileBase.h.

std::string HCAL_HLX::ROOTFileBase::date_
protected

Definition at line 70 of file ROOTFileBase.h.

HCAL_HLX::LUMI_DETAIL* HCAL_HLX::ROOTFileBase::Detail_
protected

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

HCAL_HLX::ET_SUM_SECTION* HCAL_HLX::ROOTFileBase::EtSumPtr_[36]
protected

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.

HCAL_HLX::LUMI_SECTION_HEADER* HCAL_HLX::ROOTFileBase::Header_
protected

Definition at line 57 of file ROOTFileBase.h.

HCAL_HLX::LHC_SECTION* HCAL_HLX::ROOTFileBase::LHCPtr_[36]
protected

Definition at line 63 of file ROOTFileBase.h.

HCAL_HLX::LUMI_SECTION* HCAL_HLX::ROOTFileBase::lumiSection_
protected

Definition at line 55 of file ROOTFileBase.h.

HCAL_HLX::OCCUPANCY_SECTION* HCAL_HLX::ROOTFileBase::OccupancyPtr_[36]
protected

Definition at line 62 of file ROOTFileBase.h.

HCAL_HLX::LUMI_SUMMARY* HCAL_HLX::ROOTFileBase::Summary_
protected

Definition at line 58 of file ROOTFileBase.h.