test
CMS 3D CMS Logo

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

#include <FWTSelectorToEventList.h>

Inheritance diagram for FWTSelectorToEventList:

Public Member Functions

 ClassDef (FWTSelectorToEventList, 0)
 
void ClearEventList ()
 
 FWTSelectorToEventList (TTree *tree, TEventList *evl, const char *sel)
 
TEventList * GetEventList () const
 
Bool_t GetOwnEventList () const
 
virtual Bool_t Process (Long64_t entry)
 
virtual Long64_t ProcessTree (Long64_t nentries=1000000000, Long64_t firstentry=0)
 
void SetOwnEventList (Bool_t o)
 
virtual ~FWTSelectorToEventList ()
 

Private Attributes

TEventList * fEvList
 
Bool_t fOwnEvList
 
TTreePlayer * fPlayer
 

Detailed Description

Definition at line 11 of file FWTSelectorToEventList.h.

Constructor & Destructor Documentation

FWTSelectorToEventList::FWTSelectorToEventList ( TTree *  tree,
TEventList *  evl,
const char *  sel 
)

Definition at line 28 of file FWTSelectorToEventList.cc.

References fPlayer.

30  :
31  TSelectorEntries(sel),
32  fEvList(evl),
33  fPlayer(new TTreePlayer),
34  fOwnEvList(kFALSE)
35 {
36  fPlayer->SetTree(tree);
37 }
FWTSelectorToEventList::~FWTSelectorToEventList ( )
virtual

Definition at line 40 of file FWTSelectorToEventList.cc.

References fEvList, fOwnEvList, and fPlayer.

41 {
42  delete fPlayer;
43  if (fOwnEvList)
44  delete fEvList;
45 }

Member Function Documentation

FWTSelectorToEventList::ClassDef ( FWTSelectorToEventList  ,
 
)
void FWTSelectorToEventList::ClearEventList ( )

Definition at line 48 of file FWTSelectorToEventList.cc.

References fEvList.

49 {
50  fEvList->Clear();
51 }
TEventList* FWTSelectorToEventList::GetEventList ( ) const
inline

Definition at line 27 of file FWTSelectorToEventList.h.

References fEvList.

27 { return fEvList; }
Bool_t FWTSelectorToEventList::GetOwnEventList ( ) const
inline

Definition at line 30 of file FWTSelectorToEventList.h.

References fOwnEvList.

30 { return fOwnEvList; }
Bool_t FWTSelectorToEventList::Process ( Long64_t  entry)
virtual

Definition at line 57 of file FWTSelectorToEventList.cc.

References fEvList.

58 {
59  // Process entry.
60 
61  Long64_t prevRows = fSelectedRows;
62 
63  TSelectorEntries::Process(entry);
64 
65  if (fSelectedRows > prevRows)
66  fEvList->Enter(entry);
67 
68  return kTRUE;
69 }
list entry
Definition: mps_splice.py:62
Long64_t FWTSelectorToEventList::ProcessTree ( Long64_t  nentries = 1000000000,
Long64_t  firstentry = 0 
)
virtual

Definition at line 73 of file FWTSelectorToEventList.cc.

References fPlayer.

75 {
76  return fPlayer->Process(this, "", nentries, firstentry);
77 }
void FWTSelectorToEventList::SetOwnEventList ( Bool_t  o)
inline

Definition at line 31 of file FWTSelectorToEventList.h.

References fOwnEvList, and connectstrParser::o.

Member Data Documentation

TEventList* FWTSelectorToEventList::fEvList
private
Bool_t FWTSelectorToEventList::fOwnEvList
private
TTreePlayer* FWTSelectorToEventList::fPlayer
private