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::Event Class Reference

#include <Event.h>

Inheritance diagram for fwlite::Event:
fwlite::EventBase edm::EventBase

Public Member Functions

virtual bool atEnd () const
 
void draw (Option_t *opt)
 Properly setup for edm::Ref, etc and then call TTree method. More...
 
Long64_t draw (char const *varexp, const TCut &selection, Option_t *option="", Long64_t nentries=1000000000, Long64_t firstentry=0)
 
Long64_t draw (char const *varexp, char const *selection, Option_t *option="", Long64_t nentries=1000000000, Long64_t firstentry=0)
 
 Event (TFile *iFile)
 
virtual edm::EventAuxiliary const & eventAuxiliary () const
 
std::vector
< edm::BranchDescription >
const & 
getBranchDescriptions () const
 
virtual std::string const getBranchNameFor (std::type_info const &, char const *iModuleLabel, char const *iProductInstanceLabel, char const *iProcessName) const
 Return the branch name in the TFile which contains the data. More...
 
virtual bool getByLabel (std::type_info const &, char const *, char const *, char const *, void *) const
 This function should only be called by fwlite::Handle<> More...
 
virtual edm::WrapperBase const * getByProductID (edm::ProductID const &) const
 
fwlite::LuminosityBlock const & getLuminosityBlock () const
 
std::vector< std::string > const & getProcessHistory () const
 
fwlite::Run const & getRun () const
 
TFile * getTFile () const
 
edm::WrapperBase const * getThinnedProduct (edm::ProductID const &pid, unsigned int &key) const
 
void getThinnedProducts (edm::ProductID const &pid, std::vector< edm::WrapperBase const * > &foundContainers, std::vector< unsigned int > &keys) const
 
Long64_t indexFromEventId (edm::RunNumber_t run, edm::LuminosityBlockNumber_t lumi, edm::EventNumber_t event)
 Find index of given event-id. More...
 
bool isValid () const
 
 operator bool () const
 
Event const & operator++ ()
 Advance to next event in the TFile. More...
 
virtual edm::ProcessHistory const & processHistory () const
 
Long64_t scan (char const *varexp="", char const *selection="", Option_t *option="", Long64_t nentries=1000000000, Long64_t firstentry=0)
 
Long64_t size () const
 Returns number of events in the file. More...
 
bool to (Long64_t iIndex)
 Go to the event at index iIndex. More...
 
bool to (const edm::EventID &id)
 Go to event by Run & Event number. More...
 
bool to (edm::RunNumber_t run, edm::EventNumber_t event)
 
bool to (edm::RunNumber_t run, edm::LuminosityBlockNumber_t lumi, edm::EventNumber_t event)
 
Event const & toBegin ()
 Go to the very first Event. More...
 
virtual edm::TriggerNames const & triggerNames (edm::TriggerResults const &triggerResults) const
 
virtual edm::TriggerResultsByName triggerResultsByName (std::string const &process) const
 
virtual ~Event ()
 
- Public Member Functions inherited from fwlite::EventBase
 EventBase ()
 
virtual Long64_t fileIndex () const
 
virtual Long64_t secondaryFileIndex () const
 
virtual ~EventBase ()
 
- Public Member Functions inherited from edm::EventBase
int bunchCrossing () const
 
 EventBase ()
 
edm::EventAuxiliary::ExperimentType experimentType () const
 
template<typename T >
bool get (ProductID const &, Handle< T > &) const
 
template<typename T >
bool getByLabel (InputTag const &, Handle< T > &) const
 
template<>
bool getByLabel (edm::InputTag const &tag, Handle< FWGenericObject > &result) const
 Specialize the getByLabel method to work with a Handle<FWGenericObject> More...
 
edm::EventID id () const
 
bool isRealData () const
 
edm::LuminosityBlockNumber_t luminosityBlock () const
 
int orbitNumber () const
 
edm::Timestamp time () const
 

Static Public Member Functions

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

Private Member Functions

 Event (Event const &)
 
void fillParameterSetRegistry () const
 
edm::ProcessHistory const & history () const
 
Event const & operator= (Event const &)
 
void setGetter (std::shared_ptr< edm::EDProductGetter const > getter)
 
void updateAux (Long_t eventIndex) const
 

Private Attributes

edm::EventAuxiliary aux_
 
TBranch * auxBranch_
 
fwlite::BranchMapReader branchMap_
 
fwlite::DataGetterHelper dataHelper_
 
EntryFinder entryFinder_
 
TTree * eventHistoryTree_
 
std::vector
< edm::EventProcessHistoryID
eventProcessHistoryIDs_
 
TFile * file_
 
int fileVersion_
 
edm::ProcessHistoryMap historyMap_
 
