test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
DQMFileLoader.cc File Reference
#include "Validation/RecoTau/plugins/DQMFileLoader.h"
#include "Validation/RecoTau/plugins/dqmAuxFunctions.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include <TFile.h>
#include <TList.h>
#include <TKey.h>
#include <TH1.h>
#include <iostream>
#include "FWCore/Framework/interface/MakerMacros.h"

Go to the source code of this file.

Functions

void mapSubDirectoryStructure (TDirectory *directory, std::string directoryName, std::set< std::string > &subDirectories)
 
static const
edm::ParameterSetDescriptionFillerPluginFactory::PMaker
< edm::ParameterSetDescriptionFiller
< TauDQMFileLoader > > 
s_filler__LINE__ ("TauDQMFileLoader")
 
static const
edm::MakerPluginFactory::PMaker
< edm::WorkerMaker
< TauDQMFileLoader > > 
s_maker__LINE__ ("TauDQMFileLoader")
 

Variables

const double defaultScaleFactor = 1.
 
const std::string dqmRootDirectory_inTFile = "DQMData"
 
const int verbosity = 0
 

Function Documentation

void mapSubDirectoryStructure ( TDirectory *  directory,
std::string  directoryName,
std::set< std::string > &  subDirectories 
)

Definition at line 27 of file DQMFileLoader.cc.

References dqmDirectoryName(), combine::key, GetRecoTauVFromDQM_MC_cff::next, getGTfromDQMFile::obj, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by TauDQMFileLoader::endRun().

28 {
29  //std::cout << "<mapSubDirectoryStructure>:" << std::endl;
30  //std::cout << " directoryName = " << directoryName << std::endl;
31 
32  TList* subDirectoryNames = directory->GetListOfKeys();
33  if ( !subDirectoryNames ) return;
34 
35  TIter next(subDirectoryNames);
36  while ( TKey* key = dynamic_cast<TKey*>(next()) ) {
37  //std::cout << " key->GetName = " << key->GetName() << std::endl;
38  TObject* obj = directory->Get(key->GetName());
39  //std::cout << " obj = " << obj << std::endl;
40  if ( TDirectory* subDirectory = dynamic_cast<TDirectory*>(obj) ) {
41  std::string subDirectoryName = dqmDirectoryName(directoryName).append(key->GetName());
42  //std::cout << " subDirectoryName = " << subDirectoryName << std::endl;
43 
44  subDirectories.insert(subDirectoryName);
45 
46  mapSubDirectoryStructure(subDirectory, subDirectoryName, subDirectories);
47  }
48  }
49 }
std::string dqmDirectoryName(const std::string &dqmRootDirectory, const std::string &dqmSubDirectory)
Definition: EwkTauDQM.cc:10
list key
Definition: combine.py:13
void mapSubDirectoryStructure(TDirectory *directory, std::string directoryName, std::set< std::string > &subDirectories)
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< TauDQMFileLoader > > s_filler__LINE__ ( "TauDQMFileLoader"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< TauDQMFileLoader > > s_maker__LINE__ ( "TauDQMFileLoader"  )
static

Variable Documentation

const double defaultScaleFactor = 1.

Definition at line 23 of file DQMFileLoader.cc.

Referenced by TauDQMFileLoader::cfgEntryFileSet::cfgEntryFileSet().

const std::string dqmRootDirectory_inTFile = "DQMData"

Definition at line 21 of file DQMFileLoader.cc.

Referenced by TauDQMFileLoader::endRun().

const int verbosity = 0

Definition at line 25 of file DQMFileLoader.cc.