1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
17 // Author: Andrei Gheata, 04/01/2010
19 #include "AliTrigScheduledEntry.h"
21 #include "AliTrigScheduler.h"
22 #include "AliTrigDevice.h"
24 ClassImp(AliTrigScheduledEntry)
25 //==============================================================================
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.
33 //==============================================================================
35 //______________________________________________________________________________
36 AliTrigScheduledEntry::AliTrigScheduledEntry(const char *name, AliTrigDevice *device, Int_t start)
41 // Default constructor. The only way to set the device.
45 ClassImp(AliTrigScheduledResponse)
46 //==============================================================================
48 // AliTrigScheduledResponse - Scheduled device response function. Fires-up a
49 // single response function at a time.
51 //==============================================================================
53 //______________________________________________________________________________
54 AliTrigScheduledResponse::AliTrigScheduledResponse(const char *name, AliTrigDevice *device, Int_t output, Int_t start)
55 :AliTrigScheduledEntry(name, device, start),
58 // Default constructor. The only way to set the device and response function.
61 //______________________________________________________________________________
62 void AliTrigScheduledResponse::FireUp(Int_t /*time*/)
64 // Virtual fire-up method. Calls the device response function.
65 fDevice->Response(fOutputID);
68 ClassImp(AliTrigScheduledDevice)
69 //==============================================================================
71 // AliTrigScheduledDevice - Scheduled entry for a full device sequence. Invokes
72 // the device scheduler when firing-up.
74 //==============================================================================
76 //______________________________________________________________________________
77 AliTrigScheduledDevice::AliTrigScheduledDevice(const char *name, AliTrigDevice *device, Int_t start)
78 :AliTrigScheduledEntry(name, device, start)
80 // Default constructor. The only way to set the device. Device scheduler must be set up.
83 //______________________________________________________________________________
84 void AliTrigScheduledDevice::FireUp(Int_t time)
86 // Virtual fire-up method. Calls the device response function.
87 fDevice->GetScheduler()->FireUp(time);