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.

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

References fPlayer.

◆ ~FWTSelectorToEventList()

FWTSelectorToEventList::~FWTSelectorToEventList ( )
override

Definition at line 33 of file FWTSelectorToEventList.cc.

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

References fEvList, fOwnEvList, and fPlayer.

Member Function Documentation

◆ ClassDefOverride()

FWTSelectorToEventList::ClassDefOverride ( FWTSelectorToEventList  ,
 
)

◆ ClearEventList()

void FWTSelectorToEventList::ClearEventList ( )

Definition at line 40 of file FWTSelectorToEventList.cc.

40 { fEvList->Clear(); }

References fEvList.

◆ GetEventList()

TEventList* FWTSelectorToEventList::GetEventList ( ) const
inline

Definition at line 25 of file FWTSelectorToEventList.h.

25 { return fEvList; }

References fEvList.

◆ GetOwnEventList()

Bool_t FWTSelectorToEventList::GetOwnEventList ( ) const
inline

Definition at line 28 of file FWTSelectorToEventList.h.

28 { return fOwnEvList; }

References fOwnEvList.

◆ Process()

Bool_t FWTSelectorToEventList::Process ( Long64_t  entry)
override

Definition at line 45 of file FWTSelectorToEventList.cc.

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 }

References mps_splice::entry, and fEvList.

◆ ProcessTree()

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

Definition at line 59 of file FWTSelectorToEventList.cc.

59  {
60  return fPlayer->Process(this, "", nentries, firstentry);
61 }

References mps_merge::firstentry, and fPlayer.

◆ SetOwnEventList()

void FWTSelectorToEventList::SetOwnEventList ( Bool_t  o)
inline

Definition at line 29 of file FWTSelectorToEventList.h.

29 { fOwnEvList = o; }

References fOwnEvList, and EcalTangentSkim_cfg::o.

Member Data Documentation

◆ fEvList

TEventList* FWTSelectorToEventList::fEvList
private

◆ fOwnEvList

Bool_t FWTSelectorToEventList::fOwnEvList
private

◆ fPlayer

TTreePlayer* FWTSelectorToEventList::fPlayer
private
FWTSelectorToEventList::fOwnEvList
Bool_t fOwnEvList
Definition: FWTSelectorToEventList.h:15
mps_merge.firstentry
bool firstentry
Definition: mps_merge.py:77
mps_splice.entry
entry
Definition: mps_splice.py:68
tree
Definition: tree.py:1
FWTSelectorToEventList::fEvList
TEventList * fEvList
Definition: FWTSelectorToEventList.h:13
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
FWTSelectorToEventList::fPlayer
TTreePlayer * fPlayer
Definition: FWTSelectorToEventList.h:14
EgammaValidation_Wenu_cff.sel
sel
Definition: EgammaValidation_Wenu_cff.py:33