Dear experts,
I added 2 root files: file 1 (1) and file 2 (2), into a 3rd file (3). If you open (2) and (3) you see that the histogram “AFP/SIT/hit/expert/numberOfHitVersusPileup_station0_layer0” pic respectively at 55 and 35. But when I add them with “hadd 3.root 1.root 2.root”, you can see in 3) that the same hist “AFP/SIT/hit/expert/numberOfHitVersusPileup_station0_layer0” has only 1 pic at 55 instead of having 2 at 55 and 35. During the merging I did not get any error message. Do you see what is wrong?
Regards
Second, I downloaded your (1) and (2) and merged them myself in 5.30.06. The output follows:
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 354 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station0_layer0' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 354 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station0_layer1' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 354 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station1_layer0' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 354 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station1_layer1' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 354 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station1_layer2' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 354 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station1_layer3' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 355 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station2_layer0' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 355 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station2_layer1' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 355 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station2_layer2' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 355 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station2_layer3' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 355 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station3_layer0' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 355 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station3_layer1' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 355 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station3_layer2' with the corresponding object in '2.root'
Error in <TH1D::Merge>: Cannot merge ! Label histogram FirstClone contains a bin 355 which has not a label and has non-zero content
Error in <TFileMerger::MergeRecursive>: calling Merge() on 'numberOfHitVersusPileup_station3_layer3' with the corresponding object in '2.root'
Indeed, doing the same in ROOT 6.10.04 results in a histogram with the only peak at 56. I guess you should try to fix your histograms according to what ROOT5 tells.