CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes

stor::HLTInfo Class Reference

#include <HLTInfo.h>

List of all members.

Public Member Functions

void buildClassCache (const edm::ProductRegistry &reg)
void declareStreamers (const edm::ProductRegistry &reg)
edm::EventBuffergetCommandQueue () const
edm::EventBuffergetEventQueue () const
boost::mutexgetExtraLock () const
edm::EventBuffergetFragmentQueue () const
 HLTInfo ()
 HLTInfo (const edm::ProductRegistry &)
 HLTInfo (const edm::ParameterSet &)
void mergeRegistry (edm::ProductRegistry &reg)
const edm::ProductRegistryproducts () const
virtual ~HLTInfo ()

Private Member Functions

 HLTInfo (const HLTInfo &)
const HLTInfooperator= (const HLTInfo &)

Private Attributes

edm::EventBuffercmd_q_
edm::EventBufferevtbuf_q_
edm::EventBufferfrag_q_
edm::ProductRegistry prods_

Static Private Attributes

static boost::mutex lock_

Detailed Description

Definition at line 101 of file HLTInfo.h.


Constructor & Destructor Documentation

HLTInfo::HLTInfo ( )

Definition at line 18 of file HLTInfo.cc.

                  :
    cmd_q_(edm::getEventBuffer(ptr_size,50)),
    evtbuf_q_(edm::getEventBuffer(ptr_size,100)),
    frag_q_(edm::getEventBuffer(frag_size,200))
  {
  }
HLTInfo::HLTInfo ( const edm::ProductRegistry pr) [explicit]

Definition at line 32 of file HLTInfo.cc.

References prods_, and edm::ProductRegistry::setFrozen().

                                              :
    prods_(pr),
    cmd_q_(edm::getEventBuffer(ptr_size,50)),
    evtbuf_q_(edm::getEventBuffer(ptr_size,100)),
    frag_q_(edm::getEventBuffer(frag_size,200))
  {
     prods_.setFrozen();
  }
HLTInfo::HLTInfo ( const edm::ParameterSet ps) [explicit]

Definition at line 25 of file HLTInfo.cc.

                                           :
    cmd_q_(edm::getEventBuffer(ptr_size,50)),
    evtbuf_q_(edm::getEventBuffer(ptr_size,100)),
    frag_q_(edm::getEventBuffer(frag_size,200))
  {
  }
HLTInfo::~HLTInfo ( ) [virtual]

Definition at line 41 of file HLTInfo.cc.

  {
  }
HLTInfo::HLTInfo ( const HLTInfo ) [private]

Definition at line 45 of file HLTInfo.cc.

{ }

Member Function Documentation

void HLTInfo::buildClassCache ( const edm::ProductRegistry reg)

Definition at line 73 of file HLTInfo.cc.

References edm::doBuildRealData(), pi, edm::ProductRegistry::productList(), and edm::wrappedClassName().

  {
    typedef edm::ProductRegistry::ProductList ProdList;
    ProdList plist(reg.productList());
    ProdList::const_iterator pi(plist.begin()),pe(plist.end());

    for(; pi != pe; ++pi) {
      //pi->second.init();
      std::string real_name = edm::wrappedClassName(pi->second.className());
      //FDEBUG(6) << "BuildReadData: " << real_name << std::endl;
      edm::doBuildRealData(real_name);
    }
  }
void HLTInfo::declareStreamers ( const edm::ProductRegistry reg)

Definition at line 59 of file HLTInfo.cc.

References edm::loadCap(), pi, edm::ProductRegistry::productList(), and edm::wrappedClassName().

  {
    typedef edm::ProductRegistry::ProductList ProdList;
    ProdList plist(reg.productList());
    ProdList::const_iterator pi(plist.begin()),pe(plist.end());

    for(; pi != pe; ++pi) {
      //pi->second.init();
      std::string real_name = edm::wrappedClassName(pi->second.className());
      //FDEBUG(6) << "declare: " << real_name << std::endl;
      edm::loadCap(real_name);
    }
  }
edm::EventBuffer& stor::HLTInfo::getCommandQueue ( ) const [inline]

Definition at line 118 of file HLTInfo.h.

References cmd_q_.

{ return *cmd_q_; }
edm::EventBuffer& stor::HLTInfo::getEventQueue ( ) const [inline]

Definition at line 117 of file HLTInfo.h.

References evtbuf_q_.

{ return *evtbuf_q_; }
boost::mutex& stor::HLTInfo::getExtraLock ( ) const [inline]

Definition at line 121 of file HLTInfo.h.

References lock_.

{ return lock_; }
edm::EventBuffer& stor::HLTInfo::getFragmentQueue ( ) const [inline]

Definition at line 119 of file HLTInfo.h.

References frag_q_.

{ return *frag_q_; }
void HLTInfo::mergeRegistry ( edm::ProductRegistry reg)

Definition at line 48 of file HLTInfo.cc.

References edm::ProductRegistry::copyProduct(), pi, prods_, and edm::ProductRegistry::productList().

  {
    typedef edm::ProductRegistry::ProductList ProdList; 
    ProdList plist(prods_.productList());
    ProdList::iterator pi(plist.begin()),pe(plist.end());
    
    for(; pi != pe; ++pi) {
        pr.copyProduct(pi->second);
    }
  }
const HLTInfo & HLTInfo::operator= ( const HLTInfo ) [private]

Definition at line 46 of file HLTInfo.cc.

{ return *this; }
const edm::ProductRegistry& stor::HLTInfo::products ( ) const [inline]

Definition at line 115 of file HLTInfo.h.

References prods_.

{ return prods_; }

Member Data Documentation

Definition at line 128 of file HLTInfo.h.

Referenced by getCommandQueue().

Definition at line 129 of file HLTInfo.h.

Referenced by getEventQueue().

Definition at line 130 of file HLTInfo.h.

Referenced by getFragmentQueue().

boost::mutex HLTInfo::lock_ [static, private]

Definition at line 132 of file HLTInfo.h.

Referenced by getExtraLock().

Definition at line 127 of file HLTInfo.h.

Referenced by HLTInfo(), mergeRegistry(), and products().