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.

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

Referenced by TauDQMFileLoader::endRun().

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 }
std::string dqmDirectoryName(const std::string &dqmRootDirectory, const std::string &dqmSubDirectory)
Definition: EwkTauDQM.cc:10
void mapSubDirectoryStructure(TDirectory *directory, std::string directoryName, std::set< std::string > &subDirectories)

◆ 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

Definition at line 24 of file DQMFileLoader.cc.

Referenced by cms::PileupJPTJetIdAlgo::bookMVAReader(), CTPPSGeometry::build(), TauDQMHistPlotter::cfgEntryAxisX::cfgEntryAxisX(), TauDQMHistPlotter::cfgEntryAxisY::cfgEntryAxisY(), TauDQMHistPlotter::cfgEntryDrawJob::cfgEntryDrawJob(), TauDQMHistPlotter::cfgEntryDrawOption::cfgEntryDrawOption(), TauDQMFileLoader::cfgEntryFileSet::cfgEntryFileSet(), TauDQMHistPlotter::cfgEntryLabel::cfgEntryLabel(), TauDQMHistPlotter::cfgEntryLegend::cfgEntryLegend(), TauDQMHistPlotter::cfgEntryProcess::cfgEntryProcess(), CTPPSGeometry::CTPPSGeometry(), DAClusterizerInZ::dump(), DAClusterizerInZ_vect::dump(), DAClusterizerInZT_vect::dump(), TauDQMFileLoader::endRun(), TauDQMHistPlotter::endRun(), GflashHadronShowerModel::excludeDetectorRegion(), GFlashHadronShowerModel::excludeDetectorRegion(), factorRPFromSensorCorrections(), cms::PileupJPTJetIdAlgo::fillJPTBlock(), UnbinnedLikelihoodFit::fit(), EDMtoMEConverter::getData(), main(), L1GtTriggerMenuConfigOnlineProd::newObject(), cms::PileupJPTJetIdAlgo::PileupJPTJetIdAlgo(), TtSemiLeptonicEvent::print(), TtFullLeptonicEvent::print(), TtFullHadronicEvent::print(), TKinFitter::setVerbosity(), L1GtConditionEvaluation::setVerbosity(), L1GtEtaPhiConversions::setVerbosity(), l1t::ConditionEvaluation::setVerbosity(), L1GlobalTriggerFDL::setVerbosity(), L1GlobalTriggerGTL::setVerbosity(), l1t::L1TGlobalUtil::setVerbosity(), L1GlobalTriggerPSB::setVerbosity(), l1t::GlobalBoard::setVerbosity(), and TauDQMHistPlotter::TauDQMHistPlotter().