Definition at line 70 of file LArQuickHistMerge.cxx.
◆ histPerDir_t()
histCollection::histPerDir_t::histPerDir_t |
( |
const std::string & |
nameIn, |
|
|
TObject * |
objIn, |
|
|
TTree * |
md, |
|
|
bool |
dbg = false |
|
) |
| |
Definition at line 232 of file LArQuickHistMerge.cxx.
240 std::cout <<
"ERROR while adding " << nameIn <<
": Histogram pointer is NULL" << std::endl;
244 char howToMerge[256]={};
246 strcpy(howToMerge,
"<default>");
248 std::cout <<
"ERROR while adding " << nameIn <<
": No metadata tree. Use default merging method" << std::endl;
251 md->SetBranchAddress(
"MergeMethod", howToMerge);
252 md->SetBranchAddress(
"Name", mdName);
253 unsigned nEntries = md->GetEntries();
256 if (
name.compare(mdName)==0)
break;
260 if (
dbg) std::cout <<
"Name:" << mdName <<
" mergeMethod=" << howToMerge << std::endl;
261 if (
nullptr!=
dynamic_cast<TH1*
>(
obj)) {
262 if (!strcmp(howToMerge,
"<default>"))
264 else if (!strcmp(howToMerge,
"weightedAverage"))
266 else if (!strcmp(howToMerge,
"weightedEff"))
268 else if (!strcmp(howToMerge,
"mergeRMS"))
270 else if (!strcmp(howToMerge,
"RMSpercentDeviation"))
272 else if (!strcmp(howToMerge,
"perBinEffPerCent"))
274 else if (!strcmp(howToMerge,
"lowerLB"))
276 else if (!strcmp(howToMerge,
"identical"))
280 std::cout <<
"ERROR: Unknown merging method (" << howToMerge <<
") for object of type TH1 named " << nameIn << std::endl;
284 else if (
nullptr!=
dynamic_cast<TH2*
>(
obj)) {
285 if (!strcmp(howToMerge,
"<default>"))
287 else if (!strcmp(howToMerge,
"weightedAverage"))
290 std::cout <<
"ERROR: Unknown merging method (" << howToMerge <<
") for object of type TH2 named " << nameIn << std::endl;
296 std::cout <<
"Object "<<
name <<
" has unkown type" << std::endl;
◆ mergeMethod
void(* histCollection::histPerDir_t::mergeMethod) (TObject *a, const TObject *b) |
◆ name
std::string histCollection::histPerDir_t::name |
◆ obj
TObject* histCollection::histPerDir_t::obj |
The documentation for this class was generated from the following file: