MSTCalc Class Reference

#include <MSTCalc.h>

List of all members.

Public Member Functions

 MSTCalc ()
 MSTCalc (const MSTCalc &mst)
virtual ~MSTCalc ()
virtual void Print (Option_t *option="") const
void Reset ()
void Clear (Option_t *option="")

Public Attributes

int enmsg
float ew1
int enn1
float esm1
float ewtot
int enntot
float esmtot
float e4w
float e4sm
int e4nn
float eb1
float eb25
int enbranch
int onmsg
float ow1
int onn1
float osm1
float owtot
int onntot
float osmtot
float o4w
float o4sm
int o4nn
float ob1
float ob25
int onbranch
float * eallw1
float * oallw1
float * eallm1
float * oallm1
double eeprob
double oeprob
double ealpha
double oalpha
double ebeta
double obeta

Detailed Description

Definition at line 6 of file MSTCalc.h.


Constructor & Destructor Documentation

MSTCalc::MSTCalc (  ) 

Definition at line 6 of file MSTCalc.cxx.

References eallm1, eallw1, ANtpDefaultValue::kFloat, oallm1, and oallw1.

MSTCalc::MSTCalc ( const MSTCalc mst  ) 

Definition at line 56 of file MSTCalc.cxx.

References eallm1, eallw1, enn1, ANtpDefaultValue::kFloat, oallm1, oallw1, and onn1.

00056                                   :
00057   TObject(),
00058   enmsg(mst.enmsg),
00059   ew1(mst.ew1),
00060   enn1(mst.enn1),
00061   esm1(mst.esm1),
00062   ewtot(mst.ewtot),
00063   enntot(mst.enntot),
00064   esmtot(mst.esmtot),
00065   e4w(mst.e4w),
00066   e4sm(mst.e4sm),
00067   e4nn(mst.e4nn),
00068   eb1(mst.eb1),
00069   eb25(mst.eb25),
00070   enbranch(mst.enbranch),
00071   
00072   onmsg(mst.onmsg),
00073   ow1(mst.ow1),
00074   onn1(mst.onn1),
00075   osm1(mst.osm1),
00076   owtot(mst.owtot),
00077   onntot(mst.onntot),
00078   osmtot(mst.osmtot),
00079   o4w(mst.o4w),
00080   o4sm(mst.o4sm),
00081   o4nn(mst.o4nn),
00082   ob1(mst.ob1),
00083   ob25(mst.ob25),
00084   onbranch(mst.onbranch),
00085   
00086   eeprob(mst.eeprob),
00087   oeprob(mst.oeprob),
00088   ealpha(mst.ealpha),
00089   oalpha(mst.oalpha),
00090   
00091   ebeta(mst.ebeta),
00092   obeta(mst.obeta)
00093 {
00094    eallw1=new float[2880];
00095    oallw1=new float[2880];
00096    eallm1=new float[2880];
00097    oallm1=new float[2880];
00098 
00099    for(int i=0;i<2880;i++){
00100       if(i<mst.enn1){
00101          eallw1[i]=mst.eallw1[i];
00102          eallm1[i]=mst.eallm1[i];
00103       }
00104       else{
00105          eallw1[i]=ANtpDefVal::kFloat;
00106          eallm1[i]=ANtpDefVal::kFloat;
00107       }
00108       if(i<mst.onn1){
00109          oallw1[i]=mst.oallw1[i];
00110          oallm1[i]=mst.oallm1[i];
00111       }
00112       else{
00113          oallw1[i]=ANtpDefVal::kFloat;
00114          oallm1[i]=ANtpDefVal::kFloat;
00115       }
00116    }
00117 }

MSTCalc::~MSTCalc (  )  [virtual]

Definition at line 121 of file MSTCalc.cxx.

References eallm1, eallw1, oallm1, and oallw1.

00122 {
00123    delete[] eallw1;
00124    delete[] oallw1;
00125    delete[] eallm1;
00126    delete[] oallm1;
00127 }


Member Function Documentation

void MSTCalc::Clear ( Option_t *  option = ""  ) 

Definition at line 129 of file MSTCalc.cxx.

References eallm1, eallw1, oallm1, oallw1, and Reset().

00130 {
00131   Reset();
00132   delete[] eallw1;
00133   delete[] oallw1;
00134   delete[] eallm1;
00135   delete[] oallm1;
00136 }

void MSTCalc::Print ( Option_t *  option = ""  )  const [virtual]

Definition at line 195 of file MSTCalc.cxx.

References e4sm, e4w, ealpha, eb1, eb25, eeprob, enbranch, enmsg, enn1, enntot, esm1, esmtot, ew1, ewtot, o4sm, o4w, oalpha, ob1, ob25, oeprob, onbranch, onmsg, onn1, onntot, osm1, osmtot, ow1, and owtot.

Referenced by MSTCalcAna::Print().

