// //
///////////////////////////////////////////////////////////////////////////////
+#include <Riostream.h>
#include <TNamed.h>
#include <TString.h>
#include <TObjArray.h>
void AliTriggerDetector::SetInput( TString& name )
{
// Set Input by name
- AliTriggerInput* in = ((AliTriggerInput*)fInputs.FindObject( name.Data() ));
- in->Set();
- fMask |= in->GetValue();
+ SetInput( name.Data() );
}
//_____________________________________________________________________________
{
// Set Input by name
AliTriggerInput* in = ((AliTriggerInput*)fInputs.FindObject( name ));
- in->Set();
- fMask |= in->GetValue();
+ if( in ) {
+ in->Set();
+ fMask |= in->GetValue();
+ } else
+ AliError( Form( "There is not input named %s", name ) );
}
//_____________________________________________________________________________
}
}
+//_____________________________________________________________________________
+void AliTriggerDetector::Print( const Option_t* opt ) const
+{
+ // Print
+ cout << "Trigger Detector : " << GetName() << endl;
+ cout << " Trigger Class Mask: 0x" << hex << GetMask() << dec << endl;
+ Int_t nInputs = fInputs.GetEntriesFast();
+ for( Int_t j=0; j<nInputs; j++ ) {
+ AliTriggerInput* in = (AliTriggerInput*)fInputs.At( j );
+ in->Print( opt );
+ }
+}