//
///////////////////////////////////////////////////////////////////////////////
#include <Riostream.h>
-#include <cstdlib>
+//#include <cstdlib>
#include <TObject.h>
#include <TString.h>
#include <TObjArray.h>
#include <TSystem.h>
#include <TKey.h>
-#include <TList.h>
-#include <TMap.h>
#include <TFile.h>
#include "AliLog.h"
//_____________________________________________________________________________
AliTriggerConfiguration::~AliTriggerConfiguration()
{
+ // Destructor
fInputs.SetOwner();
fInputs.Delete();
fInteractions.SetOwner();
//_____________________________________________________________________________
Bool_t AliTriggerConfiguration::AddInput( AliTriggerInput* input )
{
+ // Add a trigger input to
+ // the list of the trigger inputs
if (fInputs.GetEntries() < kNMaxInputs) {
fInputs.AddLast( input );
return kTRUE;
UChar_t level, UInt_t signature,
UChar_t number )
{
+ // Add a trigger input to
+ // the list of the trigger inputs
AliTriggerInput *input = new AliTriggerInput(name,det,level,signature,number);
if (!AddInput(input)) {
delete input;
//_____________________________________________________________________________
AliTriggerInteraction* AliTriggerConfiguration::AddInteraction(TString &name, TString &logic)
{
+ // Add a trigger interaction object to
+ // the list of the trigger interactions
AliTriggerInteraction *interact = new AliTriggerInteraction(name,logic);
if (!AddInteraction(interact)) {
delete interact;
//_____________________________________________________________________________
Bool_t AliTriggerConfiguration::AddInteraction(AliTriggerInteraction *interact)
{
+ // Add a trigger interaction object to
+ // the list of the trigger interactions
if (fInteractions.GetEntries() < kNMaxInteractions) {
if (interact->CheckInputs(fInputs)) {
fInteractions.AddLast( interact );
//_____________________________________________________________________________
AliTriggerInteraction* AliTriggerConfiguration::AddFunction(TString &name, TString &logic)
{
+ // Add a trigger function object to
+ // the list of the trigger functions
AliTriggerInteraction *func = new AliTriggerInteraction(name,logic);
if (!AddFunction(func)) {
delete func;
//_____________________________________________________________________________
Bool_t AliTriggerConfiguration::AddFunction(AliTriggerInteraction *func)
{
+ // Add a trigger function object to
+ // the list of the trigger functions
if (fFunctions.GetEntries() < kNMaxFunctions) {
if (func->CheckInputs(fInputs)) {
fFunctions.AddLast( func );
//_____________________________________________________________________________
Bool_t AliTriggerConfiguration::AddPFProtection( AliTriggerPFProtection* pfp )
{
+ // Add a trigger past-future protection object to
+ // the list of the trigger past-future protections
if (fPFProtections.GetEntries() < kNMaxPFProtections) {
if (pfp->CheckInteractions(fInteractions)) {
fPFProtections.AddLast( pfp );
//_____________________________________________________________________________
AliTriggerBCMask* AliTriggerConfiguration::AddMask( TString &name, TString &mask )
{
+ // Add a trigger bunch-crossing mask object to
+ // the list of the trigger bunch-crossing masks
AliTriggerBCMask *bcmask = new AliTriggerBCMask(name,mask);
if (!AddMask(bcmask)) {
delete bcmask;
//_____________________________________________________________________________
Bool_t AliTriggerConfiguration::AddMask( AliTriggerBCMask* mask )
{
+ // Add a trigger bunch-crossing mask object to
+ // the list of the trigger bunch-crossing masks
if (fMasks.GetEntries() < kNMaxMasks) {
fMasks.AddLast( mask );
return kTRUE;
//_____________________________________________________________________________
AliTriggerCluster* AliTriggerConfiguration::AddCluster( TString &name, UChar_t index, TString &detectors)
{
+ // Add a trigger detector readout cluster to
+ // the list of the trigger clusters
AliTriggerCluster *clust = new AliTriggerCluster(name,index,detectors);
if (!AddCluster(clust)) {
delete clust;
//_____________________________________________________________________________
Bool_t AliTriggerConfiguration::AddCluster( AliTriggerCluster* cluster )
{
+ // Add a trigger detector readout cluster to
+ // the list of the trigger clusters
if (fClusters.GetEntries() < kNMaxClusters) {
TString dets(cluster->GetDetectorsInCluster());
if (!(dets.IsNull())) {
//_____________________________________________________________________________
TString AliTriggerConfiguration::GetActiveDetectors() const
{
- // Return an string with all active detector from each cluster
+ // Return an string with all active detector
+ // from each cluster
TString activeDet = "";
//_____________________________________________________________________________
TString AliTriggerConfiguration::GetTriggeringDetectors() const
{
- // Return an string with all detectors used for triggering
+ // Return an string with all detectors
+ // used for triggering
TString trDet = "";
//_____________________________________________________________________________
AliTriggerDescriptor* AliTriggerConfiguration::AddDescriptor( TString &name, TString &cond )
{
+ // Add a trigger descriptor to
+ // the list of the trigger descriptors
AliTriggerDescriptor *desc = new AliTriggerDescriptor(name,cond);
if (!AddDescriptor(desc)) {
delete desc;
//_____________________________________________________________________________
Bool_t AliTriggerConfiguration::AddDescriptor( AliTriggerDescriptor *desc )
{
+ // Add a trigger descriptor to
+ // the list of the trigger descriptors
if (fDescriptors.GetEntries() < kNMaxClasses) {
if (desc->CheckInputsAndFunctions(fInputs,fFunctions)) {
fDescriptors.AddLast( desc );
//_____________________________________________________________________________
Bool_t AliTriggerConfiguration::AddClass( AliTriggerClass *trclass )
{
+ // Add a trigger class to
+ // the list of the trigger classes
if (fClasses.GetEntries() < kNMaxClasses) {
if (trclass->CheckClass(this)) {
fClasses.AddLast( trclass );
AliTriggerPFProtection *pfp, AliTriggerBCMask *mask,
UInt_t prescaler, Bool_t allrare)
{
- // Add a new trigger class
+ // Add a trigger class to
+ // the list of the trigger classes
if (!fDescriptors.FindObject(desc)) {
AliError("Invalid descriptor ! Impossible to add the class !");
return NULL;