diff --git a/src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php b/src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php
index b050b8b..86d142f 100644
--- a/src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php
+++ b/src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php
@@ -67,16 +67,30 @@ class IHMPlotContextFileClass
 				$parametersNode = $parametersNodes->item(0);
 				$items = $parametersNode->getElementsByTagName($PARAMETER_TAG);
 				foreach ($items as $item) {
-					$pContext = array(
+                    $pContext = array(
 						'id' => $item->getAttribute('id'),
-                        			'name' => $item->getAttribute('name'),
-                        			'shortname' => $item->getAttribute('name'),
-                        			'units' => $item->getAttribute('units'),
+                        'name' => $item->getAttribute('name'),
+                        'shortname' => $item->getAttribute('name'),
+                        'units' => $item->getAttribute('units'),
 						'MinSampling' => floatval($item->getAttribute('MinSampling')),
-						'isHisto' =>  $item->getAttribute('isHisto'),
-						'fileName' => $item->getAttribute('fileName')
 					);
 
+                    $histogramsNodes = $item->getElementsByTagName("histograms");
+                    $isHisto = $histogramsNodes->length > 0;
+                    if ($isHisto) {
+                        $histogramsNode = $histogramsNodes->item(0);
+                        $histoNodes = $histogramsNode->getElementsByTagName("histo");
+                        $histogramsContext = array();
+                        foreach ($histoNodes as $histoNode) {
+                            $histogramsContext[] = array(
+                                'shortInfo' => $histoNode->getAttribute("shortInfo"),
+                                'fullInfo' => $histoNode->getAttribute("fullInfo"),
+                                'fileName' => $histoNode->getAttribute("fileName"),
+                            );
+                        }
+                        $pContext['histograms'] = $histogramsContext;
+                    }
+
                     $sampling_context = array();
 
                     $samplingNodes = $item->getElementsByTagName('sampling');
--
libgit2 0.21.2