Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ANtpDefaultValue.cxx

Go to the documentation of this file.
00001 
00002 // $Id: ANtpDefaultValue.cxx,v 1.1 2005/05/16 20:46:29 brebel Exp $
00003 //
00004 // A class to hold default values for AnalysisNtuples
00005 //
00006 // J. Boehm 5/2005
00008 #include "AnalysisNtuples/ANtpDefaultValue.h"
00009 #include <algorithm>
00010 
00011             
00012 Bool_t ANtpDefaultValue::IsDefault(Float_t fval)
00013 {
00014    return (TMath::Abs(fval - kFloat) < 1e-4);
00015 }
00016 
00017 Bool_t ANtpDefaultValue::IsDefault(Int_t ival) 
00018 {
00019    return (ival == kInt);
00020 }
00021 
00022 Bool_t ANtpDefaultValue::IsDefault(UInt_t uival)
00023 {
00024    return (uival == kUInt);
00025 }
00026 
00027 Bool_t ANtpDefaultValue::IsDefault(Double_t dval) 
00028 {
00029    return (TMath::Abs(dval - kDouble) < 1e-4);
00030 }
00031 
00032 Bool_t ANtpDefaultValue::IsDefault(Bool_t bval) 
00033 {
00034    return (bval == kBool);
00035 }
00036 

Generated on Mon Feb 15 11:06:22 2010 for loon by  doxygen 1.3.9.1