00196 {
00197   std::cout<<"MSTCalcAna::Print******"<<std::endl
00198            <<"NMSG even: "<<enmsg<<" odd: "<<onmsg<<std::endl
00199            <<"W1  even: "<<ew1<<" odd: "<<ow1<<std::endl
00200            <<"NN1 even: "<<enn1<<" odd: "<<onn1<<std::endl
00201            <<"SM1 even: "<<esm1<<" odd: "<<osm1<<std::endl
00202            <<"WTOT even: "<<ewtot<<" odd: "<<owtot<<std::endl
00203            <<"NNTOT even: "<<enntot<<" odd: "<<onntot<<std::endl
00204            <<"SMTOT even: "<<esmtot<<" odd: "<<osmtot<<std::endl
00205            <<"4W even: "<<e4w<<" odd: "<<o4w<<std::endl
00206            <<"4SM even: "<<e4sm<<" odd: "<<o4sm<<std::endl
00207            <<"Ele Prob even: "<<eeprob<<" odd: "<<oeprob<<std::endl
00208            <<"Alpha even: "<<ealpha<<" odd: "<<oalpha<<std::endl
00209            <<"Ratio B1 even "<<eb1<<" odd: "<<ob1<<std::endl
00210            <<"Ratio B25 even "<<eb25<<" odd: "<<ob25<<std::endl
00211            <<"NBranches even "<<enbranch<<" odd: "<<onbranch<<std::endl;
00212 }

void MSTCalc::Reset (  ) 

Definition at line 138 of file MSTCalc.cxx.

References e4nn, e4sm, e4w, eallm1, eallw1, ealpha, eb1, eb25, ebeta, eeprob, enbranch, enmsg, enn1, enntot, esm1, esmtot, ew1, ewtot, ANtpDefaultValue::kFloat, ANtpDefaultValue::kInt, o4nn, o4sm, o4w, oallm1, oallw1, oalpha, ob1, ob25, obeta, oeprob, onbranch, onmsg, onn1, onntot, osm1, osmtot, ow1, and owtot.

Referenced by Clear(), MSTCalcAna::Reset(), and NueRecord::Reset().

00139 {
00140    enmsg=ANtpDefVal::kInt;
00141    ew1=ANtpDefVal::kFloat;
00142    enn1=ANtpDefVal::kInt;
00143    esm1=ANtpDefVal::kFloat;
00144    ewtot=ANtpDefVal::kFloat;
00145    enntot=ANtpDefVal::kInt;
00146    esmtot=ANtpDefVal::kFloat;
00147    e4w=ANtpDefVal::kFloat;
00148    e4sm=ANtpDefVal::kFloat;
00149    e4nn=ANtpDefVal::kInt;
00150    eb1=ANtpDefVal::kFloat;
00151    eb25=ANtpDefVal::kFloat;
00152    enbranch=ANtpDefVal::kInt;
00153    
00154    onmsg=ANtpDefVal::kInt;
00155    ow1=ANtpDefVal::kFloat;
00156    onn1=ANtpDefVal::kInt;
00157    osm1=ANtpDefVal::kFloat;
00158    owtot=ANtpDefVal::kFloat;
00159    onntot=ANtpDefVal::kInt;
00160    osmtot=ANtpDefVal::kFloat;
00161    o4w=ANtpDefVal::kFloat;
00162    o4sm=ANtpDefVal::kFloat;
00163    o4nn=ANtpDefVal::kInt;
00164    ob1=ANtpDefVal::kFloat;
00165    ob25=ANtpDefVal::kFloat;
00166    onbranch=ANtpDefVal::kInt;
00167 
00168    eeprob=ANtpDefVal::kFloat;
00169    oeprob=ANtpDefVal::kFloat;
00170    ealpha=ANtpDefVal::kFloat;
00171    oalpha=ANtpDefVal::kFloat;
00172 
00173    ebeta=ANtpDefVal::kFloat;
00174    obeta=ANtpDefVal::kFloat;
00175 
00176    delete[] eallw1;
00177    delete[] oallw1;
00178    delete[] eallm1;
00179    delete[] oallm1;
00180 
00181    eallw1=new float[2880];
00182    oallw1=new float[2880];
00183    eallm1=new float[2880];
00184    oallm1=new float[2880];  
00185  
00186 
00187    for(int i=0;i<2880;i++){
00188      eallw1[i]=ANtpDefVal::kFloat;
00189      oallw1[i]=ANtpDefVal::kFloat;
00190      eallm1[i]=ANtpDefVal::kFloat;
00191      oallm1[i]=ANtpDefVal::kFloat;
00192    }
00193 }


Member Data Documentation

float MSTCalc::e4w
float MSTCalc::eb1

Definition at line 57 of file MSTCalc.h.

Referenced by MSTCalcAna::ComputeGraphQuantities(), CompareMD::FillFromList(), and Reset().

float MSTCalc::ew1
float MSTCalc::o4w
float MSTCalc::ob1

Definition at line 58 of file MSTCalc.h.

Referenced by MSTCalcAna::ComputeGraphQuantities(), CompareMD::FillFromList(), and Reset().

float MSTCalc::ow1

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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1