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 231 of file LArQuickHistMerge.cxx.
239 std::cout <<
"ERROR while adding " << nameIn <<
": Histogram pointer is NULL" << std::endl;
243 char howToMerge[256]={};
245 strcpy(howToMerge,
"<default>");
247 std::cout <<
"ERROR while adding " << nameIn <<
": No metadata tree. Use default merging method" << std::endl;
250 md->SetBranchAddress(
"MergeMethod", howToMerge);
251 md->SetBranchAddress(
"Name", mdName);
252 unsigned nEntries = md->GetEntries();
255 if (
name.compare(mdName)==0)
break;
259 if (
dbg) std::cout <<
"Name:" << mdName <<
" mergeMethod=" << howToMerge << std::endl;
260 if (
nullptr!=
dynamic_cast<TH1*
>(
obj)) {
261 if (!strcmp(howToMerge,
"<default>"))
263 else if (!strcmp(howToMerge,
"weightedAverage"))
265 else if (!strcmp(howToMerge,
"weightedEff"))
267 else if (!strcmp(howToMerge,
"mergeRMS"))
269 else if (!strcmp(howToMerge,
"RMSpercentDeviation"))
271 else if (!strcmp(howToMerge,
"perBinEffPerCent"))
273 else if (!strcmp(howToMerge,
"lowerLB"))
275 else if (!strcmp(howToMerge,
"identical"))
279 std::cout <<
"ERROR: Unknown merging method (" << howToMerge <<
") for object of type TH1 named " << nameIn << std::endl;
283 else if (
nullptr!=
dynamic_cast<TH2*
>(
obj)) {
284 if (!strcmp(howToMerge,
"<default>"))
286 else if (!strcmp(howToMerge,
"weightedAverage"))
289 std::cout <<
"ERROR: Unknown merging method (" << howToMerge <<
") for object of type TH2 named " << nameIn << std::endl;
295 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: