-
-AliHLTGlobalTrigger::Factory::~Factory()
-{
- // The default destructor deregisters the factory.
-
- for (int i = 0; i < kMaxFactories; i++)
- {
- if (fFactory[i] == this)
- {
- fFactory[i] = NULL;
- return;
- }
- }
-
- HLTFatal("Could not find factory to deregister.");
-}
-
-
-void AliHLTGlobalTrigger::ResetCounters(UInt_t number)
-{
- // Resets the trigger counters.
-
- if (!fCounters) fCounters = new TArrayL64(number);
- if (!fCounters) return;
-
- fCounters->Set(number);
- for (UInt_t i = 0; i < number; i++)
- {
- (*fCounters)[i] = 0;
- }
-}
-
-void AliHLTGlobalTrigger::IncrementCounter(UInt_t i)
-{
- // increment a specific counter
- if (fCounters && i<fCounters->GetSize()) ++(*fCounters)[i];
-}
-
-Long64_t AliHLTGlobalTrigger::GetCounter(UInt_t i) const
-{
- if (fCounters && i<fCounters->GetSize()) return (*fCounters)[i];
- return 0;
-}