CMS 3D CMS Logo

Public Member Functions | Private Attributes

FWTSelectorToEventList Class Reference

#include <FWTSelectorToEventList.h>

List of all members.

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 12 of file FWTSelectorToEventList.h.


Constructor & Destructor Documentation

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

Definition at line 29 of file FWTSelectorToEventList.cc.

References fPlayer.

                                                                :
   TSelectorEntries(sel),
   fEvList(evl),
   fPlayer(new TTreePlayer),
   fOwnEvList(kFALSE)
{
   fPlayer->SetTree(tree);
}
FWTSelectorToEventList::~FWTSelectorToEventList ( ) [virtual]

Definition at line 41 of file FWTSelectorToEventList.cc.

References fEvList, fOwnEvList, and fPlayer.

{
   delete fPlayer;
   if (fOwnEvList)
      delete fEvList;
}

Member Function Documentation

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

Definition at line 49 of file FWTSelectorToEventList.cc.

References fEvList.

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

Definition at line 28 of file FWTSelectorToEventList.h.

References fEvList.

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

Definition at line 31 of file FWTSelectorToEventList.h.

References fOwnEvList.

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

Definition at line 58 of file FWTSelectorToEventList.cc.

References fEvList.

{
   // Process entry.

   Long64_t prevRows = fSelectedRows;

   TSelectorEntries::Process(entry);

   if (fSelectedRows > prevRows)
      fEvList->Enter(entry);

   return kTRUE;
}
Long64_t FWTSelectorToEventList::ProcessTree ( Long64_t  nentries = 1000000000,
Long64_t  firstentry = 0 
) [virtual]

Definition at line 74 of file FWTSelectorToEventList.cc.

References fPlayer.

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

Definition at line 32 of file FWTSelectorToEventList.h.

References fOwnEvList, and connectstrParser::o.

{ fOwnEvList = o; }

Member Data Documentation

TEventList* FWTSelectorToEventList::fEvList [private]
TTreePlayer* FWTSelectorToEventList::fPlayer [private]