CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
fwlite::LuminosityBlock Class Reference

#include <LuminosityBlock.h>

Inheritance diagram for fwlite::LuminosityBlock:
fwlite::LuminosityBlockBase edm::LuminosityBlockBase

Public Member Functions

virtual bool atEnd () const
 
std::vector
< edm::BranchDescription >
const & 
getBranchDescriptions () const
 
virtual std::string const getBranchNameFor (std::type_info const &, char const *, char const *, char const *) const
 
virtual bool getByLabel (std::type_info const &, char const *, char const *, char const *, void *) const
 
virtual bool getByLabel (std::type_info const &, char const *, char const *, char const *, edm::WrapperHolder &) const
 
edm::WrapperHolder getByProductID (edm::ProductID const &) const
 
fwlite::Run const & getRun () const
 
bool isValid () const
 
 LuminosityBlock (TFile *iFile)
 
 LuminosityBlock (boost::shared_ptr< BranchMapReader > branchMap, boost::shared_ptr< RunFactory > runFactory)
 
virtual
edm::LuminosityBlockAuxiliary
const & 
luminosityBlockAuxiliary () const
 
 operator bool () const
 
const LuminosityBlockoperator++ ()
 
Long64_t size () const
 
bool to (edm::RunNumber_t run, edm::LuminosityBlockNumber_t lumi)
 Go to event by Run & LuminosityBlock number. More...
 
const LuminosityBlocktoBegin ()
 
virtual ~LuminosityBlock ()
 
- Public Member Functions inherited from fwlite::LuminosityBlockBase
virtual Long64_t fileIndex () const
 
 LuminosityBlockBase ()
 
virtual Long64_t secondaryFileIndex () const
 
virtual ~LuminosityBlockBase ()
 
- Public Member Functions inherited from edm::LuminosityBlockBase
Timestamp const & beginTime () const
 
Timestamp const & endTime () const
 
template<typename PROD >
bool getByLabel (InputTag const &tag, Handle< PROD > &result) const
 same as above, but using the InputTag class More...
 
template<class T >
bool getByLabel (const InputTag &tag, Handle< T > &result) const
 
LuminosityBlockID id () const
 
LuminosityBlockNumber_t luminosityBlock () const
 
 LuminosityBlockBase ()
 
RunNumber_t run () const
 

Static Public Member Functions

static void throwProductNotFoundException (std::type_info const &, char const *, char const *, char const *)
 

Private Member Functions

const edm::ProcessHistoryhistory () const
 
 LuminosityBlock (const LuminosityBlock &)
 
const LuminosityBlockoperator= (const LuminosityBlock &)
 
void updateAux (Long_t lumiIndex) const
 

Private Attributes

edm::LuminosityBlockAuxiliary aux_
 
TBranch * auxBranch_
 
boost::shared_ptr
< BranchMapReader
branchMap_
 
DataGetterHelper dataHelper_
 
EntryFinder entryFinder_
 
int fileVersion_
 
edm::ProcessHistoryMap historyMap_
 
std::vector< char const * > labels_
 
edm::LuminosityBlockAuxiliarypAux_
 
edm::LuminosityBlockAuxpOldAux_
 
std::vector< std::string > procHistoryNames_
 
boost::shared_ptr< fwlite::Runrun_
 
boost::shared_ptr< RunFactoryrunFactory_
 

Friends

class internal::ProductGetter
 
class LumiHistoryGetter
 

Detailed Description

Definition at line 58 of file LuminosityBlock.h.

Constructor & Destructor Documentation

LuminosityBlock::LuminosityBlock ( TFile *  iFile)

Definition at line 45 of file LuminosityBlock.cc.

References auxBranch_, branchMap_, edm::BranchTypeToAuxiliaryBranchName(), edm::hlt::Exception, fileVersion_, edm::InLumi, edm::poolNames::luminosityBlockTreeName(), pAux_, and runFactory_.

