#include <DataFormats/Provenance/interface/BranchEntryDescription.h>
Public Types | |
enum | CreatorStatus { Success = 0, ApplicationFailure, InfrastructureFailure, CreatorNotRun } |
Public Member Functions | |
BranchEntryDescription (ProductID const &pid, CreatorStatus const &status) | |
BranchEntryDescription () | |
std::auto_ptr< EntryDescription > | convertToEntryDescription () 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< ProductID > | parents_ |
ProductID | productID_ |
CreatorStatus | status_ |
Definition at line 31 of file BranchEntryDescription.h.
Definition at line 32 of file BranchEntryDescription.h.
00032 { Success = 0, 00033 ApplicationFailure, 00034 InfrastructureFailure, 00035 CreatorNotRun };
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] |
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 }
unsigned int edm::BranchEntryDescription::cid_ [private] |
Definition at line 58 of file BranchEntryDescription.h.
bool edm::BranchEntryDescription::isPresent_ [private] |
std::vector<ProductID> edm::BranchEntryDescription::parents_ [private] |