Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-03-10 23:53:33

0001 #ifndef DQMServices_FwkIO_format_h
0002 #define DQMServices_FwkIO_format_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     FwkIO
0006 // Class  :     format
0007 //
0008 /**\class format format.h DQMServices/FwkIO/interface/format.h
0009 
0010  Description: [one line class summary]
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:
0018 //         Created:  Tue May  3 15:33:16 CDT 2011
0019 //
0020 
0021 //These are the different types where each type has its own TTree
0022 enum TypeIndex {
0023   kIntIndex,
0024   kFloatIndex,
0025   kStringIndex,
0026   kTH1FIndex,
0027   kTH1SIndex,
0028   kTH1DIndex,
0029   kTH2FIndex,
0030   kTH2SIndex,
0031   kTH2DIndex,
0032   kTH2PolyIndex,
0033   kTH3FIndex,
0034   kTProfileIndex,
0035   kTProfile2DIndex,
0036   kTH1IIndex,
0037   kTH2IIndex,
0038   kNIndicies,
0039   kNoTypesStored = 1000
0040 };
0041 
0042 static const char* const kTypeNames[] = {"Ints",
0043                                          "Floats",
0044                                          "Strings",
0045                                          "TH1Fs",
0046                                          "TH1Ss",
0047                                          "TH1Ds",
0048                                          "TH2Fs",
0049                                          "TH2Ss",
0050                                          "TH2Ds",
0051                                          "TH2Polys",
0052                                          "TH3Fs",
0053                                          "TProfiles",
0054                                          "TProfile2Ds",
0055                                          "TH1Is",
0056                                          "TH2Is"};
0057 
0058 //Branches for each TTree type
0059 static const char* const kFullNameBranch = "FullName";
0060 static const char* const kFlagBranch = "Flags";
0061 static const char* const kValueBranch = "Value";
0062 
0063 //Storage of Run and Lumi information
0064 static const char* const kIndicesTree = "Indices";
0065 static const char* const kRunBranch = "Run";
0066 static const char* const kLumiBranch = "Lumi";
0067 static const char* const kProcessHistoryIndexBranch = "ProcessHistoryIndex";
0068 static const char* const kBeginTimeBranch = "BeginTime";
0069 static const char* const kEndTimeBranch = "EndTime";
0070 static const char* const kTypeBranch = "Type";
0071 static const char* const kFirstIndex = "FirstIndex";
0072 static const char* const kLastIndex = "LastIndex";
0073 
0074 //File GUID
0075 static const char* const kCmsGuid = "cms::edm::GUID";
0076 
0077 //Meta data info
0078 static const char* const kMetaDataDirectoryAbsolute = "/MetaData";
0079 static const char* const kMetaDataDirectory = kMetaDataDirectoryAbsolute + 1;
0080 
0081 static const char* const kProcessHistoryTree = "ProcessHistories";
0082 static const char* const kPHIndexBranch = "Index";
0083 static const char* const kProcessConfigurationProcessNameBranch = "ProcessName";
0084 static const char* const kProcessConfigurationParameterSetIDBranch = "ParameterSetID";
0085 static const char* const kProcessConfigurationReleaseVersion = "ReleaseVersion";
0086 // misnomer, but kept for backwards (and forwards) compatibility
0087 static const char* const kProcessConfigurationHardwareResources = "PassID";
0088 
0089 static const char* const kParameterSetTree = "ParameterSets";
0090 static const char* const kParameterSetBranch = "ParameterSetBlob";
0091 #endif