CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
FWTSelectorToEventList Class Reference

#include <FWTSelectorToEventList.h>

Inheritance diagram for FWTSelectorToEventList:

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.

31  :
32  TSelectorEntries(sel),
33  fEvList(evl),
34  fPlayer(new TTreePlayer),
35  fOwnEvList(kFALSE)
36 {
37  fPlayer->SetTree(tree);
38 }
FWTSelectorToEventList::~FWTSelectorToEventList ( )
virtual

Definition at line 41 of file FWTSelectorToEventList.cc.

References fEvList, fOwnEvList, and fPlayer.

42 {
43  delete fPlayer;
44  if (fOwnEvList)
45  delete fEvList;
46 }

Member Function Documentation

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

Definition at line 49 of file FWTSelectorToEventList.cc.

References fEvList.

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

Definition at line 28 of file FWTSelectorToEventList.h.

References fEvList.

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

Definition at line 31 of file FWTSelectorToEventList.h.

References fOwnEvList.

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

Definition at line 58 of file FWTSelectorToEventList.cc.

References fEvList.

59 {
60  // Process entry.
61 
62  Long64_t prevRows = fSelectedRows;
63 
64  TSelectorEntries::Process(entry);
65 
66  if (fSelectedRows > prevRows)
67  fEvList->Enter(entry);
68 
69  return kTRUE;
70 }
std::pair< std::string, MonitorElement * > entry
Definition: ME_MAP.h:8
Long64_t FWTSelectorToEventList::ProcessTree ( Long64_t  nentries = 1000000000,
Long64_t  firstentry = 0 
)
virtual

Definition at line 74 of file FWTSelectorToEventList.cc.

References fPlayer.

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

Member Data Documentation

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