40 std::vector<float> sumPtTrkvec;
41 sumPtTrkvec.push_back(50.
e3);
46 const float jetE =
jet.e();
47 std::vector<float> ePerS;
48 ePerS.push_back( 0 * jetE );
49 ePerS.push_back( 0.1 * jetE );
50 ePerS.push_back( 0.1 * jetE );
51 ePerS.push_back( 0.1 * jetE );
52 ePerS.push_back( 0 * jetE );
53 ePerS.push_back( 0 * jetE );
54 ePerS.push_back( 0 * jetE );
55 ePerS.push_back( 0 * jetE );
56 ePerS.push_back( 0 * jetE );
57 ePerS.push_back( 0 * jetE );
58 ePerS.push_back( 0 * jetE );
59 ePerS.push_back( 0 * jetE );
60 ePerS.push_back( 0.7 * jetE );
61 ePerS.push_back( 0 * jetE );
62 ePerS.push_back( 0 * jetE );
63 ePerS.push_back( 0 * jetE );
64 ePerS.push_back( 0 * jetE );
65 ePerS.push_back( 0 * jetE );
66 ePerS.push_back( 0 * jetE );
67 ePerS.push_back( 0 * jetE );
68 ePerS.push_back( 0 * jetE );
69 ePerS.push_back( 0 * jetE );
70 ePerS.push_back( 0 * jetE );
71 ePerS.push_back( 0 * jetE );
72 jet.setAttribute(
"EnergyPerSampling",ePerS);
79 TString cutLevel =
"LooseBad";
80 TString doUgly =
"true";
81 TString hotCells = Form(
"%s/data/JetSelectorTools/HotCells2012.config",gSystem->Getenv(
"ROOTCOREBIN"));
91 if (
tool->setProperty(
"CutLevel",cutLevel.Data()).isFailure())
93 printf(
"Failed to set CutLevel\n");
96 if (
tool->setProperty(
"DoUgly",doUgly.EqualTo(
"true",TString::kIgnoreCase)?
true:
false).isFailure())
98 printf(
"Failed to set DoUgly\n");
101 if (
tool->setProperty(
"HotCellsFile",hotCells.Data()).isFailure())
103 printf(
"Failed to set HotCellsFile\n");
106 if (
tool->initialize().isFailure())
108 printf(
"Failed to initialize the tool\n");
133 printf(
"Test jet <hot cell fail> : %s\n",
tool->containsHotCells(*
jet,202660)==
true?
"false":
"true");