CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 27 of file FWTSelectorToEventList.cc.

References fPlayer.

28  : TSelectorEntries(sel), fEvList(evl), fPlayer(new TTreePlayer), fOwnEvList(kFALSE) {
29  fPlayer->SetTree(tree);
30 }
FWTSelectorToEventList::~FWTSelectorToEventList ( )
override

Definition at line 33 of file FWTSelectorToEventList.cc.

References fEvList, fOwnEvList, and fPlayer.

33  {
34  delete fPlayer;
35  if (fOwnEvList)
36  delete fEvList;
37 }

Member Function Documentation

FWTSelectorToEventList::ClassDefOverride ( FWTSelectorToEventList  ,
 
)
void FWTSelectorToEventList::ClearEventList ( )

Definition at line 40 of file FWTSelectorToEventList.cc.

References fEvList.

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

Definition at line 25 of file FWTSelectorToEventList.h.

References fEvList.

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

Definition at line 28 of file FWTSelectorToEventList.h.

References fOwnEvList.

28 { return fOwnEvList; }
Bool_t FWTSelectorToEventList::Process ( Long64_t  entry)
override

Definition at line 45 of file FWTSelectorToEventList.cc.

References fEvList.

45  {
46  // Process entry.
47 
48  Long64_t prevRows = fSelectedRows;
49 
50  TSelectorEntries::Process(entry);
51 
52  if (fSelectedRows > prevRows)
53  fEvList->Enter(entry);
54 
55  return kTRUE;
56 }
list entry
Definition: mps_splice.py:68
Long64_t FWTSelectorToEventList::ProcessTree ( Long64_t  nentries = 1000000000,
Long64_t  firstentry = 0 
)
virtual

Definition at line 59 of file FWTSelectorToEventList.cc.

References fPlayer.

59  {
60  return fPlayer->Process(this, "", nentries, firstentry);
61 }
void FWTSelectorToEventList::SetOwnEventList ( Bool_t  o)
inline

Member Data Documentation

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