23 using namespace pftools;
29 withOffset_(
false), target_(
CLUSTER), options_(options), debug_(0),
30 mlpOffset_(0.0), mlpSlope_(1.0) {
36 double g0,
g1, e0, e1;
43 double ecalECut, hcalECut;
49 options_->
GetOpt(
"correction",
"allowNegativeEnergy", allowNegative);
56 int doEtaCorrection(0);
57 options_->
GetOpt(
"correction",
"doEtaCorrection", doEtaCorrection);
64 double maxEToCorrect(100.0);
69 for (std::vector<std::string>::iterator
i = names->begin();
i
70 != names->end(); ++
i) {
71 std::string sector = *
i;
72 std::vector<double> params;
77 std::vector<double> etaParams;
89 std::cout << __PRETTY_FUNCTION__ <<
": finished.\n";
94 const std::string& exercisefile) {
97 std::cout <<
"Welcome to " << __PRETTY_FUNCTION__ <<
"\n";
102 std::vector<Calibratable> calibVec;
106 std::cout <<
"Moving on... " << std::endl;
107 TFile* exercises =
new TFile(exercisefile.c_str(),
"recreate");
108 TTree
tree(
"CalibratedParticles",
"");
110 tree.Branch(
"Calibratable",
"pftools::Calibratable", &calibrated, 32000, 2);
126 const std::vector<Calibratable>& calibVec) {
129 for (std::vector<Calibratable>::const_iterator zit = calibVec.begin(); zit
130 != calibVec.end(); ++zit) {
static const HistoName names[]
MVATrainerComputer * calib