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

#include <CSCRecoIdealDBLoader.h>

Inheritance diagram for CSCRecoIdealDBLoader:
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 &)
 
 CSCRecoIdealDBLoader (const edm::ParameterSet &iConfig)
 
virtual void endJob ()
 
 ~CSCRecoIdealDBLoader ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) 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
 
typedef WorkerT< EDAnalyzerWorkerType
 
- 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::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- 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 CSCRecoIdealDBLoader.h.

Constructor & Destructor Documentation

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

Definition at line 30 of file CSCRecoIdealDBLoader.cc.

References gather_cfg::cout.

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

Definition at line 35 of file CSCRecoIdealDBLoader.cc.

References gather_cfg::cout.

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

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 19 of file CSCRecoIdealDBLoader.h.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 41 of file CSCRecoIdealDBLoader.cc.

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

42 {
43  std::cout<<"CSCRecoIdealDBLoader::beginRun"<<std::endl;
47  if( !mydbservice.isAvailable() ){
48  edm::LogError("CSCRecoIdealDBLoader")<<"PoolDBOutputService unavailable";
49  return;
50  }
51 
54  es.get<IdealGeometryRecord>().get(label_, pDD );
55  es.get<MuonNumberingRecord>().get( pMNDC );
56 
57  const DDCompactView& cpv = *pDD;
59 
60  cscgp.build( &cpv, *pMNDC, *rig, *rdp );
61 
62  if ( mydbservice->isNewTagRequest("CSCRecoGeometryRcd") ) {
63  mydbservice->createNewIOV<RecoIdealGeometry>(rig
64  , mydbservice->beginOfTime()
65  , mydbservice->endOfTime()
66  , "CSCRecoGeometryRcd");
67  } else {
68  edm::LogError("CSCRecoIdealDBLoader")<<"CSCRecoGeometryRcd Tag is already present.";
69  }
70  if ( mydbservice->isNewTagRequest("CSCRecoDigiParametersRcd") ) {
71  mydbservice->createNewIOV<CSCRecoDigiParameters>(rdp
72  , mydbservice->beginOfTime()
73  , mydbservice->endOfTime()
74  , "CSCRecoDigiParametersRcd");
75  } else {
76  edm::LogError("CSCRecoIdealDBLoader")<<"CSCRecoDigiParametersRcd Tag is already present.";
77  }
78 
79 }
type of data representation of DDCompactView
Definition: DDCompactView.h:77
bool build(const DDCompactView *cview, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rig, CSCRecoDigiParameters &rdp)
Build the geometry returning the RecoIdealGeometry and the CSCRecoDigiParameters objects.
bool isNewTagRequest(const std::string &recordName)
bool isAvailable() const
Definition: Service.h:47
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
tuple cout
Definition: gather_cfg.py:121
virtual void CSCRecoIdealDBLoader::endJob ( void  )
inlinevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 20 of file CSCRecoIdealDBLoader.h.

20 {};

Member Data Documentation

std::string CSCRecoIdealDBLoader::label_
private
int CSCRecoIdealDBLoader::rotNumSeed_
private

Definition at line 24 of file CSCRecoIdealDBLoader.h.