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 **************************************************************************/
16 /* $Id: AliTRDTrigger.cxx 31904 2009-04-08 16:42:03Z cblume $ */
18 ///////////////////////////////////////////////////////////////////////////////
20 // TRD trigger interface class to CTP //
21 // from here the trigger simulation for L0 (pretrigger) and L1 (GTU) are //
24 ///////////////////////////////////////////////////////////////////////////////
26 #include "TClonesArray.h"
29 #include "AliTriggerInput.h"
30 #include "AliTriggerDetector.h"
32 #include "AliTRDTrigger.h"
33 #include "AliTRDTriggerL0.h"
34 #include "AliTRDTriggerL1.h"
36 AliTRDTrigger::AliTRDTrigger() :
40 // default constructor
42 fTriggers.AddLast(new AliTRDTriggerL0());
43 fTriggers.AddLast(new AliTRDTriggerL1());
48 AliTRDTrigger::~AliTRDTrigger()
51 TIter trigger(&fTriggers);
52 while (AliTriggerDetector *trgDet = (AliTriggerDetector*) trigger())
55 fInputs.Clear(); // inputs are deleted either by CTP or submodule
58 void AliTRDTrigger::AssignInputs(const TObjArray& inputs)
60 // Create inputs for all registered trigger modules.
61 if( fInputs.GetEntriesFast() > 0 ) return;
63 TIter trigger(&fTriggers);
64 while (AliTriggerDetector *trgDet = (AliTriggerDetector*) trigger()) {
65 trgDet->AssignInputs(inputs);
66 fInputs.AddAll(trgDet->GetInputs());
70 void AliTRDTrigger::CreateInputs()
75 void AliTRDTrigger::Trigger()
77 // TRD trigger steering
78 // all registered TRD trigger mechanism are
81 TIter trigger(&fTriggers);
82 while (AliTriggerDetector *trgDet = (AliTriggerDetector*) trigger()) {