std::vector< char const * > labels_
 
std::shared_ptr
< fwlite::LuminosityBlock
lumi_
 
bool parameterSetRegistryFilled_
 
edm::EventAuxiliary const * pAux_
 
edm::EventAux const * pOldAux_
 
std::vector< std::string > procHistoryNames_
 
std::shared_ptr< fwlite::Runrun_
 
std::shared_ptr< RunFactoryrunFactory_
 

Friends

class ChainEvent
 
class EventHistoryGetter
 
class internal::ProductGetter
 

Additional Inherited Members

- Static Protected Member Functions inherited from edm::EventBase
static TriggerNames const * triggerNames_ (edm::TriggerResults const &triggerResults)
 

Detailed Description

Definition at line 84 of file Event.h.

Constructor & Destructor Documentation

Event::Event ( TFile *  iFile)

Definition at line 111 of file Event.cc.

Event::~Event ( )
virtual

Definition at line 171 of file Event.cc.

fwlite::Event::Event ( Event const &  )
private

Member Function Documentation

bool Event::atEnd ( ) const
virtual

Implements fwlite::EventBase.

Definition at line 283 of file Event.cc.

Referenced by FWHLTTriggerTableView::fillAverageAcceptFractions(), and main().

void Event::draw ( Option_t *  opt)

Properly setup for edm::Ref, etc and then call TTree method.

Definition at line 248 of file Event.cc.

Long64_t Event::draw ( char const *  varexp,
const TCut &  selection,
Option_t *  option = "",
Long64_t  nentries = 1000000000,
Long64_t  firstentry = 0 
)

Definition at line 252 of file Event.cc.

Long64_t Event::draw ( char const *  varexp,
char const *  selection,
Option_t *  option = "",
Long64_t  nentries = 1000000000,
Long64_t  firstentry = 0 
)

Definition at line 256 of file Event.cc.

edm::EventAuxiliary const & Event::eventAuxiliary ( ) const
virtual

Implements edm::EventBase.

Definition at line 323 of file Event.cc.

void Event::fillParameterSetRegistry ( ) const
private

Definition at line 441 of file Event.cc.

std::vector<edm::BranchDescription> const& fwlite::Event::getBranchDescriptions ( ) const
inline

Definition at line 137 of file Event.h.

std::string const Event::getBranchNameFor ( std::type_info const &  iInfo,
char const *  iModuleLabel,
char const *  iProductInstanceLabel,
char const *  iProcessName 
) const
virtual

Return the branch name in the TFile which contains the data.

Implements fwlite::EventBase.

Definition at line 301 of file Event.cc.

bool Event::getByLabel ( std::type_info const &  iInfo,
char const *  iModuleLabel,
char const *  iProductInstanceLabel,
char const *  iProcessLabel,
void *  oData 
) const
virtual

This function should only be called by fwlite::Handle<>

Implements fwlite::EventBase.

Definition at line 309 of file Event.cc.

edm::WrapperBase const * Event::getByProductID ( edm::ProductID const &  iID) const
virtual

Implements fwlite::EventBase.

Definition at line 405 of file Event.cc.

fwlite::LuminosityBlock const & Event::getLuminosityBlock ( ) const

Definition at line 524 of file Event.cc.

Referenced by main().

std::vector< std::string > const & Event::getProcessHistory ( ) const

Definition at line 290 of file Event.cc.

fwlite::Run const & Event::getRun ( ) const

Definition at line 538 of file Event.cc.

Referenced by FWL1TriggerTableView::fillTable(), and main().

TFile* fwlite::Event::getTFile ( ) const
inline

Definition at line 141 of file Event.h.

edm::WrapperBase const * Event::getThinnedProduct ( edm::ProductID const &  pid,
unsigned int &  key 
) const

Definition at line 411 of file Event.cc.

void Event::getThinnedProducts ( edm::ProductID const &  pid,
std::vector< edm::WrapperBase const * > &  foundContainers,
std::vector< unsigned int > &  keys 
) const

Definition at line 417 of file Event.cc.

const edm::ProcessHistory & Event::history ( ) const
private

Definition at line 341 of file Event.cc.

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

Long64_t Event::indexFromEventId ( edm::RunNumber_t  run,
edm::LuminosityBlockNumber_t  lumi,
edm::EventNumber_t  event 
)

Find index of given event-id.

Definition at line 203 of file Event.cc.

bool Event::isValid ( void  ) const

Definition at line 272 of file Event.cc.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

Event::operator bool ( ) const

Definition at line 278 of file Event.cc.

Event const & Event::operator++ ( )
virtual

Advance to next event in the TFile.

Implements fwlite::EventBase.

Definition at line 194 of file Event.cc.

