CMS 3D CMS Logo

List of all members | Public Member Functions
DTKeyedConfigDBDump Class Reference

#include <DTKeyedConfigDBDump.h>

Inheritance diagram for DTKeyedConfigDBDump:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c) override
 
void beginJob () override
 
 DTKeyedConfigDBDump (const edm::ParameterSet &ps)
 
 ~DTKeyedConfigDBDump () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

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 &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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

Description:

Date
2010/03/18 16:07:59
Revision
1.1.2.1
Author
Paolo Ronchese INFN Padova

Definition at line 35 of file DTKeyedConfigDBDump.h.

Constructor & Destructor Documentation

DTKeyedConfigDBDump::DTKeyedConfigDBDump ( const edm::ParameterSet ps)
explicit

Constructor

Definition at line 38 of file DTKeyedConfigDBDump.cc.

38  {
39 }
DTKeyedConfigDBDump::~DTKeyedConfigDBDump ( )
override

Destructor

Definition at line 44 of file DTKeyedConfigDBDump.cc.

44  {
45 }

Member Function Documentation

void DTKeyedConfigDBDump::analyze ( const edm::Event e,
const edm::EventSetup c 
)
override

Definition at line 57 of file DTKeyedConfigDBDump.cc.

References gather_cfg::cout, DEFINE_FWK_MODULE, edm::eventsetup::heterocontainer::HCTypeTag::findType(), cond::persistency::KeyList::get(), edm::EventSetup::get(), kp, cond::persistency::KeyList::load(), edm::ESHandle< T >::product(), and edm::eventsetup::EventSetupRecordKey::type().

58  {
60  recordKey(edm::eventsetup::EventSetupRecordKey::TypeTag::findType("DTKeyedConfigListRcd"));
61  if( recordKey.type() == edm::eventsetup::EventSetupRecordKey::TypeTag()) {
62  //record not found
63  std::cout <<"Record \"DTKeyedConfigListRcd "<<"\" does not exist "<<std::endl;
64  }
66  std::cout<<"got eshandle"<<std::endl;
67  c.get<DTKeyedConfigListRcd>().get(klh);
68  std::cout<<"got context"<<std::endl;
69  cond::persistency::KeyList const & kl= *klh.product();
71  std::vector<unsigned long long> nkeys;
72  nkeys.push_back( 999999999 );
73  std::cout << "now load" << std::endl;
74  kp->load( nkeys );
75  std::cout << "now get" << std::endl;
76  std::shared_ptr<DTKeyedConfig> pkc = kp->get<DTKeyedConfig>(0);
77  std::cout << "now check" << std::endl;
78  if ( pkc.get() ) std::cout << pkc->getId() << " "
79  << *( pkc->dataBegin() ) << std::endl;
80  else std::cout << "not found" << std::endl;
81  std::cout << std::endl;
82  std::vector<unsigned long long> nvoid;
83  kp->load( nvoid );
84  return;
85 }
int kp
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
heterocontainer::HCTypeTag TypeTag
std::shared_ptr< T > get(size_t n) const
Definition: KeyList.h:40
T get() const
Definition: EventSetup.h:71
void load(const std::vector< unsigned long long > &keys)
Definition: KeyList.cc:14
T const * product() const
Definition: ESHandle.h:86
void DTKeyedConfigDBDump::beginJob ( void  )
overridevirtual

Operations

Reimplemented from edm::EDAnalyzer.

Definition at line 50 of file DTKeyedConfigDBDump.cc.

50  {
51 
52  return;
53 
54 }