45  :
46  branchMap_(new BranchMapReader(iFile)),
47  pAux_(&aux_),
48  pOldAux_(0),
49  fileVersion_(-1),
50  dataHelper_(branchMap_->getLuminosityBlockTree(),
51  boost::shared_ptr<HistoryGetterBase>(new LumiHistoryGetter(this)),
52  branchMap_)
53  {
54  if(0==iFile) {
55  throw cms::Exception("NoFile")<<"The TFile pointer passed to the constructor was null";
56  }
57 
58  if(0==branchMap_->getLuminosityBlockTree()) {
59  throw cms::Exception("NoLumiTree")<<"The TFile contains no TTree named " <<edm::poolNames::luminosityBlockTreeName();
60  }
61  //need to know file version in order to determine how to read the basic product info
62  fileVersion_ = branchMap_->getFileVersion(iFile);
63 
64  //got this logic from IOPool/Input/src/RootFile.cc
65 
66  TTree* luminosityBlockTree = branchMap_->getLuminosityBlockTree();
67  if(fileVersion_ >= 3) {
68  auxBranch_ = luminosityBlockTree->GetBranch(edm::BranchTypeToAuxiliaryBranchName(edm::InLumi).c_str());
69  if(0==auxBranch_) {
70  throw cms::Exception("NoLuminosityBlockAuxilliary")<<"The TTree "
72  <<" does not contain a branch named 'LuminosityBlockAuxiliary'";
73  }
74  auxBranch_->SetAddress(&pAux_);
75  } else {
76  throw cms::Exception("OldFileVersion")<<"The FWLite Luminosity Block code des not support old file versions";
77 // This code commented from fwlite::Event. May be portable if needed.
78 // pOldAux_ = new edm::EventAux();
79 // auxBranch_ = luminosityBlockTree->GetBranch(edm::BranchTypeToAuxBranchName(edm::InLuminosityBlock).c_str());
80 // if(0==auxBranch_) {
81 // throw cms::Exception("NoLuminosityBlockAux")<<"The TTree "
82 // <<edm::poolNames::luminosityBlockTreeName()
83 // <<" does not contain a branch named 'LuminosityBlockAux'";
84 // }
85 // auxBranch_->SetAddress(&pOldAux_);
86  }
87  branchMap_->updateLuminosityBlock(0);
88  runFactory_ = boost::shared_ptr<RunFactory>(new RunFactory());
89 }
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const &branchType)
Definition: BranchType.cc:114
DataGetterHelper dataHelper_
edm::LuminosityBlockAuxiliary aux_
std::string const & luminosityBlockTreeName()
Definition: BranchType.cc:265
edm::LuminosityBlockAux * pOldAux_
boost::shared_ptr< RunFactory > runFactory_
edm::LuminosityBlockAuxiliary * pAux_
friend class LumiHistoryGetter
boost::shared_ptr< BranchMapReader > branchMap_
LuminosityBlock::LuminosityBlock ( boost::shared_ptr< BranchMapReader branchMap,
boost::shared_ptr< RunFactory runFactory 
)

Definition at line 91 of file LuminosityBlock.cc.

References auxBranch_, branchMap_, edm::BranchTypeToAuxiliaryBranchName(), edm::hlt::Exception, fileVersion_, edm::InLumi, edm::poolNames::luminosityBlockTreeName(), and pAux_.

