CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
DQMFileSaver Class Reference

#include <DQMFileSaver.h>

Inheritance diagram for DQMFileSaver:
edm::global::EDAnalyzer< edm::RunCache< saverDetails::NoCache >, edm::LuminosityBlockCache< saverDetails::NoCache > > edm::global::EDAnalyzerBase edm::EDConsumerBase

Public Types

enum  Convention { Online, Offline, FilterUnit }
 
enum  FileFormat { ROOT, PB }
 
- Public Types inherited from edm::global::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

 DQMFileSaver (const edm::ParameterSet &ps)
 
- Public Member Functions inherited from edm::global::EDAnalyzer< edm::RunCache< saverDetails::NoCache >, edm::LuminosityBlockCache< saverDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::global::EDAnalyzerBase
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Member Functions

static boost::property_tree::ptree fillJson (int run, int lumi, const std::string &dataFilePathName, const std::string transferDestinationStr, const std::string mergeTypeStr, evf::FastMonitoringService *fms)
 
- Static Public Member Functions inherited from edm::global::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Protected Member Functions

virtual void analyze (edm::StreamID, const edm::Event &e, const edm::EventSetup &) const
 
virtual void beginJob (void)
 
virtual void endJob (void)
 
virtual std::shared_ptr
< saverDetails::NoCache
globalBeginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) const
 
virtual std::shared_ptr
< saverDetails::NoCache
globalBeginRun (const edm::Run &, const edm::EventSetup &) const
 
virtual void globalEndLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) const
 
virtual void globalEndRun (const edm::Run &, const edm::EventSetup &) const
 
virtual void postForkReacquireResources (unsigned int childIndex, unsigned int numberOfChildren)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Private Member Functions

void saveForFilterUnit (const std::string &rewrite, int run, int lumi, const FileFormat fileFormat) const
 
void saveForOffline (const std::string &workflow, int run, int lumi) const
 
void saveForOfflinePB (const std::string &workflow, int run) const
 
void saveForOnline (int run, const std::string &suffix, const std::string &rewrite) const
 
void saveForOnlinePB (int run, const std::string &suffix) const
 
void saveJobReport (const std::string &filename) const
 

Private Attributes

std::string child_
 
Convention convention_
 
DQMStoredbe_
 
std::string dirName_
 
bool enableMultiThread_
 
bool fakeFilterUnitMode_
 
std::string fileBaseName_
 
FileFormat fileFormat_
 
std::atomic< int > fileUpdate_
 
std::string filterName_
 
evf::FastMonitoringServicefms_
 
int forceRunNumber_
 
std::atomic< int > irun_
 
std::string mergeType_
 
std::atomic< int > nlumi_
 
std::atomic< int > nrun_
 
std::string producer_
 
bool runIsComplete_
 
bool saveAtJobEnd_
 
int saveByLumiSection_
 
int saveByRun_
 
int saveReference_
 
int saveReferenceQMin_
 
std::string stream_label_
 
std::string transferDestination_
 
int version_
 
std::string workflow_
 

Static Private Attributes

static const std::string streamPrefix_
 
static const std::string streamSuffix_
 

Detailed Description

Definition at line 15 of file DQMFileSaver.h.

Member Enumeration Documentation

Enumerator
Online 
Offline 
FilterUnit 

Definition at line 39 of file DQMFileSaver.h.

Enumerator
ROOT 
PB 

Definition at line 46 of file DQMFileSaver.h.

47  {
48  ROOT,
49  PB
50  };

Constructor & Destructor Documentation

DQMFileSaver::DQMFileSaver ( const edm::ParameterSet ps)

Definition at line 438 of file DQMFileSaver.cc.

Member Function Documentation

void DQMFileSaver::analyze ( edm::StreamID  ,
const edm::Event e,
const edm::EventSetup  
) const
protectedvirtual

Implements edm::global::EDAnalyzerBase.

Definition at line 685 of file DQMFileSaver.cc.

void DQMFileSaver::beginJob ( void  )
protectedvirtual

Reimplemented from edm::global::EDAnalyzerBase.

Definition at line 644 of file DQMFileSaver.cc.

void DQMFileSaver::endJob ( void  )
protectedvirtual

Reimplemented from edm::global::EDAnalyzerBase.

Definition at line 821 of file DQMFileSaver.cc.

boost::property_tree::ptree DQMFileSaver::fillJson ( int  run,
int  lumi,
const std::string &  dataFilePathName,
const std::string  transferDestinationStr,
const std::string  mergeTypeStr,
evf::FastMonitoringService fms 
)
static
std::shared_ptr< saverDetails::NoCache > DQMFileSaver::globalBeginLuminosityBlock ( const edm::LuminosityBlock l,
const edm::EventSetup  
) const
protectedvirtual

Definition at line 679 of file DQMFileSaver.cc.

std::shared_ptr< saverDetails::NoCache > DQMFileSaver::globalBeginRun ( const edm::Run r,
const edm::EventSetup  
) const
protectedvirtual

