neugen_cuts Class Reference

#include <neugen3_dummy.h>

List of all members.

Public Member Functions

 neugen_cuts ()
 neugen_cuts (const char *name)
 neugen_cuts (kinematic_variable_t kvid, float kvmin, float kvmax, int procmask, bool sumQel, bool sumRes, bool sumDis)
 ~neugen_cuts ()
void setCut (kinematic_variable_t kvid, float kvmin, float kvmax)
void setProcmask (int in)
void setSumQel (bool sum)
void setSumRes (bool sum)
void setSumDis (bool sum)
void setOneProcess (process_t)
bool isCutSet (void) const
kinematic_variable_t cutKvid (void) const
float kvmin (void) const
float kvmax (void) const
int procmask (void) const
bool sumQel (void) const
bool sumRes (void) const
bool sumDis (void) const
void print (ostream &stream) const

Private Attributes

string _name
bool _cutset
kinematic_variable_t _kvid
float _kvmin
float _kvmax
int _procmask
bool _sumqel
bool _sumres
bool _sumdis

Friends

ostream & operator<< (ostream &stream, const neugen_cuts &final)

Detailed Description

____________________________________________________________________________

Definition at line 22 of file neugen3_dummy.h.


Constructor & Destructor Documentation

neugen_cuts::neugen_cuts (  ) 

Definition at line 26 of file neugen_cuts.cxx.

00026                          :
00027 _name("default"),_cutset(false)
00028 {
00029 }
//____________________________________________________________________________

neugen_cuts::neugen_cuts ( const char *  name  ) 

Definition at line 31 of file neugen_cuts.cxx.

00031                                           :
00032 _name(name),
00033 _cutset(false)
00034 {
00035 
00036 }
//____________________________________________________________________________

neugen_cuts::neugen_cuts ( kinematic_variable_t  kvid,
float  kvmin,
float  kvmax,
int  procmask,
bool  sumQel,
bool  sumRes,
bool  sumDis 
)

Definition at line 38 of file neugen_cuts.cxx.

00039                                                                               :
00040 _cutset   (true), 
00041 _kvid     (kvid), 
00042 _kvmin    (kvmin), 
00043 _kvmax    (kvmax), 
00044 _procmask (procmask),
00045 _sumqel   (sumQel), 
00046 _sumres   (sumRes), 
00047 _sumdis   (sumDis)
00048 {
00049 
00050 }
//____________________________________________________________________________

neugen_cuts::~neugen_cuts (  ) 

Definition at line 52 of file neugen_cuts.cxx.

00053 {
00054 
00055 }


Member Function Documentation

kinematic_variable_t neugen_cuts::cutKvid ( void   )  const [inline]

Definition at line 46 of file neugen_cuts.h.

References _kvid.

00046 { return _kvid;     } 

bool neugen_cuts::isCutSet ( void   )  const [inline]

Definition at line 45 of file neugen_cuts.h.

References _cutset.

00045 { return _cutset;   }

float neugen_cuts::kvmax ( void   )  const [inline]

Definition at line 48 of file neugen_cuts.h.

References _kvmax.

00048 { return _kvmax;    }

float neugen_cuts::kvmin ( void   )  const [inline]

Definition at line 47 of file neugen_cuts.h.

References _kvmin.

00047 { return _kvmin;    }

void neugen_cuts::print ( ostream &  stream  )  const

Definition at line 75 of file neugen_cuts.cxx.

References _cutset, _kvid, _kvmax, _kvmin, _procmask, _sumdis, _sumqel, _sumres, and ccnc::as_string().

00076 {
00077   stream << "CutSet:..........." << _cutset << endl;
00078   stream << "Kvid:............." << kinematic_variable::as_string(_kvid) << endl;
00079   stream << "min:.............." << _kvmin << endl;
00080   stream << "max:.............." << _kvmax << endl;
00081   stream << "procmask:........." << _procmask << endl;
00082   stream << "sum(qel):........." << _sumqel  << endl;
00083   stream << "sum(res):........." << _sumres  << endl;
00084   stream << "sum(dis):........." << _sumdis  << endl;
00085 }

