CMS 3D CMS Logo

edm::RunLumiEntryInfo Class Reference

#include <DataFormats/Provenance/interface/RunLumiEntryInfo.h>

List of all members.

Public Types

typedef std::vector
< RunLumiEntryInfo
EntryInfoVector

Public Member Functions

BranchID const & branchID () const
EventEntryInfo makeEntryInfo () const
ModuleDescriptionID const & moduleDescriptionID () const
ProductID const & productID () const
ProductStatus const & productStatus () const
 RunLumiEntryInfo (BranchID const &bid, ProductStatus status, ProductID const &pid, EntryDescriptionID const &edid)
 RunLumiEntryInfo (BranchID const &bid, ProductStatus status, ModuleDescriptionID const &mid, ProductID const &pid=ProductID(), std::vector< BranchID > const &parents=std::vector< BranchID >())
 RunLumiEntryInfo (BranchID const &bid, ProductStatus status)
 RunLumiEntryInfo (EventEntryInfo const &ei)
 RunLumiEntryInfo (BranchID const &bid)
 RunLumiEntryInfo ()
void setModuleDescriptionID (ModuleDescriptionID const &mdid)
void setNotPresent ()
void setPresent ()
void setStatus (ProductStatus status)
void write (std::ostream &os) const
 ~RunLumiEntryInfo ()

Private Attributes

BranchID branchID_
ModuleDescriptionID moduleDescriptionID_
ProductStatus productStatus_


Detailed Description

Definition at line 26 of file RunLumiEntryInfo.h.


Member Typedef Documentation

typedef std::vector<RunLumiEntryInfo> edm::RunLumiEntryInfo::EntryInfoVector

Definition at line 28 of file RunLumiEntryInfo.h.


Constructor & Destructor Documentation

edm::RunLumiEntryInfo::RunLumiEntryInfo (  ) 

Definition at line 13 of file RunLumiEntryInfo.cc.

00013                                      :
00014     branchID_(),
00015     productStatus_(productstatus::uninitialized()),
00016     moduleDescriptionID_()
00017   {}

edm::RunLumiEntryInfo::RunLumiEntryInfo ( BranchID const &  bid  )  [explicit]

Definition at line 25 of file RunLumiEntryInfo.cc.

00025                                                         :
00026     branchID_(bid),
00027     productStatus_(productstatus::uninitialized()),
00028     moduleDescriptionID_()
00029   {}

edm::RunLumiEntryInfo::RunLumiEntryInfo ( EventEntryInfo const &  ei  )  [explicit]

Definition at line 19 of file RunLumiEntryInfo.cc.

00019                                                              :
00020     branchID_(ei.branchID()),
00021     productStatus_(ei.productStatus()),
00022     moduleDescriptionID_(ei.moduleDescriptionID())
00023   {}

edm::RunLumiEntryInfo::RunLumiEntryInfo ( BranchID const &  bid,
ProductStatus  status 
)

Definition at line 31 of file RunLumiEntryInfo.cc.

00032                                                           :
00033     branchID_(bid),
00034     productStatus_(status),
00035     moduleDescriptionID_()
00036   {}

edm::RunLumiEntryInfo::RunLumiEntryInfo ( BranchID const &  bid,
ProductStatus  status,
ModuleDescriptionID const &  mid,
ProductID const &  pid = ProductID(),
std::vector< BranchID > const &  parents = std::vector<BranchID>() 
)

Definition at line 40 of file RunLumiEntryInfo.cc.

00044                                                                 :
00045     branchID_(bid),
00046     productStatus_(status),
00047     moduleDescriptionID_(mid)
00048   {} 

edm::RunLumiEntryInfo::RunLumiEntryInfo ( BranchID const &  bid,
ProductStatus  status,
ProductID const &  pid,
EntryDescriptionID const &  edid 
)

Definition at line 50 of file RunLumiEntryInfo.cc.

References edm::detail::ThreadSafeRegistry< KEY, T, E >::instance(), edm::EventEntryDescription::moduleDescriptionID(), and moduleDescriptionID_.

