CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
L1GlobalTriggerFunctions.cc File Reference

Go to the source code of this file.

Functions

int factorial (int n)
 factorial function More...
 

Function Documentation

int factorial ( int  n)

factorial function

Definition at line 3 of file L1GlobalTriggerFunctions.cc.

References factorial().

Referenced by L1GtMuonCondition::evaluateCondition(), L1GtCaloCondition::evaluateCondition(), and factorial().

3  {
4  return (n <= 0) ? 1:(n*factorial(n-1));
5 }
int factorial(int n)
factorial function