Definition at line 659 of file DQMFileSaver.cc.

void DQMFileSaver::globalEndLuminosityBlock ( const edm::LuminosityBlock iLS,
const edm::EventSetup  
) const
protectedvirtual

Definition at line 693 of file DQMFileSaver.cc.

void DQMFileSaver::globalEndRun ( const edm::Run iRun,
const edm::EventSetup  
) const
protectedvirtual

Definition at line 752 of file DQMFileSaver.cc.

void DQMFileSaver::postForkReacquireResources ( unsigned int  childIndex,
unsigned int  numberOfChildren 
)
protectedvirtual

Reimplemented from edm::global::EDAnalyzerBase.

Definition at line 837 of file DQMFileSaver.cc.

void DQMFileSaver::saveForFilterUnit ( const std::string &  rewrite,
int  run,
int  lumi,
const FileFormat  fileFormat 
) const
private

Definition at line 344 of file DQMFileSaver.cc.

void DQMFileSaver::saveForOffline ( const std::string &  workflow,
int  run,
int  lumi 
) const
private

Definition at line 86 of file DQMFileSaver.cc.

void DQMFileSaver::saveForOfflinePB ( const std::string &  workflow,
int  run 
) const
private

Definition at line 77 of file DQMFileSaver.cc.

void DQMFileSaver::saveForOnline ( int  run,
const std::string &  suffix,
const std::string &  rewrite 
) const
private

Definition at line 211 of file DQMFileSaver.cc.

void DQMFileSaver::saveForOnlinePB ( int  run,
const std::string &  suffix 
) const
private

Definition at line 194 of file DQMFileSaver.cc.

void DQMFileSaver::saveJobReport ( const std::string &  filename) const
private

Definition at line 422 of file DQMFileSaver.cc.

Member Data Documentation

std::string DQMFileSaver::child_
private

Definition at line 68 of file DQMFileSaver.h.

Convention DQMFileSaver::convention_
private

Definition at line 62 of file DQMFileSaver.h.

DQMStore* DQMFileSaver::dbe_
private

Definition at line 85 of file DQMFileSaver.h.

std::string DQMFileSaver::dirName_
private

Definition at line 67 of file DQMFileSaver.h.

bool DQMFileSaver::enableMultiThread_
private

Definition at line 72 of file DQMFileSaver.h.

bool DQMFileSaver::fakeFilterUnitMode_
private

Definition at line 73 of file DQMFileSaver.h.

std::string DQMFileSaver::fileBaseName_
private

Definition at line 82 of file DQMFileSaver.h.

FileFormat DQMFileSaver::fileFormat_
private

Definition at line 63 of file DQMFileSaver.h.

std::atomic<int> DQMFileSaver::fileUpdate_
mutableprivate

Definition at line 83 of file DQMFileSaver.h.

std::string DQMFileSaver::filterName_
private

Definition at line 69 of file DQMFileSaver.h.

evf::FastMonitoringService* DQMFileSaver::fms_
private

Definition at line 93 of file DQMFileSaver.h.

int DQMFileSaver::forceRunNumber_
private

Definition at line 80 of file DQMFileSaver.h.

std::atomic<int> DQMFileSaver::irun_
mutableprivate

Definition at line 90 of file DQMFileSaver.h.

std::string DQMFileSaver::mergeType_
private

Definition at line 98 of file DQMFileSaver.h.

std::atomic<int> DQMFileSaver::nlumi_
mutableprivate

Definition at line 87 of file DQMFileSaver.h.

std::atomic<int> DQMFileSaver::nrun_
mutableprivate

Definition at line 86 of file DQMFileSaver.h.

std::string DQMFileSaver::producer_
private

Definition at line 65 of file DQMFileSaver.h.

bool DQMFileSaver::runIsComplete_
private

Definition at line 71 of file DQMFileSaver.h.

bool DQMFileSaver::saveAtJobEnd_
private

Definition at line 77 of file DQMFileSaver.h.

int DQMFileSaver::saveByLumiSection_
private

Definition at line 75 of file DQMFileSaver.h.

int DQMFileSaver::saveByRun_
private

Definition at line 76 of file DQMFileSaver.h.

int DQMFileSaver::saveReference_
private

Definition at line 78 of file DQMFileSaver.h.

int DQMFileSaver::saveReferenceQMin_
private

Definition at line 79 of file DQMFileSaver.h.

std::string DQMFileSaver::stream_label_
private

Definition at line 66 of file DQMFileSaver.h.

const std::string DQMFileSaver::streamPrefix_
staticprivate

Definition at line 95 of file DQMFileSaver.h.

const std::string DQMFileSaver::streamSuffix_
staticprivate

Definition at line 96 of file DQMFileSaver.h.

std::string DQMFileSaver::transferDestination_
private

Definition at line 97 of file DQMFileSaver.h.

int DQMFileSaver::version_
private

Definition at line 70 of file DQMFileSaver.h.

std::string DQMFileSaver::workflow_
private

Definition at line 64 of file DQMFileSaver.h.