00053                                                                     :
00054     branchID_(bid),
00055     productStatus_(status),
00056     moduleDescriptionID_() {
00057      EventEntryDescription ed;
00058      EntryDescriptionRegistry::instance()->getMapped(edid, ed);
00059      moduleDescriptionID_ = ed.moduleDescriptionID();
00060   } 

edm::RunLumiEntryInfo::~RunLumiEntryInfo (  )  [inline]

Definition at line 45 of file RunLumiEntryInfo.h.

00045 {}


Member Function Documentation

BranchID const& edm::RunLumiEntryInfo::branchID (  )  const [inline]

Definition at line 52 of file RunLumiEntryInfo.h.

References branchID_.

Referenced by edm::operator<(), edm::operator==(), and write().

00052 {return branchID_;}

EventEntryInfo edm::RunLumiEntryInfo::makeEntryInfo (  )  const

Definition at line 63 of file RunLumiEntryInfo.cc.

References branchID_, moduleDescriptionID_, and productStatus_.

00063                                         {
00064     return EventEntryInfo(branchID_, productStatus_, moduleDescriptionID_);
00065   }

ModuleDescriptionID const& edm::RunLumiEntryInfo::moduleDescriptionID (  )  const [inline]

Definition at line 54 of file RunLumiEntryInfo.h.

References moduleDescriptionID_.

Referenced by edm::operator==(), and write().

00054 {return moduleDescriptionID_;}

ProductID const& edm::RunLumiEntryInfo::productID (  )  const [inline]

Definition at line 51 of file RunLumiEntryInfo.h.

00051 {assert(0 && "Run and lumi products do not have productID's"); return *new ProductID;}

ProductStatus const& edm::RunLumiEntryInfo::productStatus (  )  const [inline]

Definition at line 53 of file RunLumiEntryInfo.h.

References productStatus_.

Referenced by edm::operator==(), setNotPresent(), setPresent(), and write().

00053 {return productStatus_;}

void edm::RunLumiEntryInfo::setModuleDescriptionID ( ModuleDescriptionID const &  mdid  )  [inline]

Definition at line 56 of file RunLumiEntryInfo.h.

References moduleDescriptionID_.

00056 {moduleDescriptionID_ = mdid;}

void edm::RunLumiEntryInfo::setNotPresent (  ) 

Definition at line 75 of file RunLumiEntryInfo.cc.

References edm::productstatus::neverCreated(), productStatus(), setStatus(), and edm::productstatus::unknown().

void edm::RunLumiEntryInfo::setPresent (  ) 

Definition at line 68 of file RunLumiEntryInfo.cc.

References edm::productstatus::present(), productStatus(), setStatus(), and edm::productstatus::unknown().

00068                                {
00069     if (productstatus::present(productStatus())) return;
00070     assert(productstatus::unknown(productStatus()));
00071     setStatus(productstatus::present());
00072   }

void edm::RunLumiEntryInfo::setStatus ( ProductStatus  status  )  [inline]

Definition at line 55 of file RunLumiEntryInfo.h.

References productStatus_.

Referenced by setNotPresent(), and setPresent().

void edm::RunLumiEntryInfo::write ( std::ostream &  os  )  const

Definition at line 82 of file RunLumiEntryInfo.cc.

References branchID(), moduleDescriptionID(), and productStatus().

Referenced by edm::operator<<().

00082                                               {
00083     os << "branch ID = " << branchID() << '\n';
00084     os << "product status = " << productStatus() << '\n';
00085     os << "module description ID = " << moduleDescriptionID() << '\n';
00086   }


Member Data Documentation

BranchID edm::RunLumiEntryInfo::branchID_ [private]

Definition at line 61 of file RunLumiEntryInfo.h.

Referenced by branchID(), and makeEntryInfo().

ModuleDescriptionID edm::RunLumiEntryInfo::moduleDescriptionID_ [private]

Definition at line 63 of file RunLumiEntryInfo.h.

Referenced by makeEntryInfo(), moduleDescriptionID(), RunLumiEntryInfo(), and setModuleDescriptionID().

ProductStatus edm::RunLumiEntryInfo::productStatus_ [private]

Definition at line 62 of file RunLumiEntryInfo.h.

Referenced by makeEntryInfo(), productStatus(), and setStatus().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:44:14 2009 for CMSSW by  doxygen 1.5.4