CMS 3D CMS Logo

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

#include <PHcalParametersDBBuilder.h>

Inheritance diagram for PHcalParametersDBBuilder:
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 ()
 
 PHcalParametersDBBuilder (const edm::ParameterSet &)
 
 ~PHcalParametersDBBuilder (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
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 ()
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- 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 9 of file PHcalParametersDBBuilder.h.

Constructor & Destructor Documentation

PHcalParametersDBBuilder::PHcalParametersDBBuilder ( const edm::ParameterSet )
inlineexplicit

Definition at line 12 of file PHcalParametersDBBuilder.h.

12 {}
PHcalParametersDBBuilder::~PHcalParametersDBBuilder ( void  )
inline

Definition at line 13 of file PHcalParametersDBBuilder.h.

13 {}

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 15 of file PHcalParametersDBBuilder.h.

15 {}
void PHcalParametersDBBuilder::beginRun ( const edm::Run ,
edm::EventSetup const &  es 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 12 of file PHcalParametersDBBuilder.cc.

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

13 {
16  if( !mydbservice.isAvailable())
17  {
18  edm::LogError( "PHcalParametersDBBuilder" ) << "PoolDBOutputService unavailable";
19  return;
20  }
22  es.get<IdealGeometryRecord>().get( cpv );
23 
24  HcalParametersFromDD builder;
25  builder.build( &(*cpv), *php );
26 
27  if( mydbservice->isNewTagRequest( "PHcalParametersRcd" ))
28  {
29  mydbservice->createNewIOV<PHcalParameters>( php, mydbservice->beginOfTime(), mydbservice->endOfTime(), "PHcalParametersRcd" );
30  } else
31  {
32  edm::LogError( "PHcalParametersDBBuilder" ) << "PHcalParameters and PHcalParametersRcd Tag already present";
33  }
34 }
bool build(const DDCompactView *, PHcalParameters &)
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 PHcalParametersDBBuilder::endJob ( void  )
inlinevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 16 of file PHcalParametersDBBuilder.h.

16 {}