ASCcno Class Reference

Class for accessing counters in the ASC Cno contribution. More...

#include <ASCcno.h>

List of all members.

Public Types

 One = 0
 TwoL
 TwoR
 Three
 FourL
 FourR
 N_BoardPair
 A = 0
 B
 None = 0
 AOnly
 BOnly
 Both
 N_BoardStatus
enum  BoardPair {
  One = 0, TwoL, TwoR, Three,
  FourL, FourR, N_BoardPair
}
enum  BoardBit { A = 0, B }
enum  BoardStatus {
  None = 0, AOnly, BOnly, Both,
  N_BoardStatus
}

Public Member Functions

 ASCcno (unsigned ptr[24])
 Constructor for initializing the ASCcno class with a ptr to the data.
unsigned counts (BoardPair board, BoardStatus status) const
 Method for returning the number of counts with particular status flags.
unsigned counts_fired (BoardPair board) const
 Method for returning the number times a particular Board pair fired.
unsigned counts_fired (BoardPair board, BoardBit AorB) const
 Static method for returning the number times a particular Board pair fired.
unsigned * ptr () const

Static Public Member Functions

static unsigned counts (unsigned *ptr, BoardPair board, BoardStatus status)
 Static method for returning the number of counts with particular status flags.
static unsigned counts_fired (unsigned *ptr, BoardPair board)
 Static method for returning the number times a particular Board pair fired.
static unsigned counts_fired (unsigned *ptr, BoardPair board, BoardBit AorB)
 Static method for returning the number times a particular Board pair fired.


Detailed Description

Class for accessing counters in the ASC Cno contribution.

Author:
Eric Charles -- GLAST LAT I&T/SVAC - (echarles@slac.stanford.edu)
Revision
1.1
Date:
September 21, 2005 -- Created
Id
ASCcno.h,v 1.1 2005/09/28 22:04:13 echarles Exp

Copyright: Copyright 2005 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved.


Constructor & Destructor Documentation

ASCcno::ASCcno ( unsigned  ptr[24]  )  [inline]

Constructor for initializing the ASCcno class with a ptr to the data.

Parameters:
ptr - pointer to the first bin of the ASC CNO data


Member Function Documentation

unsigned ASCcno::counts ( BoardPair  board,
BoardStatus  status 
) const [inline]

Method for returning the number of counts with particular status flags.

Parameters:
pair - which pair of free boards
status - CNO status of the free board pair
Returns:
Number of counts with status coming in the pair

unsigned ASCcno::counts ( unsigned *  ptr,
BoardPair  board,
BoardStatus  status 
) [inline, static]

Static method for returning the number of counts with particular status flags.

Parameters:
ptr - pointer to the first bin of the histogram
pair - which pair of free boards
status - CNO status of the free board pair
Returns:
Number of counts with status coming in the pair

unsigned ASCcno::counts_fired ( BoardPair  board,
BoardBit  AorB 
) const [inline]

Static method for returning the number times a particular Board pair fired.

Parameters:
ptr - pointer to the first bin of the histogram
board - which pair of free boards
AorB - which board in the pair
Returns:
Number of counts with board fired

unsigned ASCcno::counts_fired ( unsigned *  ptr,
BoardPair  board,
BoardBit  AorB 
) [inline, static]

Static method for returning the number times a particular Board pair fired.

Parameters:
ptr - pointer to the first bin of the histogram
board - which pair of free boards
AorB - which board in the pair
Returns:
Number of counts with board fired

unsigned ASCcno::counts_fired ( BoardPair  board  )  const [inline]

Method for returning the number times a particular Board pair fired.

Parameters:
board - which pair of free boards
Returns:
Number of counts with either board fired

unsigned ASCcno::counts_fired ( unsigned *  ptr,
BoardPair  board 
) [inline, static]

Static method for returning the number times a particular Board pair fired.

Parameters:
ptr - pointer to the first bin of the histogram
board - which pair of free boards
Returns:
Number of counts with either board fired


The documentation for this class was generated from the following file:
Generated on Mon Jul 31 17:48:12 2006 for LDF v06-02-00 by doxygen 1.4.7