1 #define RooProofDriverSelector_cxx
44 using namespace RooFit ;
47 void RooProofDriverSelector::SlaveBegin(TTree * )
52 TIterator* iter = fInput->MakeIterator() ;
54 while((obj=iter->Next())) {
55 RooStudyPackage* tmp =
dynamic_cast<RooStudyPackage*
>(obj) ;
62 cout <<
"RooProofDriverSelector::SlaveBegin() no RooStudyPackage found, aborting process" << endl ;
63 fStatus = kAbortProcess ;
65 cout <<
"workspace contents = " << endl ;
66 _pkg->wspace().Print() ;
69 seed = _pkg->initRandom() ;
75 Bool_t RooProofDriverSelector::Process(Long64_t entry)
77 cout <<
"RooProofDriverSelector::Process(" << entry <<
")" << endl ;
83 void RooProofDriverSelector::SlaveTerminate()
86 _pkg->exportData(fOutput,seed) ;
91 void RooProofDriverSelector::Init(TTree *tree)
96 fChain->SetMakeClass(1);
97 fChain->SetBranchAddress(
"i", &i, &b_i);
100 Bool_t RooProofDriverSelector::Notify()