CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 <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 26 of file DQMFileLoader.cc.

References dqmDirectoryName(), submitPVResolutionJobs::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
tuple key
prepare the HTCondor submission files and eventually submit them
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 22 of file DQMFileLoader.cc.

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

const std::string dqmRootDirectory_inTFile = "DQMData"

Definition at line 20 of file DQMFileLoader.cc.

Referenced by TauDQMFileLoader::endRun().

const int verbosity = 0

Definition at line 24 of file DQMFileLoader.cc.