91  :
92  branchMap_(branchMap),
93  pAux_(&aux_),
94  pOldAux_(0),
95  fileVersion_(-1),
96  dataHelper_(branchMap_->getLuminosityBlockTree(),
97  boost::shared_ptr<HistoryGetterBase>(new LumiHistoryGetter(this)),
98  branchMap_),
99  runFactory_(runFactory)
100  {
101 
102  if(0==branchMap_->getLuminosityBlockTree()) {
103  throw cms::Exception("NoLumiTree")<<"The TFile contains no TTree named " <<edm::poolNames::luminosityBlockTreeName();
104  }
105  //need to know file version in order to determine how to read the basic event info
106  fileVersion_ = branchMap_->getFileVersion();
107  //got this logic from IOPool/Input/src/RootFile.cc
108 
109  TTree* luminosityBlockTree = branchMap_->getLuminosityBlockTree();
110  if(fileVersion_ >= 3) {
111  auxBranch_ = luminosityBlockTree->GetBranch(edm::BranchTypeToAuxiliaryBranchName(edm::InLumi).c_str());
112  if(0==auxBranch_) {
113  throw cms::Exception("NoLuminosityBlockAuxilliary")<<"The TTree "
115  <<" does not contain a branch named 'LuminosityBlockAuxiliary'";
116  }
117  auxBranch_->SetAddress(&pAux_);
118  } else {
119  throw cms::Exception("OldFileVersion")<<"The FWLite Luminosity Block code des not support old file versions";
120 /* pOldAux_ = new edm::EventAux();
121  auxBranch_ = luminosityBlockTree->GetBranch(edm::BranchTypeToAuxBranchName(edm::InLuminosityBlock).c_str());
122  if(0==auxBranch_) {
123  throw cms::Exception("NoLuminosityBlockAux")<<"The TTree "
124  <<edm::poolNames::luminosityBlockTreeName()
125  <<" does not contain a branch named 'LuminosityBlockAux'";
126  }
127  auxBranch_->SetAddress(&pOldAux_);*/
128  }
129  branchMap_->updateLuminosityBlock(0);
130 
131 // if(fileVersion_ >= 7) {
132 // eventHistoryTree_ = dynamic_cast<TTree*>(iFile->Get(edm::poolNames::eventHistoryTreeName().c_str()));
133 // }
134 
135 }
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const &branchType)
Definition: BranchType.cc:114
DataGetterHelper dataHelper_
edm::LuminosityBlockAuxiliary aux_
std::string const & luminosityBlockTreeName()
Definition: BranchType.cc:265
edm::LuminosityBlockAux * pOldAux_
boost::shared_ptr< RunFactory > runFactory_
edm::LuminosityBlockAuxiliary * pAux_
friend class LumiHistoryGetter
boost::shared_ptr< BranchMapReader > branchMap_
LuminosityBlock::~LuminosityBlock ( )
virtual

Definition at line 137 of file LuminosityBlock.cc.

References labels_, and pOldAux_.

138 {
139  for(std::vector<char const*>::iterator it = labels_.begin(), itEnd=labels_.end();
140  it != itEnd;
141  ++it) {
142  delete [] *it;
143  }
144  delete pOldAux_;
145 }
edm::LuminosityBlockAux * pOldAux_
std::vector< char const * > labels_
fwlite::LuminosityBlock::LuminosityBlock ( const LuminosityBlock )
private

Member Function Documentation

bool LuminosityBlock::atEnd ( ) const
virtual

Implements fwlite::LuminosityBlockBase.

Definition at line 204 of file LuminosityBlock.cc.

References branchMap_, or, and size().

Referenced by getByLabel(), and main().

205 {
206  Long_t luminosityBlockIndex = branchMap_->getLuminosityBlockEntry();
207  return luminosityBlockIndex==-1 or luminosityBlockIndex == size();
208 }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
Long64_t size() const
boost::shared_ptr< BranchMapReader > branchMap_
std::vector<edm::BranchDescription> const& fwlite::LuminosityBlock::getBranchDescriptions ( ) const
inline

Definition at line 96 of file LuminosityBlock.h.

References branchMap_.

96  {
97  return branchMap_->getBranchDescriptions();
98  }
boost::shared_ptr< BranchMapReader > branchMap_
std::string const LuminosityBlock::getBranchNameFor ( std::type_info const &  iInfo,
char const *  iModuleLabel,
char const *  iProductInstanceLabel,
char const *  iProcessLabel 
) const
virtual

Definition at line 212 of file LuminosityBlock.cc.

References dataHelper_, and fwlite::DataGetterHelper::getBranchNameFor().

