CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
GEMRecoIdealDBLoader Class Reference
Inheritance diagram for GEMRecoIdealDBLoader:
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 (void)
 
 GEMRecoIdealDBLoader (const edm::ParameterSet &)
 
 ~GEMRecoIdealDBLoader (void)
 
- 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
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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 19 of file GEMRecoIdealDBLoader.cc.

Constructor & Destructor Documentation

GEMRecoIdealDBLoader::GEMRecoIdealDBLoader ( const edm::ParameterSet )
explicit

Definition at line 31 of file GEMRecoIdealDBLoader.cc.

References gather_cfg::cout.

32 {
33  std::cout << "GEMRecoIdealDBLoader::GEMRecoIdealDBLoader" << std::endl;
34 }
tuple cout
Definition: gather_cfg.py:121
GEMRecoIdealDBLoader::~GEMRecoIdealDBLoader ( void  )

Definition at line 36 of file GEMRecoIdealDBLoader.cc.

References gather_cfg::cout.

37 {
38  std::cout << "GEMRecoIdealDBLoader::~GEMRecoIdealDBLoader" << std::endl;
39 }
tuple cout
Definition: gather_cfg.py:121

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 27 of file GEMRecoIdealDBLoader.cc.

27 {}
void GEMRecoIdealDBLoader::beginRun ( const edm::Run ,
edm::EventSetup const &  es 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 42 of file GEMRecoIdealDBLoader.cc.

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

43 {
45  if( !mydbservice.isAvailable())
46  {
47  edm::LogError( "GEMRecoIdealDBLoader" ) << "PoolDBOutputService unavailable";
48  return;
49  }
50 
51  if( mydbservice->isNewTagRequest( "GEMRecoGeometryRcd" ))
52  {
55  es.get<IdealGeometryRecord>().get( pDD );
56  es.get<MuonNumberingRecord>().get( pMNDC );
57 
58  const DDCompactView& cpv = *pDD;
60 
62  rpcpd.build( &cpv, *pMNDC, *rig );
63 
64  mydbservice->createNewIOV<RecoIdealGeometry>( rig,
65  mydbservice->beginOfTime(),
66  mydbservice->endOfTime(),
67  "GEMRecoGeometryRcd" );
68  }
69  else
70  {
71  edm::LogError( "GEMRecoIdealDBLoader" ) << "GEMRecoGeometryRcd Tag is already present";
72  }
73 }
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 GEMRecoIdealDBLoader::endJob ( void  )
inlinevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 28 of file GEMRecoIdealDBLoader.cc.

28 {};