LCOV - code coverage report
Current view: top level - HLT/EMCAL - AliHLTEMCALClusterizerComponentNbyN.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 7 26 26.9 %
Date: 2016-06-14 17:26:59 Functions: 7 12 58.3 %

          Line data    Source code
       1             : 
       2             : /**************************************************************************
       3             :  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       4             :  *                                                                        *
       5             :  * Authors: Anders Knospe <anders.knospe@cern.ch>                         *
       6             :  *                                                                        *
       7             :  * Permission to use, copy, modify and distribute this software and its   *
       8             :  * documentation strictly for non-commercial purposes is hereby granted   *
       9             :  * without fee, provided that the above copyright notice appears in all   *
      10             :  * copies and that both the copyright notice and this permission notice   *
      11             :  * appear in the supporting documentation. The authors make no claims     *
      12             :  * about the suitability of this software for any purpose. It is          *
      13             :  * provided "as is" without express or implied warranty.                  *
      14             :  **************************************************************************/
      15             : 
      16             : 
      17             : #include "AliHLTEMCALClusterizerComponentNbyN.h"
      18             : #include "AliHLTCaloClusterizerNbyN.h"
      19             : #include "AliHLTEMCALRecoParamHandler.h"
      20             : 
      21           6 : ClassImp(AliHLTEMCALClusterizerComponentNbyN);
      22             : 
      23           3 : AliHLTEMCALClusterizerComponentNbyN::AliHLTEMCALClusterizerComponentNbyN() : AliHLTEMCALClusterizerComponent()
      24          15 : {
      25             : // Constructor
      26           6 : }
      27             : 
      28           0 : AliHLTEMCALClusterizerComponentNbyN::~AliHLTEMCALClusterizerComponentNbyN()
      29          12 : {
      30             : // Destructor
      31          12 : }
      32             : 
      33             : 
      34             : const char* AliHLTEMCALClusterizerComponentNbyN::GetComponentID()
      35             : {
      36             :     // See header file for class documentation
      37         276 :     return "EmcalClusterizerNbyN";
      38             : }
      39             : 
      40             : 
      41             : int AliHLTEMCALClusterizerComponentNbyN::DoInit(int argc, const char** argv)
      42             : {
      43             :     // See header file for class documentation
      44           0 :     fClusterizerPtr = new AliHLTCaloClusterizerNbyN("EMCAL");
      45             : 
      46             :     //return AliHLTEMCALClusterizerComponent::DoInit(argc, argv);
      47             :    
      48           0 :     fRecoParamsPtr = new AliHLTEMCALRecoParamHandler();
      49             : 
      50           0 :     return AliHLTCaloClusterizerComponent::DoInit(argc, argv);
      51           0 : }
      52             : 
      53             : int AliHLTEMCALClusterizerComponentNbyN::ScanConfigurationArgument(int argc, const char** argv)
      54             : {
      55             : // See header file for class documentation
      56             :    
      57           0 :    if (argc <= 0) return 0;
      58             : 
      59             :     int i=0;
      60             : 
      61           0 :     TString argument=argv[i];
      62             : 
      63           0 :     if (argument.CompareTo("-gridsize") == 0)
      64             :     {
      65           0 :         if (++i >= argc) return -EPROTO;
      66           0 :         argument = argv[i];
      67           0 :         AliHLTCaloClusterizerNbyN* tmp = dynamic_cast<AliHLTCaloClusterizerNbyN*>(fClusterizerPtr);
      68           0 :         if(tmp) 
      69             :           {
      70           0 :             tmp->SetGridDimension(argument.Atoi());
      71             :           }
      72             :         else 
      73             :           {
      74           0 :             return -1;
      75             :           }
      76           0 :         return 1;
      77             :     }
      78             :     
      79           0 :     return AliHLTCaloClusterizerComponent::ScanConfigurationArgument(argc, argv);
      80             :     
      81           0 : }
      82             : 
      83             : AliHLTComponent*
      84             : AliHLTEMCALClusterizerComponentNbyN::Spawn()
      85             : {
      86             :   //See headerfile for documentation
      87             : 
      88           0 :   return new AliHLTEMCALClusterizerComponentNbyN();
      89           0 : }

Generated by: LCOV version 1.11