2 |
|
// $Id$ |
3 |
|
// |
4 |
|
|
5 |
< |
#include "TAMOutput.h" |
5 |
> |
#include "MitAna/TAM/interface/TAMOutput.h" |
6 |
|
|
7 |
|
|
8 |
|
#ifndef G__API_H |
32 |
|
#ifndef ROOT_TDataMember |
33 |
|
#include "TDataMember.h" |
34 |
|
#endif |
35 |
< |
#ifndef TAM_TAModule |
36 |
< |
#include "TAModule.h" |
37 |
< |
#endif |
38 |
< |
#ifndef TAM_TDirectory |
35 |
> |
#ifndef ROOT_TDirectory |
36 |
|
#include "TDirectory.h" |
37 |
|
#endif |
38 |
+ |
#ifndef TAM_TAModule |
39 |
+ |
#include "MitAna/TAM/interface/TAModule.h" |
40 |
+ |
#endif |
41 |
|
|
42 |
|
////////////////////////////////////////////////////////////////////////// |
43 |
|
// // |
491 |
|
|
492 |
|
|
493 |
|
//______________________________________________________________________________ |
494 |
< |
void TAMOutput::Merge(TCollection* list) |
494 |
> |
Long64_t TAMOutput::Merge(TCollection* list) |
495 |
|
{ |
496 |
|
// Called by Proof after SlaveTerminate() and before Terminate() |
497 |
|
// to merge the output objects from each worker ("slave") computer. |
499 |
|
// recursively proceed through the sub modules to merge their objects. |
500 |
|
|
501 |
|
// merge this module's output objects |
502 |
< |
MergeOutput(list); |
502 |
> |
Long64_t mergeCount = MergeOutput(list); |
503 |
|
|
504 |
|
// then merge its sub modules' objects: |
505 |
|
if (!IsEmpty()) { // (if we have any sub modules) |
532 |
|
DeleteIterators(slaveIters); |
533 |
|
} |
534 |
|
|
535 |
+ |
return mergeCount; |
536 |
|
} |
537 |
|
|
538 |
|
|
539 |
|
//______________________________________________________________________________ |
540 |
< |
void TAMOutput::MergeOutput(TCollection* list) |
540 |
> |
Long64_t TAMOutput::MergeOutput(TCollection* list) |
541 |
|
{ |
542 |
|
// Merges the actual output objects in fCurOutput given a list of |
543 |
|
// all the TAMOutput objects from the worker computers that |
575 |
|
DeleteIterators(slaveIters); |
576 |
|
} |
577 |
|
|
578 |
+ |
return list->GetEntries(); |
579 |
|
} |
580 |
|
|
581 |
|
|
650 |
|
// first update the addresses of the members |
651 |
|
Char_t parent[kParentStrLen]; |
652 |
|
memset(parent, 0, kParentStrLen * sizeof(Char_t)); |
653 |
< |
fMod->ShowMembers(fInspector, parent); |
653 |
> |
fMod->ShowMembers(fInspector); |
654 |
|
|
655 |
|
if (setAddresses) { |
656 |
|
// loop through output objects and set the corresponding members |