CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
FWTSelectorToEventList Class Reference

#include <FWTSelectorToEventList.h>

Inheritance diagram for FWTSelectorToEventList:

Public Member Functions

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

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 }
Definition: tree.py:1
FWTSelectorToEventList::~FWTSelectorToEventList ( )
override

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::ClassDefOverride ( FWTSelectorToEventList  ,
 
)

Referenced by SetOwnEventList().

void FWTSelectorToEventList::ClearEventList ( )

Definition at line 48 of file FWTSelectorToEventList.cc.

References fEvList.

Referenced by GetEventList().

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

Definition at line 27 of file FWTSelectorToEventList.h.

References ClearEventList(), and fEvList.

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

Definition at line 30 of file FWTSelectorToEventList.h.

References fOwnEvList.

Bool_t FWTSelectorToEventList::Process ( Long64_t  entry)
override

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 }
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 }
bool firstentry
Definition: mps_merge.py:75
void FWTSelectorToEventList::SetOwnEventList ( Bool_t  o)
inline

Member Data Documentation

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

Definition at line 16 of file FWTSelectorToEventList.h.

Referenced by GetOwnEventList(), and ~FWTSelectorToEventList().

TTreePlayer* FWTSelectorToEventList::fPlayer
private