216 {
217  return dataHelper_.getBranchNameFor(iInfo, iModuleLabel, iProductInstanceLabel, iProcessLabel);
218 }
DataGetterHelper dataHelper_
virtual std::string const getBranchNameFor(std::type_info const &, char const *, char const *, char const *) const
bool LuminosityBlock::getByLabel ( std::type_info const &  iInfo,
char const *  iModuleLabel,
char const *  iProductInstanceLabel,
char const *  iProcessLabel,
void *  oData 
) const
virtual

Implements fwlite::LuminosityBlockBase.

Definition at line 222 of file LuminosityBlock.cc.

References atEnd(), branchMap_, dataHelper_, edm::hlt::Exception, and fwlite::DataGetterHelper::getByLabel().

227  {
228  if(atEnd()) {
229  throw cms::Exception("OffEnd")<<"You have requested data past the last lumi";
230  }
231  Long_t lumiIndex = branchMap_->getLuminosityBlockEntry();
232  return dataHelper_.getByLabel(iInfo, iModuleLabel, iProductInstanceLabel, iProcessLabel, oData, lumiIndex);
233 }
DataGetterHelper dataHelper_
virtual bool atEnd() const
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *, Long_t) const
boost::shared_ptr< BranchMapReader > branchMap_
bool LuminosityBlock::getByLabel ( std::type_info const &  iInfo,
char const *  iModuleLabel,
char const *  iProductInstanceLabel,
char const *  iProcessLabel,
edm::WrapperHolder holder 
) const
virtual

Implements fwlite::LuminosityBlockBase.

Definition at line 236 of file LuminosityBlock.cc.

References atEnd(), branchMap_, dataHelper_, edm::hlt::Exception, and fwlite::DataGetterHelper::getByLabel().

240  {
241  if(atEnd()) {
242  throw cms::Exception("OffEnd") << "You have requested data past the last lumi";
243  }
244  Long_t lumiIndex = branchMap_->getLuminosityBlockEntry();
245  return dataHelper_.getByLabel(iInfo, iModuleLabel, iProductInstanceLabel, iProcessLabel, holder, lumiIndex);
246 }
DataGetterHelper dataHelper_
virtual bool atEnd() const
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *, Long_t) const
boost::shared_ptr< BranchMapReader > branchMap_
edm::WrapperHolder LuminosityBlock::getByProductID ( edm::ProductID const &  iID) const

Definition at line 334 of file LuminosityBlock.cc.

References branchMap_, dataHelper_, and fwlite::DataGetterHelper::getByProductID().

334  {
335  Long_t luminosityBlockIndex = branchMap_->getLuminosityBlockEntry();
336  return dataHelper_.getByProductID(iID, luminosityBlockIndex);
337 }
DataGetterHelper dataHelper_
edm::WrapperHolder getByProductID(edm::ProductID const &, Long_t) const
boost::shared_ptr< BranchMapReader > branchMap_
fwlite::Run const & LuminosityBlock::getRun ( ) const

Definition at line 359 of file LuminosityBlock.cc.

References branchMap_, luminosityBlockAuxiliary(), edm::LuminosityBlockAuxiliary::run(), edm::LuminosityBlockBase::run(), run_, and runFactory_.

Referenced by main().

359  {
360  run_ = runFactory_->makeRun(boost::shared_ptr<BranchMapReader>(&*branchMap_,NoDelete()));
362  run_->to(run);
363  return *run_;
364 }
boost::shared_ptr< fwlite::Run > run_
boost::shared_ptr< RunFactory > runFactory_
RunNumber_t run() const
unsigned int RunNumber_t
Definition: EventRange.h:32
virtual edm::LuminosityBlockAuxiliary const & luminosityBlockAuxiliary() const
boost::shared_ptr< BranchMapReader > branchMap_
const edm::ProcessHistory & LuminosityBlock::history ( ) const
private

Definition at line 270 of file LuminosityBlock.cc.

References aux_, b, branchMap_, alignCSCRings::e, edm::hlt::Exception, fileVersion_, historyMap_, i, edm::poolNames::metaDataTreeName(), edm::poolNames::processHistoryBranchName(), edm::LuminosityBlockAuxiliary::processHistoryID(), edm::poolNames::processHistoryMapBranchName(), procHistoryNames_, and updateAux().

