CMS 3D CMS Logo

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

#include <FWFileEntry.h>

Classes

struct  Filter
 

Public Member Functions

void closeFile ()
 
fwlite::Eventevent ()
 
TFile * file ()
 
std::list< Filter * > & filters ()
 
int firstSelectedEvent ()
 
 FWFileEntry (const std::string &name, bool checkVersion)
 
FWTEventListglobalSelection ()
 
bool hasActiveFilters ()
 
bool hasSelectedEvents ()
 
bool isEventSelected (int event)
 
int lastEvent ()
 
int lastSelectedEvent ()
 
void needUpdate ()
 
int nextSelectedEvent (int event)
 
void openFile (bool)
 
int previousSelectedEvent (int event)
 
TTree * tree ()
 
void updateFilters (const FWEventItemsManager *eiMng, bool isOR)
 
virtual ~FWFileEntry ()
 

Private Member Functions

bool filterEventsWithCustomParser (Filter *filter)
 
 FWFileEntry (const FWFileEntry &)
 
const FWFileEntryoperator= (const FWFileEntry &)
 
void runFilter (Filter *fe, const FWEventItemsManager *eiMng)
 

Private Attributes

fwlite::Eventm_event
 
TTree * m_eventTree
 
TFile * m_file
 
std::list< Filter * > m_filterEntries
 
FWTEventListm_globalEventList
 
std::string m_name
 
bool m_needUpdate
 

Detailed Description

Definition at line 34 of file FWFileEntry.h.

Constructor & Destructor Documentation

FWFileEntry::FWFileEntry ( const std::string &  name,
bool  checkVersion 
)

Definition at line 24 of file FWFileEntry.cc.

FWFileEntry::~FWFileEntry ( )
virtual

Definition at line 31 of file FWFileEntry.cc.

FWFileEntry::FWFileEntry ( const FWFileEntry )
private

Member Function Documentation

void FWFileEntry::closeFile ( )

Definition at line 123 of file FWFileEntry.cc.

fwlite::Event* FWFileEntry::event ( )
inline

Definition at line 58 of file FWFileEntry.h.

References m_event.

58 { return m_event; }
fwlite::Event * m_event
Definition: FWFileEntry.h:94
TFile* FWFileEntry::file ( )
inline

Definition at line 57 of file FWFileEntry.h.

References m_file.

57 { return m_file; }
TFile * m_file
Definition: FWFileEntry.h:92
bool FWFileEntry::filterEventsWithCustomParser ( Filter filter)
private

Definition at line 381 of file FWFileEntry.cc.

std::list<Filter*>& FWFileEntry::filters ( )
inline

Definition at line 62 of file FWFileEntry.h.

References m_filterEntries.

62 { return m_filterEntries; }
std::list< Filter * > m_filterEntries
Definition: FWFileEntry.h:98
int FWFileEntry::firstSelectedEvent ( )

Definition at line 149 of file FWFileEntry.cc.

FWTEventList* FWFileEntry::globalSelection ( )
inline

Definition at line 60 of file FWFileEntry.h.

References m_globalEventList.

60 { return m_globalEventList; }
FWTEventList * m_globalEventList
Definition: FWFileEntry.h:99
bool FWFileEntry::hasActiveFilters ( )

Definition at line 202 of file FWFileEntry.cc.

bool FWFileEntry::hasSelectedEvents ( )

Definition at line 144 of file FWFileEntry.cc.

bool FWFileEntry::isEventSelected ( int  event)

Definition at line 138 of file FWFileEntry.cc.

int FWFileEntry::lastEvent ( )
inline

Definition at line 76 of file FWFileEntry.h.

References m_eventTree.

76 { return m_eventTree->GetEntries() -1; }
TTree * m_eventTree
Definition: FWFileEntry.h:93
int FWFileEntry::lastSelectedEvent ( )

Definition at line 161 of file FWFileEntry.cc.

void FWFileEntry::needUpdate ( )
inline

Definition at line 81 of file FWFileEntry.h.

References m_needUpdate.

81 { m_needUpdate = true; }
bool m_needUpdate
Definition: FWFileEntry.h:96
int FWFileEntry::nextSelectedEvent ( int  event)

Definition at line 169 of file FWFileEntry.cc.

void FWFileEntry::openFile ( bool  checkVersion)

Definition at line 39 of file FWFileEntry.cc.

const FWFileEntry& FWFileEntry::operator= ( const FWFileEntry )
private
int FWFileEntry::previousSelectedEvent ( int  event)

Definition at line 184 of file FWFileEntry.cc.

void FWFileEntry::runFilter ( Filter fe,
const FWEventItemsManager eiMng 
)
private

Definition at line 259 of file FWFileEntry.cc.

TTree* FWFileEntry::tree ( )
inline
void FWFileEntry::updateFilters ( const FWEventItemsManager eiMng,
bool  isOR 
)

Definition at line 214 of file FWFileEntry.cc.

Member Data Documentation

fwlite::Event* FWFileEntry::m_event
private

Definition at line 94 of file FWFileEntry.h.

Referenced by event().

TTree* FWFileEntry::m_eventTree
private

Definition at line 93 of file FWFileEntry.h.

Referenced by lastEvent(), and tree().

TFile* FWFileEntry::m_file
private

Definition at line 92 of file FWFileEntry.h.

Referenced by file().

std::list<Filter*> FWFileEntry::m_filterEntries
private

Definition at line 98 of file FWFileEntry.h.

Referenced by filters().

FWTEventList* FWFileEntry::m_globalEventList
private

Definition at line 99 of file FWFileEntry.h.

Referenced by globalSelection().

std::string FWFileEntry::m_name
private

Definition at line 91 of file FWFileEntry.h.

bool FWFileEntry::m_needUpdate
private

Definition at line 96 of file FWFileEntry.h.

Referenced by needUpdate().