int neugen_cuts::procmask ( void   )  const [inline]

Definition at line 49 of file neugen_cuts.h.

References _procmask.

00049 { return _procmask; }

void neugen_cuts::setCut ( kinematic_variable_t  kvid,
float  kvmin,
float  kvmax 
)

Definition at line 57 of file neugen_cuts.cxx.

References _cutset, _kvid, _kvmax, and _kvmin.

00058 {
00059   _cutset = true;
00060   _kvid  = kvid;
00061   _kvmin = kvmin;
00062   _kvmax = kvmax;
00063 }

void neugen_cuts::setOneProcess ( process_t  proc  ) 

Definition at line 65 of file neugen_cuts.cxx.

References _sumdis, _sumqel, _sumres, and setProcmask().

Referenced by NuSystematic::QELXSecShiftScale(), NuSystematic::ResXSecShiftScale(), and neugen_wrapper::reweight().

00066 {
00067   _sumqel = false;
00068   _sumres = false;
00069   _sumdis = false;
00070   if(proc==1001) { setProcmask(6); _sumqel = true;}
00071   if(proc==1002) setProcmask(5);
00072   if(proc==1003) setProcmask(3);  
00073 }

void neugen_cuts::setProcmask ( int  in  )  [inline]

Definition at line 39 of file neugen_cuts.h.

References _procmask.

Referenced by setOneProcess().

00039 { _procmask = in;  }

void neugen_cuts::setSumDis ( bool  sum  )  [inline]

Definition at line 42 of file neugen_cuts.h.

References _sumdis.

00042 { _sumdis   = sum; }

void neugen_cuts::setSumQel ( bool  sum  )  [inline]

Definition at line 40 of file neugen_cuts.h.

References _sumqel.

00040 { _sumqel   = sum; }

void neugen_cuts::setSumRes ( bool  sum  )  [inline]

Definition at line 41 of file neugen_cuts.h.

References _sumres.

00041 { _sumres   = sum; }

bool neugen_cuts::sumDis ( void   )  const [inline]

Definition at line 52 of file neugen_cuts.h.

References _sumdis.

00052 { return _sumdis;   }

bool neugen_cuts::sumQel ( void   )  const [inline]

Definition at line 50 of file neugen_cuts.h.

References _sumqel.

00050 { return _sumqel;   }

bool neugen_cuts::sumRes ( void   )  const [inline]

Definition at line 51 of file neugen_cuts.h.

References _sumres.

00051 { return _sumres;   }


Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const neugen_cuts final 
) [friend]

Member Data Documentation

bool neugen_cuts::_cutset [private]

Definition at line 61 of file neugen_cuts.h.

Referenced by isCutSet(), print(), and setCut().

Definition at line 62 of file neugen_cuts.h.

Referenced by cutKvid(), print(), and setCut().

float neugen_cuts::_kvmax [private]

Definition at line 64 of file neugen_cuts.h.

Referenced by kvmax(), print(), and setCut().

float neugen_cuts::_kvmin [private]

Definition at line 63 of file neugen_cuts.h.

Referenced by kvmin(), print(), and setCut().

string neugen_cuts::_name [private]

Definition at line 60 of file neugen_cuts.h.

int neugen_cuts::_procmask [private]

Definition at line 65 of file neugen_cuts.h.

Referenced by print(), procmask(), and setProcmask().

bool neugen_cuts::_sumdis [private]

Definition at line 68 of file neugen_cuts.h.

Referenced by print(), setOneProcess(), setSumDis(), and sumDis().

bool neugen_cuts::_sumqel [private]

Definition at line 66 of file neugen_cuts.h.

Referenced by print(), setOneProcess(), setSumQel(), and sumQel().

bool neugen_cuts::_sumres [private]

Definition at line 67 of file neugen_cuts.h.

Referenced by print(), setOneProcess(), setSumRes(), and sumRes().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1