Referenced by fwlite::LumiHistoryGetter::history().

271 {
272  edm::ProcessHistoryID processHistoryID;
273 
274  bool newFormat = false;//(fileVersion_ >= 5);
275 
276  Long_t lumiIndex = branchMap_->getLuminosityBlockEntry();
277  updateAux(lumiIndex);
278  if (!newFormat) {
279  processHistoryID = aux_.processHistoryID();
280  }
281 
282  if(historyMap_.empty() || newFormat) {
283  procHistoryNames_.clear();
284  TTree *meta = dynamic_cast<TTree*>(branchMap_->getFile()->Get(edm::poolNames::metaDataTreeName().c_str()));
285  if(0==meta) {
286  throw cms::Exception("NoMetaTree")<<"The TFile does not appear to contain a TTree named "
288  }
289  if (historyMap_.empty()) {
290  if (fileVersion_ < 11) {
292  TBranch* b = meta->GetBranch(edm::poolNames::processHistoryMapBranchName().c_str());
293  b->SetAddress(&pPhm);
294  b->GetEntry(0);
295  } else {
296  edm::ProcessHistoryVector historyVector;
297  edm::ProcessHistoryVector* pPhv=&historyVector;
298  TBranch* b = meta->GetBranch(edm::poolNames::processHistoryBranchName().c_str());
299  b->SetAddress(&pPhv);
300  b->GetEntry(0);
301  for (edm::ProcessHistoryVector::const_iterator i = historyVector.begin(), e = historyVector.end();
302  i != e; ++i) {
303  historyMap_.insert(std::make_pair(i->id(), *i));
304  }
305  }
306  }
307 // if (newFormat) {
308 // if (fileVersion_ >= 7) {
309 // edm::History history;
310 // edm::History* pHistory = &history;
311 // TBranch* eventHistoryBranch = eventHistoryTree_->GetBranch(edm::poolNames::eventHistoryBranchName().c_str());
312 // if (!eventHistoryBranch)
313 // throw edm::Exception(edm::errors::FatalRootError)
314 // << "Failed to find history branch in event history tree";
315 // eventHistoryBranch->SetAddress(&pHistory);
316 // eventHistoryTree_->GetEntry(lumiIndex);
317 // processHistoryID = history.processHistoryID();
318 // } else {
319 // std::vector<edm::EventProcessHistoryID> *pEventProcessHistoryIDs = &eventProcessHistoryIDs_;
320 // TBranch* b = meta->GetBranch(edm::poolNames::eventHistoryBranchName().c_str());
321 // b->SetAddress(&pEventProcessHistoryIDs);
322 // b->GetEntry(0);
323 // edm::EventProcessHistoryID target(aux_.id(), edm::ProcessHistoryID());
324 // processHistoryID = std::lower_bound(eventProcessHistoryIDs_.begin(), eventProcessHistoryIDs_.end(), target)->processHistoryID_;
325 // }
326 // }
327 
328  }
329  return historyMap_[processHistoryID];
330 }
int i
Definition: DBlmapReader.cc:9
edm::LuminosityBlockAuxiliary aux_
ProcessHistoryID const & processHistoryID() const
ProcessHistoryRegistry::collection_type ProcessHistoryMap
std::string const & processHistoryMapBranchName()
Definition: BranchType.cc:192
std::vector< std::string > procHistoryNames_
ProcessHistoryRegistry::vector_type ProcessHistoryVector
std::string const & metaDataTreeName()
Definition: BranchType.cc:167
std::string const & processHistoryBranchName()
Definition: BranchType.cc:197
void updateAux(Long_t lumiIndex) const
double b
Definition: hdecay.h:120
edm::ProcessHistoryMap historyMap_
boost::shared_ptr< BranchMapReader > branchMap_
bool LuminosityBlock::isValid ( void  ) const

Definition at line 191 of file LuminosityBlock.cc.