Event const& fwlite::Event::operator= ( Event const &  )
private
virtual edm::ProcessHistory const& fwlite::Event::processHistory ( ) const
inlinevirtual

Implements edm::EventBase.

Definition at line 155 of file Event.h.

Long64_t Event::scan ( char const *  varexp = "",
char const *  selection = "",
Option_t *  option = "",
Long64_t  nentries = 1000000000,
Long64_t  firstentry = 0 
)

Definition at line 260 of file Event.cc.

void fwlite::Event::setGetter ( std::shared_ptr< edm::EDProductGetter const >  getter)
inlineprivate

Definition at line 176 of file Event.h.

Long64_t Event::size ( void  ) const

Returns number of events in the file.

Definition at line 267 of file Event.cc.

Referenced by FWHLTTriggerTableView::fillAverageAcceptFractions().

void Event::throwProductNotFoundException ( std::type_info const &  iType,
char const *  iModule,
char const *  iProduct,
char const *  iProcess 
)
static

Definition at line 516 of file Event.cc.

bool Event::to ( Long64_t  iIndex)

Go to the event at index iIndex.

Definition at line 210 of file Event.cc.

Referenced by FWHLTTriggerTableView::fillAverageAcceptFractions().

bool Event::to ( const edm::EventID id)

Go to event by Run & Event number.

Definition at line 235 of file Event.cc.

bool Event::to ( edm::RunNumber_t  run,
edm::EventNumber_t  event 
)

Definition at line 220 of file Event.cc.

bool Event::to ( edm::RunNumber_t  run,
edm::LuminosityBlockNumber_t  lumi,
edm::EventNumber_t  event 
)

Definition at line 225 of file Event.cc.

Event const & Event::toBegin ( )
virtual

Go to the very first Event.

Implements fwlite::EventBase.

Definition at line 240 of file Event.cc.

Referenced by FWHLTTriggerTableView::fillAverageAcceptFractions(), and main().

edm::TriggerNames const & Event::triggerNames ( edm::TriggerResults const &  triggerResults) const
virtual

Implements edm::EventBase.

Definition at line 425 of file Event.cc.

Referenced by FWHLTTriggerTableView::fillAverageAcceptFractions().

edm::TriggerResultsByName Event::triggerResultsByName ( std::string const &  process) const
virtual

Implements edm::EventBase.

Definition at line 496 of file Event.cc.

void Event::updateAux ( Long_t  eventIndex) const
private

Definition at line 330 of file Event.cc.

Friends And Related Function Documentation

friend class ChainEvent
friend

Definition at line 166 of file Event.h.

friend class EventHistoryGetter
friend

Definition at line 167 of file Event.h.

friend class internal::ProductGetter
friend

Definition at line 165 of file Event.h.

Member Data Documentation

edm::EventAuxiliary fwlite::Event::aux_
mutableprivate

Definition at line 192 of file Event.h.

TBranch* fwlite::Event::auxBranch_
private

Definition at line 196 of file Event.h.

fwlite::BranchMapReader fwlite::Event::branchMap_
mutableprivate

Definition at line 185 of file Event.h.

fwlite::DataGetterHelper fwlite::Event::dataHelper_
private

Definition at line 200 of file Event.h.

EntryFinder fwlite::Event::entryFinder_
mutableprivate

Definition at line 193 of file Event.h.

TTree* fwlite::Event::eventHistoryTree_
private

Definition at line 181 of file Event.h.

std::vector<edm::EventProcessHistoryID> fwlite::Event::eventProcessHistoryIDs_
mutableprivate

Definition at line 190 of file Event.h.

TFile* fwlite::Event::file_
mutableprivate

Definition at line 179 of file Event.h.

int fwlite::Event::fileVersion_
private

Definition at line 197 of file Event.h.

edm::ProcessHistoryMap fwlite::Event::historyMap_
mutableprivate

Definition at line 189 of file Event.h.

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

Definition at line 188 of file Event.h.

std::shared_ptr<fwlite::LuminosityBlock> fwlite::Event::lumi_
mutableprivate

Definition at line 183 of file Event.h.

bool fwlite::Event::parameterSetRegistryFilled_
mutableprivate

Definition at line 198 of file Event.h.

edm::EventAuxiliary const* fwlite::Event::pAux_
private

Definition at line 194 of file Event.h.

edm::EventAux const* fwlite::Event::pOldAux_
private

Definition at line 195 of file Event.h.

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

Definition at line 191 of file Event.h.

std::shared_ptr<fwlite::Run> fwlite::Event::run_
mutableprivate

Definition at line 184 of file Event.h.

std::shared_ptr<RunFactory> fwlite::Event::runFactory_
mutableprivate

Definition at line 201 of file Event.h.