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

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 ()
 

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)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

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:41
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:41

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:81
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:41
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.