CMS 3D CMS Logo

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

◆ mapSubDirectoryStructure()

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

Definition at line 26 of file DQMFileLoader.cc.

26  {
27  //std::cout << "<mapSubDirectoryStructure>:" << std::endl;
28  //std::cout << " directoryName = " << directoryName << std::endl;
29 
30  TList* subDirectoryNames = directory->GetListOfKeys();
31  if (!subDirectoryNames)
32  return;
33 
34  TIter next(subDirectoryNames);
35  while (TKey* key = dynamic_cast<TKey*>(next())) {
36  //std::cout << " key->GetName = " << key->GetName() << std::endl;
37  TObject* obj = directory->Get(key->GetName());
38  //std::cout << " obj = " << obj << std::endl;
39  if (TDirectory* subDirectory = dynamic_cast<TDirectory*>(obj)) {
40  std::string subDirectoryName = dqmDirectoryName(directoryName).append(key->GetName());
41  //std::cout << " subDirectoryName = " << subDirectoryName << std::endl;
42 
43  subDirectories.insert(subDirectoryName);
44 
45  mapSubDirectoryStructure(subDirectory, subDirectoryName, subDirectories);
46  }
47  }
48 }

References createBeamHaloJobs::directory, dqmDirectoryName(), crabWrapper::key, GetRecoTauVFromDQM_MC_cff::next, getGTfromDQMFile::obj, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by TauDQMFileLoader::endRun().

◆ s_filler__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< TauDQMFileLoader > > s_filler__LINE__ ( "TauDQMFileLoader"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< TauDQMFileLoader > > s_maker__LINE__ ( "TauDQMFileLoader"  )
static

Variable Documentation

◆ defaultScaleFactor

const double defaultScaleFactor = 1.

Definition at line 22 of file DQMFileLoader.cc.

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

◆ dqmRootDirectory_inTFile

const std::string dqmRootDirectory_inTFile = "DQMData"

Definition at line 20 of file DQMFileLoader.cc.

Referenced by TauDQMFileLoader::endRun().

◆ verbosity

const int verbosity = 0
dqmDirectoryName
std::string dqmDirectoryName(const std::string &dqmRootDirectory, const std::string &dqmSubDirectory)
Definition: EwkTauDQM.cc:10
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
mapSubDirectoryStructure
void mapSubDirectoryStructure(TDirectory *directory, std::string directoryName, std::set< std::string > &subDirectories)
Definition: DQMFileLoader.cc:26
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
createBeamHaloJobs.directory
string directory
Definition: createBeamHaloJobs.py:211
crabWrapper.key
key
Definition: crabWrapper.py:19
GetRecoTauVFromDQM_MC_cff.next
next
Definition: GetRecoTauVFromDQM_MC_cff.py:31