#include <TPN.h>
Public Types | |
enum | outVar { iPN, iPNoPN, iPNoPN0, iPNoPN1, nOutVar } |
Public Member Functions | |
void | addEntry (double, double, double) |
std::vector< double > | get (int) |
std::vector< double > | getPN () |
std::vector< double > | getPNoPN () |
std::vector< double > | getPNoPN0 () |
std::vector< double > | getPNoPN1 () |
void | init () |
void | setCut (int, double, double) |
void | setPNCut (double, double) |
void | setPNoPN0Cut (double, double) |
void | setPNoPN1Cut (double, double) |
void | setPNoPNCut (double, double) |
TPN (int iPN=0) | |
virtual | ~TPN () |
Public Attributes | |
int | _nPN |
double | cuts [2][nOutVar] |
TMom * | mom [nOutVar] |
enum TPN::outVar |
TPN::TPN | ( | int | iPN = 0 | ) |
void TPN::addEntry | ( | double | pn, |
double | pn0, | ||
double | pn1 | ||
) |
Definition at line 41 of file TPN.cc.
Referenced by EcalLaserAnalyzer2::endJob(), and EcalLaserAnalyzer::endJob().
{ double val[nOutVar]; if(_nPN==0) val[iPN]=pn0; else val[iPN]=pn1; if(pn!=0) val[iPNoPN]=val[iPN]/pn; else val[iPNoPN]=0; if(pn0!=0) val[iPNoPN0]=val[iPN]/pn0; else val[iPNoPN0]=0; if(pn1!=0) val[iPNoPN1]=val[iPN]/pn1; else val[iPNoPN1]=0; for(int ivar=0;ivar<nOutVar;ivar++){ mom[ivar]->addEntry(val[ivar]); } }
std::vector< double > TPN::get | ( | int | ivar | ) |
std::vector< double > TPN::getPN | ( | ) |
Definition at line 97 of file TPN.cc.
Referenced by EcalLaserAnalyzer2::endJob(), and EcalLaserAnalyzer::endJob().
{vector <double> x= get(TPN::iPN); return x;}
std::vector< double > TPN::getPNoPN | ( | ) |
Definition at line 98 of file TPN.cc.
Referenced by EcalLaserAnalyzer2::endJob(), and EcalLaserAnalyzer::endJob().
{vector <double> x= get(TPN::iPNoPN); return x;}
std::vector< double > TPN::getPNoPN0 | ( | ) |
Definition at line 99 of file TPN.cc.
Referenced by EcalLaserAnalyzer2::endJob(), and EcalLaserAnalyzer::endJob().
{vector <double> x= get(TPN::iPNoPN0); return x;}
std::vector< double > TPN::getPNoPN1 | ( | ) |
Definition at line 100 of file TPN.cc.
Referenced by EcalLaserAnalyzer2::endJob(), and EcalLaserAnalyzer::endJob().
{vector <double> x= get(TPN::iPNoPN1); return x;}
void TPN::init | ( | ) |
void TPN::setCut | ( | int | ivar, |
double | mean, | ||
double | sig | ||
) |
void TPN::setPNCut | ( | double | mean, |
double | sig | ||
) |
Definition at line 73 of file TPN.cc.
References iPN.
Referenced by EcalLaserAnalyzer2::endJob(), and EcalLaserAnalyzer::endJob().
void TPN::setPNoPN0Cut | ( | double | mean, |
double | sig | ||
) |
void TPN::setPNoPN1Cut | ( | double | mean, |
double | sig | ||
) |
void TPN::setPNoPNCut | ( | double | mean, |
double | sig | ||
) |