LCOV - code coverage report
Current view: top level - TRIGGER - AliTrigScheduledEntry.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 3 19 15.8 %
Date: 2016-06-14 17:26:59 Functions: 3 10 30.0 %

          Line data    Source code
       1             : /**************************************************************************
       2             :  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       3             :  *                                                                        *
       4             :  * Author: The ALICE Off-line Project.                                    *
       5             :  * Contributors are mentioned in the code where appropriate.              *
       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             : /* $Id$ */
      17             : // Author: Andrei Gheata, 04/01/2010
      18             : 
      19             : #include "AliTrigScheduledEntry.h"
      20             : 
      21             : #include "AliTrigScheduler.h"
      22             : #include "AliTrigDevice.h"
      23             : 
      24          12 : ClassImp(AliTrigScheduledEntry)
      25             : //==============================================================================
      26             : //
      27             : //   AliTrigScheduledEntry - ABC for scheduled responses of a device that is
      28             : //                           able to fire-up single response functions or the 
      29             : //                           full device scheduled sequence. The start time is
      30             : //                           in arbitrary units and in case it is 0 will not be
      31             : //                           considered when ordering by time by schedulers.
      32             : // 
      33             : //==============================================================================
      34             : 
      35             : //______________________________________________________________________________
      36             : AliTrigScheduledEntry::AliTrigScheduledEntry(const char *name, AliTrigDevice *device, Int_t start)
      37           0 :                       :TNamed(name,""), 
      38           0 :                        fStartTime(start), 
      39           0 :                        fDevice(device) 
      40           0 : {
      41             : // Default constructor. The only way to set the device.
      42           0 : }
      43             : 
      44             : 
      45          12 : ClassImp(AliTrigScheduledResponse)
      46             : //==============================================================================
      47             : //
      48             : //   AliTrigScheduledResponse - Scheduled device response function. Fires-up a
      49             : //                              single response function at a time.
      50             : //
      51             : //==============================================================================
      52             : 
      53             : //______________________________________________________________________________
      54             : AliTrigScheduledResponse::AliTrigScheduledResponse(const char *name, AliTrigDevice *device, Int_t output, Int_t start)
      55           0 :                          :AliTrigScheduledEntry(name, device, start),
      56           0 :                           fOutputID(output)
      57           0 : {
      58             : // Default constructor. The only way to set the device and response function.
      59           0 : }
      60             : 
      61             : //______________________________________________________________________________
      62             : void AliTrigScheduledResponse::FireUp(Int_t /*time*/)
      63             : {
      64             : // Virtual fire-up method. Calls the device response function.
      65           0 :    fDevice->Response(fOutputID);
      66           0 : }
      67             : 
      68          12 : ClassImp(AliTrigScheduledDevice)
      69             : //==============================================================================
      70             : //
      71             : //   AliTrigScheduledDevice - Scheduled entry for a full device sequence. Invokes
      72             : //                            the device scheduler when firing-up.
      73             : //
      74             : //==============================================================================
      75             : 
      76             : //______________________________________________________________________________
      77             : AliTrigScheduledDevice::AliTrigScheduledDevice(const char *name, AliTrigDevice *device, Int_t start)
      78           0 :                          :AliTrigScheduledEntry(name, device, start)
      79           0 : {
      80             : // Default constructor. The only way to set the device. Device scheduler must be set up.
      81           0 : }
      82             : 
      83             : //______________________________________________________________________________
      84             : void AliTrigScheduledDevice::FireUp(Int_t time)
      85             : {
      86             : // Virtual fire-up method. Calls the device response function.
      87           0 :    fDevice->GetScheduler()->FireUp(time);
      88           0 : }

Generated by: LCOV version 1.11