CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
L1TMuonOverlapFwVersionOnlineProd.cc File Reference
#include <iostream>
#include <fstream>
#include "CondTools/L1TriggerExt/interface/L1ConfigOnlineProdBaseExt.h"
#include "CondFormats/L1TObjects/interface/L1TMuonOverlapFwVersion.h"
#include "CondFormats/DataRecord/interface/L1TMuonOverlapFwVersionRcd.h"
#include "CondFormats/DataRecord/interface/L1TMuonOverlapFwVersionO2ORcd.h"
#include "L1Trigger/L1TCommon/interface/TriggerSystem.h"
#include "L1Trigger/L1TCommon/interface/XmlConfigParser.h"
#include "OnlineDBqueryHelper.h"
#include "xercesc/util/PlatformUtils.hpp"

Go to the source code of this file.

Classes

class  L1TMuonOverlapFwVersionOnlineProd
 

Functions

void removeAll (std::string &str, const std::string &from, const std::string &to)
 
void replaceAll (std::string &str, const std::string &from, const std::string &to)
 
static const
edm::ParameterSetDescriptionFillerPluginFactory::PMaker
< edm::DescriptionFillerForESProducers
< L1TMuonOverlapFwVersionOnlineProd > > 
s_filler__LINE__ ("L1TMuonOverlapFwVersionOnlineProd")
 
static const
edm::eventsetup::ModulePluginFactory::PMaker
< edm::eventsetup::ModuleMaker
< L1TMuonOverlapFwVersionOnlineProd > > 
s_maker__LINE__ ("L1TMuonOverlapFwVersionOnlineProd")
 

Function Documentation

void removeAll ( std::string &  str,
const std::string &  from,
const std::string &  to 
)

Definition at line 39 of file L1TMuonOverlapFwVersionOnlineProd.cc.

Referenced by L1TMuonOverlapFwVersionOnlineProd::newObject().

39  {
40  if (from.empty())
41  return;
42  size_t start_pos = 0;
43  while ((start_pos = str.find(from, start_pos)) != std::string::npos) {
44  size_t end_pos = str.find(to) + to.length();
45  int length = end_pos - start_pos;
46  str.replace(start_pos, length, "");
47  }
48 }
#define str(s)
void replaceAll ( std::string &  str,
const std::string &  from,
const std::string &  to 
)

Definition at line 29 of file L1TMuonOverlapFwVersionOnlineProd.cc.

Referenced by L1TMuonOverlapFwVersionOnlineProd::newObject().

29  {
30  if (from.empty())
31  return;
32  size_t start_pos = 0;
33  while ((start_pos = str.find(from, start_pos)) != std::string::npos) {
34  str.replace(start_pos, from.length(), to);
35  start_pos += to.length();
36  }
37 }
#define str(s)
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::DescriptionFillerForESProducers< L1TMuonOverlapFwVersionOnlineProd > > s_filler__LINE__ ( "L1TMuonOverlapFwVersionOnlineProd"  )
static
static const edm::eventsetup::ModulePluginFactory ::PMaker< edm::eventsetup::ModuleMaker< L1TMuonOverlapFwVersionOnlineProd > > s_maker__LINE__ ( "L1TMuonOverlapFwVersionOnlineProd"  )
static