References branchMap_, and size().

192 {
193  Long_t luminosityBlockIndex = branchMap_->getLuminosityBlockEntry();
194  return luminosityBlockIndex!=-1 and luminosityBlockIndex < size();
195 }
Long64_t size() const
boost::shared_ptr< BranchMapReader > branchMap_
edm::LuminosityBlockAuxiliary const & LuminosityBlock::luminosityBlockAuxiliary ( ) const
virtual

Implements edm::LuminosityBlockBase.

Definition at line 249 of file LuminosityBlock.cc.

References aux_, branchMap_, and updateAux().

Referenced by getRun().

250 {
251  Long_t luminosityBlockIndex = branchMap_->getLuminosityBlockEntry();
252  updateAux(luminosityBlockIndex);
253  return aux_;
254 }
edm::LuminosityBlockAuxiliary aux_
void updateAux(Long_t lumiIndex) const
boost::shared_ptr< BranchMapReader > branchMap_
LuminosityBlock::operator bool ( ) const

Definition at line 198 of file LuminosityBlock.cc.

199 {
200  return isValid();
201 }
const LuminosityBlock & LuminosityBlock::operator++ ( )
virtual

Implements fwlite::LuminosityBlockBase.

Definition at line 152 of file LuminosityBlock.cc.

References branchMap_, and size().

153 {
154  Long_t luminosityBlockIndex = branchMap_->getLuminosityBlockEntry();
155  if(luminosityBlockIndex < size())
156  {
157  branchMap_->updateLuminosityBlock(++luminosityBlockIndex);
158  }
159  return *this;
160 }
Long64_t size() const
boost::shared_ptr< BranchMapReader > branchMap_
const LuminosityBlock& fwlite::LuminosityBlock::operator= ( const LuminosityBlock )
private
Long64_t LuminosityBlock::size ( void  ) const

Definition at line 185 of file LuminosityBlock.cc.

References branchMap_.

Referenced by atEnd(), isValid(), and operator++().

186 {
187  return branchMap_->getLuminosityBlockTree()->GetEntries();
188 }
boost::shared_ptr< BranchMapReader > branchMap_
void LuminosityBlock::throwProductNotFoundException ( std::type_info const &  iType,
char const *  iModule,
char const *  iProduct,
char const *  iProcess 
)
static

Definition at line 344 of file LuminosityBlock.cc.

References edm::TypeID::className(), edm::hlt::Exception, and edm::errors::ProductNotFound.

345 {
346  edm::TypeID type(iType);
347  throw edm::Exception(edm::errors::ProductNotFound)<<"A branch was found for \n type ='"<<type.className()<<"'\n module='"<<iModule
348  <<"'\n productInstance='"<<((0!=iProduct)?iProduct:"")<<"'\n process='"<<((0!=iProcess)?iProcess:"")<<"'\n"
349  "but no data is available for this LuminosityBlock";
350 }
type
Definition: HCALResponse.h:22
bool LuminosityBlock::to ( edm::RunNumber_t  run,
edm::LuminosityBlockNumber_t  lumi 
)

Go to event by Run & LuminosityBlock number.

Definition at line 164 of file LuminosityBlock.cc.

References branchMap_, entryFinder_, fwlite::EntryFinder::fillIndex(), fwlite::EntryFinder::findLumi(), and fwlite::EntryFinder::invalidEntry.

165 {
168  if (entry == EntryFinder::invalidEntry) {
169  return false;
170  }
171  return branchMap_->updateLuminosityBlock(entry);
172 }
LuminosityBlockNumber_t luminosityBlock() const
edm::IndexIntoFile::EntryNumber_t EntryNumber_t
Definition: EntryFinder.h:34
std::pair< std::string, MonitorElement * > entry
Definition: ME_MAP.h:8
RunNumber_t run() const
void fillIndex(BranchMapReader const &branchMap)
Definition: EntryFinder.cc:108
static EntryNumber_t const invalidEntry
Definition: EntryFinder.h:40
boost::shared_ptr< BranchMapReader > branchMap_
EntryNumber_t findLumi(edm::RunNumber_t const &run, edm::LuminosityBlockNumber_t const &lumi) const
Definition: EntryFinder.cc:74
const LuminosityBlock & LuminosityBlock::toBegin ( )
virtual

