CMS 3D CMS Logo

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

#include <RPCRecoIdealDBLoader.h>

Inheritance diagram for RPCRecoIdealDBLoader:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginRun (const edm::Run &, edm::EventSetup const &)
 
virtual void endJob ()
 
 RPCRecoIdealDBLoader (const edm::ParameterSet &iConfig)
 
 ~RPCRecoIdealDBLoader ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- 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 (const std::string &iProcessName, std::vector< const char * > &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 ()
 

Private Attributes

std::string label_
 
int rotNumSeed_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- 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)
 

Detailed Description

Definition at line 11 of file RPCRecoIdealDBLoader.h.

Constructor & Destructor Documentation

RPCRecoIdealDBLoader::RPCRecoIdealDBLoader ( const edm::ParameterSet iConfig)
explicit

Definition at line 29 of file RPCRecoIdealDBLoader.cc.

References gather_cfg::cout.

29  : label_()
30 {
31  std::cout<<"RPCRecoIdealDBLoader::RPCRecoIdealDBLoader"<<std::endl;
32 }
tuple cout
Definition: gather_cfg.py:121
RPCRecoIdealDBLoader::~RPCRecoIdealDBLoader ( )

Definition at line 34 of file RPCRecoIdealDBLoader.cc.

References gather_cfg::cout.

35 {
36  std::cout<<"RPCRecoIdealDBLoader::~RPCRecoIdealDBLoader"<<std::endl;
37 }
tuple cout
Definition: gather_cfg.py:121

Member Function Documentation

virtual void RPCRecoIdealDBLoader::analyze ( const edm::Event ,
const edm::EventSetup  
)
inlinevirtual

Implements edm::EDAnalyzer.

Definition at line 17 of file RPCRecoIdealDBLoader.h.

17 {}
void RPCRecoIdealDBLoader::beginRun ( const edm::Run ,
edm::EventSetup const &  es 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 40 of file RPCRecoIdealDBLoader.cc.

References cond::service::PoolDBOutputService::beginOfTime(), RPCGeometryParsFromDD::build(), cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::endOfTime(), edm::EventSetup::get(), edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), and label_.

41 {
44  if( !mydbservice.isAvailable() ){
45  edm::LogError("RPCRecoIdealDBLoader")<<"PoolDBOutputService unavailable";
46  return;
47  }
48 
51  es.get<IdealGeometryRecord>().get(label_, pDD );
52  es.get<MuonNumberingRecord>().get( pMNDC );
53 
54  const DDCompactView& cpv = *pDD;
56 
57  rpcpd.build( &cpv, *pMNDC, *rig );
58 
59  if ( mydbservice->isNewTagRequest("RPCRecoGeometryRcd") ) {
60  mydbservice->createNewIOV<RecoIdealGeometry>(rig
61  , mydbservice->beginOfTime()
62  , mydbservice->endOfTime()
63  , "RPCRecoGeometryRcd");
64  } else {
65  edm::LogError("RPCRecoIdealDBLoader")<<"RPCRecoGeometryRcd Tag is already present.";
66  }
67 }
void build(const DDCompactView *cview, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rgeo)
type of data representation of DDCompactView
Definition: DDCompactView.h:77
bool isNewTagRequest(const std::string &recordName)
bool isAvailable() const
Definition: Service.h:46
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
virtual void RPCRecoIdealDBLoader::endJob ( void  )
inlinevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 18 of file RPCRecoIdealDBLoader.h.

18 {};

Member Data Documentation

std::string RPCRecoIdealDBLoader::label_
private
int RPCRecoIdealDBLoader::rotNumSeed_
private

Definition at line 22 of file RPCRecoIdealDBLoader.h.