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
DTRecoIdealDBLoader Class Reference

#include <DTRecoIdealDBLoader.h>

Inheritance diagram for DTRecoIdealDBLoader:
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 &)
 
 DTRecoIdealDBLoader (const edm::ParameterSet &iConfig)
 
virtual void endJob ()
 
 ~DTRecoIdealDBLoader ()
 
- 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
 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
 
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 13 of file DTRecoIdealDBLoader.h.

Constructor & Destructor Documentation

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

Definition at line 29 of file DTRecoIdealDBLoader.cc.

References gather_cfg::cout.

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

Definition at line 34 of file DTRecoIdealDBLoader.cc.

References gather_cfg::cout.

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

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 19 of file DTRecoIdealDBLoader.h.

19 {}
void DTRecoIdealDBLoader::beginRun ( const edm::Run ,
edm::EventSetup const &  es 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 40 of file DTRecoIdealDBLoader.cc.

References cond::service::PoolDBOutputService::beginOfTime(), DTGeometryParsFromDD::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("DTRecoIdealDBLoader")<<"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  dtgp.build( &cpv, *pMNDC, *rig );
58 
59  if ( mydbservice->isNewTagRequest("DTRecoGeometryRcd") ) {
60  mydbservice->createNewIOV<RecoIdealGeometry>(rig
61  , mydbservice->beginOfTime()
62  , mydbservice->endOfTime()
63  , "DTRecoGeometryRcd");
64  } else {
65  edm::LogError("DTRecoIdealDBLoader")<<"DTRecoGeometryRcd Tag is already present.";
66  }
67 }
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)
void build(const DDCompactView *cview, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rig)
virtual void DTRecoIdealDBLoader::endJob ( void  )
inlinevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 20 of file DTRecoIdealDBLoader.h.

20 {};

Member Data Documentation

std::string DTRecoIdealDBLoader::label_
private
int DTRecoIdealDBLoader::rotNumSeed_
private

Definition at line 24 of file DTRecoIdealDBLoader.h.