CMS 3D CMS Logo

edm::BranchEntryDescription Struct Reference

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

List of all members.

Public Types

enum  CreatorStatus { Success = 0, ApplicationFailure, InfrastructureFailure, CreatorNotRun }

Public Member Functions

 BranchEntryDescription (ProductID const &pid, CreatorStatus const &status)
 BranchEntryDescription ()
std::auto_ptr< EntryDescriptionconvertToEntryDescription () const
CreatorStatus const & creatorStatus () const
bool const & isPresent () const
ModuleDescriptionID const & moduleDescriptionID () const
std::vector< ProductID > const & parents () const
ProductID const & productID () const
void write (std::ostream &os) const
 ~BranchEntryDescription ()

Private Attributes

unsigned int cid_
bool isPresent_
ModuleDescriptionID moduleDescriptionID_
std::vector< ProductIDparents_
ProductID productID_
CreatorStatus status_


Detailed Description

Definition at line 31 of file BranchEntryDescription.h.


Member Enumeration Documentation

enum edm::BranchEntryDescription::CreatorStatus

Enumerator:
Success 
ApplicationFailure 
InfrastructureFailure 
CreatorNotRun 

Definition at line 32 of file BranchEntryDescription.h.

00032                        { Success = 0,
00033                          ApplicationFailure,
00034                          InfrastructureFailure,
00035                          CreatorNotRun };


Constructor & Destructor Documentation

edm::BranchEntryDescription::BranchEntryDescription (  ) 

Definition at line 12 of file BranchEntryDescription.cc.

00012                                                  :
00013     productID_(),
00014     parents_(),
00015     cid_(),
00016     status_(Success),
00017     isPresent_(false),
00018     moduleDescriptionID_()
00019   { }

edm::BranchEntryDescription::BranchEntryDescription ( ProductID const &  pid,
BranchEntryDescription::CreatorStatus const &  status 
)

Definition at line 21 of file BranchEntryDescription.cc.

00022                                                             :
00023     productID_(pid),
00024     parents_(),
00025     cid_(),
00026     status_(status),
00027     isPresent_(status == Success),
00028     moduleDescriptionID_()
00029   { }

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

Definition at line 40 of file BranchEntryDescription.h.

00040 {}


Member Function Documentation

std::auto_ptr< EntryDescription > edm::BranchEntryDescription::convertToEntryDescription (  )  const

Definition at line 51 of file BranchEntryDescription.cc.

References moduleDescriptionID(), and parents().

00051                                                           {
00052     std::auto_ptr<EntryDescription> entryDescription(new EntryDescription);
00053     entryDescription->parents() = parents();
00054     entryDescription->moduleDescriptionID() = moduleDescriptionID();
00055     return entryDescription;
00056   }

CreatorStatus const& edm::BranchEntryDescription::creatorStatus (  )  const [inline]

Definition at line 46 of file BranchEntryDescription.h.

References status_.

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

00046 {return status_;}

bool const& edm::BranchEntryDescription::isPresent (  )  const [inline]

Definition at line 45 of file BranchEntryDescription.h.

References isPresent_.

Referenced by write().

00045 {return isPresent_;}

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

Definition at line 49 of file BranchEntryDescription.h.

References moduleDescriptionID_.

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

00049 {return moduleDescriptionID_;}

std::vector<ProductID> const& edm::BranchEntryDescription::parents (  )  const [inline]

Definition at line 47 of file BranchEntryDescription.h.

References parents_.

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

00047 {return parents_;}

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

Definition at line 44 of file BranchEntryDescription.h.

References productID_.

Referenced by edm::operator==().

00044 {return productID_;}

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

Definition at line 32 of file BranchEntryDescription.cc.

References creatorStatus(), lat::endl(), isPresent(), moduleDescriptionID(), and productID_.

Referenced by edm::operator<<().

00032                                                     {
00033     // This is grossly inadequate, but it is not critical for the
00034     // first pass.
00035     os << "Product ID = " << productID_ << '\n';
00036     os << "CreatorStatus = " << creatorStatus() << '\n';
00037     os << "Module Description ID = " << moduleDescriptionID() << '\n';
00038     os << "Is Present = " << isPresent() << std::endl;
00039   }


Member Data Documentation

unsigned int edm::BranchEntryDescription::cid_ [private]

Definition at line 58 of file BranchEntryDescription.h.

bool edm::BranchEntryDescription::isPresent_ [private]

Definition at line 75 of file BranchEntryDescription.h.

Referenced by isPresent().

ModuleDescriptionID edm::BranchEntryDescription::moduleDescriptionID_ [private]

Definition at line 77 of file BranchEntryDescription.h.

Referenced by moduleDescriptionID().

std::vector<ProductID> edm::BranchEntryDescription::parents_ [private]

Definition at line 55 of file BranchEntryDescription.h.

Referenced by parents().

ProductID edm::BranchEntryDescription::productID_ [private]

Definition at line 52 of file BranchEntryDescription.h.

Referenced by productID(), and write().

CreatorStatus edm::BranchEntryDescription::status_ [private]

Definition at line 70 of file BranchEntryDescription.h.

Referenced by creatorStatus().


The documentation for this struct was generated from the following files:
Generated on Tue Jun 9 18:39:40 2009 for CMSSW by  doxygen 1.5.4