File indexing completed on 2023-03-17 11:03:49
0001 #include <TProof.h>
0002 #include <TDSet.h>
0003 #include <TEnv.h>
0004
0005 using namespace std;
0006
0007 #include "FWCore/FWLite/interface/FWLiteEnabler.h"
0008
0009 void proof_thing2_sel() {
0010 if (gSystem->Getenv("TMPDIR")) {
0011 std::string t(gSystem->Getenv("TMPDIR"));
0012 if (t.size() > 80)
0013 t = "/tmp";
0014 t += "/proof";
0015 gEnv->SetValue("Proof.Sandbox", t.c_str());
0016 gEnv->SetValue("ProofLite.SockPathDir", t.c_str());
0017 }
0018
0019
0020 TProof *myProof = TProof::Open("", "workers=2");
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 myProof->Exec(
0031 "gSystem->Load(\"libFWCoreFWLite\"); "
0032 "FWLiteEnabler::enable(); "
0033 "gSystem->Load(\"libFWCoreTFWLiteSelectorTest\");");
0034
0035
0036
0037 TDSet c("TTree", "Events");
0038 c.Add("testTFWLiteSelector.root");
0039
0040
0041 c.Process("tfwliteselectortest::ThingsTSelector2");
0042
0043 myProof->Close("S");
0044 }