Implements fwlite::LuminosityBlockBase.

Definition at line 175 of file LuminosityBlock.cc.

References branchMap_.

Referenced by main().

176 {
177  branchMap_->updateLuminosityBlock(0);
178  return *this;
179 }
boost::shared_ptr< BranchMapReader > branchMap_
void LuminosityBlock::updateAux ( Long_t  lumiIndex) const
private

Definition at line 257 of file LuminosityBlock.cc.

References aux_, auxBranch_, edm::conversion(), and pOldAux_.

Referenced by history(), and luminosityBlockAuxiliary().

258 {
259  if(auxBranch_->GetEntryNumber() != luminosityBlockIndex) {
260  auxBranch_->GetEntry(luminosityBlockIndex);
261  //handling dealing with old version
262  if(0 != pOldAux_) {
264  }
265  }
266 }
edm::LuminosityBlockAuxiliary aux_
edm::LuminosityBlockAux * pOldAux_
void conversion(EventAux const &from, EventAuxiliary &to)
Definition: EventAux.cc:9

Friends And Related Function Documentation

friend class internal::ProductGetter
friend

Definition at line 111 of file LuminosityBlock.h.

friend class LumiHistoryGetter
friend

Definition at line 112 of file LuminosityBlock.h.

Member Data Documentation

edm::LuminosityBlockAuxiliary fwlite::LuminosityBlock::aux_
mutableprivate

Definition at line 131 of file LuminosityBlock.h.

Referenced by history(), luminosityBlockAuxiliary(), and updateAux().

TBranch* fwlite::LuminosityBlock::auxBranch_
private

Definition at line 135 of file LuminosityBlock.h.

Referenced by LuminosityBlock(), and updateAux().

boost::shared_ptr<BranchMapReader> fwlite::LuminosityBlock::branchMap_
mutableprivate
DataGetterHelper fwlite::LuminosityBlock::dataHelper_
private

Definition at line 138 of file LuminosityBlock.h.

Referenced by getBranchNameFor(), getByLabel(), and getByProductID().

EntryFinder fwlite::LuminosityBlock::entryFinder_
mutableprivate

Definition at line 132 of file LuminosityBlock.h.

Referenced by to().

int fwlite::LuminosityBlock::fileVersion_
private

Definition at line 136 of file LuminosityBlock.h.

Referenced by history(), and LuminosityBlock().

edm::ProcessHistoryMap fwlite::LuminosityBlock::historyMap_
mutableprivate

Definition at line 129 of file LuminosityBlock.h.

Referenced by history().

std::vector<char const*> fwlite::LuminosityBlock::labels_
mutableprivate

Definition at line 128 of file LuminosityBlock.h.

Referenced by ~LuminosityBlock().

edm::LuminosityBlockAuxiliary* fwlite::LuminosityBlock::pAux_
private

Definition at line 133 of file LuminosityBlock.h.

Referenced by LuminosityBlock().

edm::LuminosityBlockAux* fwlite::LuminosityBlock::pOldAux_
private

Definition at line 134 of file LuminosityBlock.h.

Referenced by updateAux(), and ~LuminosityBlock().

std::vector<std::string> fwlite::LuminosityBlock::procHistoryNames_
mutableprivate

Definition at line 130 of file LuminosityBlock.h.

Referenced by history().

boost::shared_ptr<fwlite::Run> fwlite::LuminosityBlock::run_
mutableprivate

Definition at line 125 of file LuminosityBlock.h.

Referenced by getRun().

boost::shared_ptr<RunFactory> fwlite::LuminosityBlock::runFactory_
mutableprivate

Definition at line 139 of file LuminosityBlock.h.

Referenced by getRun(), and LuminosityBlock().