-// $Id:$
+// $Id$
/**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* ALICE Experiment at CERN, All rights reserved. *
}
}
+void AliHLTGlobalTriggerDecision::Copy(TObject &object) const
+{
+ // copy this to the specified object
+
+ AliHLTGlobalTriggerDecision* pDecision=dynamic_cast<AliHLTGlobalTriggerDecision*>(&object);
+ if (pDecision)
+ {
+ // copy members if target is a AliHLTGlobalTriggerDecision
+ *pDecision=*this;
+ }
+
+ // copy the base class
+ AliHLTTriggerDecision::Copy(object);
+}
+
+TObject *AliHLTGlobalTriggerDecision::Clone(const char */*newname*/) const
+{
+ // create a new clone, classname is ignored
+
+ return new AliHLTGlobalTriggerDecision(*this);
+}
//-*- Mode: C++ -*-
-// $Id:$
+// $Id$
#ifndef ALIHLTGLOBALTRIGGERDECISION_H
#define ALIHLTGLOBALTRIGGERDECISION_H
/* This file is property of and copyright by the ALICE HLT Project *
* global information but not the lists of input objects.
*/
virtual void Print(Option_t* option = "") const;
+
+ /**
+ * Inherited from TObject. Copy this to the specified object.
+ */
+ virtual void Copy(TObject &object) const;
+ /**
+ * Inherited from TObject. Create a new clone.
+ */
+ virtual TObject *Clone(const char *newname="") const;
+
/**
* Returns the number of trigger inputs that contributed to this global trigger decision.
*/
-// $Id:$
+// $Id$
/**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* ALICE Experiment at CERN, All rights reserved. *
fTriggerDomain.Print();
}
+void AliHLTTriggerDecision::Copy(TObject &object) const
+{
+ // copy this to the specified object
+
+ AliHLTTriggerDecision* pDecision=dynamic_cast<AliHLTTriggerDecision*>(&object);
+ if (pDecision) {
+ // copy members if target is a AliHLTTriggerDecision
+ *pDecision=*this;
+ }
+
+ // copy the base class
+ TObject::Copy(object);
+}
+
+TObject *AliHLTTriggerDecision::Clone(const char */*newname*/) const
+{
+ // create a new clone, classname is ignored
+
+ return new AliHLTTriggerDecision(*this);
+}
+
+Option_t *AliHLTTriggerDecision::GetOption() const
+{
+ // Return the result of the trigger.
+ // "0" or "1"
+ if (Result()) return "1";
+ return "0";
+}
//-*- Mode: C++ -*-
-// $Id:$
+// $Id$
#ifndef ALIHLTTRIGGERDECISION_H
#define ALIHLTTRIGGERDECISION_H
/* This file is property of and copyright by the ALICE HLT Project *
*/
virtual const char* GetName() const { return fName.Data(); }
+ /**
+ * Inherited from TObject. Returns the description of the trigger decision.
+ */
+ virtual const char* GetTitle() const { return fDescription.Data(); }
+
/**
* Inherited from TObject. This prints the contents of the trigger decision.
* \param option Can be "short" which will print the short format.
*/
virtual void Print(Option_t* option = "") const;
-
+
+ /**
+ * Inherited from TObject. Copy this to the specified object.
+ */
+ virtual void Copy(TObject &object) const;
+
+ /**
+ * Inherited from TObject. Create a new clone.
+ */
+ virtual TObject *Clone(const char *newname="") const;
+
+ /**
+ * Inherited from TObject. Return the result of the trigger.
+ * @return "0" or "1" (note: its a string)
+ */
+ virtual Option_t *GetOption() const;
+
/**
* Returns the result of the trigger decision.
* \returns true if the event was triggered and should be readout.