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::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 }
Definition: tree.py:1

◆ ~FWTSelectorToEventList()

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

◆ ClassDefOverride()

FWTSelectorToEventList::ClassDefOverride ( FWTSelectorToEventList  ,
 
)

◆ ClearEventList()

void FWTSelectorToEventList::ClearEventList ( )

Definition at line 40 of file FWTSelectorToEventList.cc.

References fEvList.

40 { fEvList->Clear(); }

◆ GetEventList()

TEventList* FWTSelectorToEventList::GetEventList ( ) const
inline

Definition at line 25 of file FWTSelectorToEventList.h.

References fEvList.

25 { return fEvList; }

◆ GetOwnEventList()

Bool_t FWTSelectorToEventList::GetOwnEventList ( ) const
inline

Definition at line 28 of file FWTSelectorToEventList.h.

References fOwnEvList.

◆ Process()

Bool_t FWTSelectorToEventList::Process ( Long64_t  entry)
override

Definition at line 45 of file FWTSelectorToEventList.cc.

References mps_splice::entry, and 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 }

◆ ProcessTree()

Long64_t FWTSelectorToEventList::ProcessTree ( Long64_t  nentries = 1000000000,
Long64_t  firstentry = 0 
)
virtual

Definition at line 59 of file FWTSelectorToEventList.cc.

References mps_merge::firstentry, and fPlayer.

59  {
60  return fPlayer->Process(this, "", nentries, firstentry);
61 }
bool firstentry
Definition: mps_merge.py:77

◆ SetOwnEventList()

void FWTSelectorToEventList::SetOwnEventList ( Bool_t  o)
inline

Member Data Documentation

◆ fEvList

TEventList* FWTSelectorToEventList::fEvList
private

◆ fOwnEvList

Bool_t FWTSelectorToEventList::fOwnEvList
private

◆ fPlayer

TTreePlayer* FWTSelectorToEventList::fPlayer
private