Definition at line 64 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 226 of file LArQuickHistMerge.cxx.
234 std::cout <<
"ERROR while adding " << nameIn <<
": Histogram pointer is NULL" << std::endl;
238 char howToMerge[256]={};
240 strcpy(howToMerge,
"<default>");
242 std::cout <<
"ERROR while adding " << nameIn <<
": No metadata tree. Use default merging method" << std::endl;
245 md->SetBranchAddress(
"MergeMethod", howToMerge);
246 md->SetBranchAddress(
"Name", mdName);
247 unsigned nEntries = md->GetEntries();
250 if (
name.compare(mdName)==0)
break;
254 if (
dbg) std::cout <<
"Name:" << mdName <<
" mergeMethod=" << howToMerge << std::endl;
255 if (
nullptr!=
dynamic_cast<TH1*
>(
obj)) {
256 if (!strcmp(howToMerge,
"<default>"))
258 else if (!strcmp(howToMerge,
"weightedAverage"))
260 else if (!strcmp(howToMerge,
"weightedEff"))
262 else if (!strcmp(howToMerge,
"mergeRMS"))
264 else if (!strcmp(howToMerge,
"RMSpercentDeviation"))
266 else if (!strcmp(howToMerge,
"perBinEffPerCent"))
268 else if (!strcmp(howToMerge,
"lowerLB"))
270 else if (!strcmp(howToMerge,
"identical"))
274 std::cout <<
"ERROR: Unknown merging method (" << howToMerge <<
") for object of type TH1 named " << nameIn << std::endl;
278 else if (
nullptr!=
dynamic_cast<TH2*
>(
obj)) {
279 if (!strcmp(howToMerge,
"<default>"))
281 else if (!strcmp(howToMerge,
"weightedAverage"))
284 std::cout <<
"ERROR: Unknown merging method (" << howToMerge <<
") for object of type TH2 named " << nameIn << std::endl;
290 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: