CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Public Attributes
TMTQ Class Reference

#include <TMTQ.h>

Public Types

enum  outVar {
  iPeak, iSigma, iFit, iAmpl,
  iTrise, iFwhm, iFw20, iFw80,
  iPed, iPedsig, iSlide, nOutVar
}
 

Public Member Functions

void addEntry (double, double, double, double, double, double, double, double, double, double, double)
 
std::vector< double > get (int)
 
std::vector< double > getAmpl ()
 
std::vector< double > getFit ()
 
std::vector< double > getFw20 ()
 
std::vector< double > getFw80 ()
 
std::vector< double > getFwhm ()
 
std::vector< double > getPeak ()
 
std::vector< double > getPed ()
 
std::vector< double > getPedsig ()
 
std::vector< double > getSigma ()
 
std::vector< double > getSliding ()
 
std::vector< double > getTrise ()
 
void init ()
 
void setCut (int, double, double)
 
 TMTQ ()
 
virtual ~TMTQ ()
 

Public Attributes

double cuts [2][nOutVar]
 
TMommom [nOutVar]
 

Detailed Description

Definition at line 8 of file TMTQ.h.

Member Enumeration Documentation

Enumerator
iPeak 
iSigma 
iFit 
iAmpl 
iTrise 
iFwhm 
iFw20 
iFw80 
iPed 
iPedsig 
iSlide 
nOutVar 

Definition at line 14 of file TMTQ.h.

Constructor & Destructor Documentation

TMTQ::TMTQ ( )

Definition at line 19 of file TMTQ.cc.

References init.

20 {
21  init();
22 }
void init()
Definition: TMTQ.cc:30
TMTQ::~TMTQ ( )
virtual

Definition at line 26 of file TMTQ.cc.

27 {
28 }

Member Function Documentation

void TMTQ::addEntry ( double  peak,
double  sigma,
double  fit,
double  ampl,
double  trise,
double  fwhm,
double  fw20,
double  fw80,
double  ped,
double  pedsig,
double  sliding 
)

Definition at line 40 of file TMTQ.cc.

41 {
42  double val[nOutVar];
43 
44  val[iPeak]=peak;
45  val[iSigma]=sigma;
46  val[iFit]=fit;
47  val[iAmpl]=ampl;
48  val[iTrise]=trise;
49  val[iFwhm]=fwhm;
50  val[iFw20]=fw20;
51  val[iFw80]=fw80;
52  val[iPed]=ped;
53  val[iPedsig]=pedsig;
54  val[iSlide]=sliding;
55 
56  for(int ivar=0;ivar<nOutVar;ivar++){
57  mom[ivar]->addEntry(val[ivar]);
58  }
59 
60 }
void addEntry(double val)
Definition: TMom.cc:111
TMom * mom[nOutVar]
Definition: TMTQ.h:18
std::vector< double > TMTQ::get ( int  ivar)

Definition at line 72 of file TMTQ.cc.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), EcalMatacqAnalyzer::endJob(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

72  {
73 
74  std::vector<double> res;
75 
76  if(ivar<nOutVar){
77 
78  res.push_back(mom[ivar]->getMean());
79  res.push_back(mom[ivar]->getRMS());
80  res.push_back(mom[ivar]->getM3());
81  res.push_back(mom[ivar]->getNevt());
82  res.push_back(mom[ivar]->getMin());
83  res.push_back(mom[ivar]->getMax());
84 
85  }
86  return res;
87 
88 }
TMom * mom[nOutVar]
Definition: TMTQ.h:18
std::vector< double > TMTQ::getAmpl ( )

Definition at line 91 of file TMTQ.cc.

References iAmpl, and vdt::x.

91 {std::vector<double> x=get(TMTQ::iAmpl); return x;}
x
Definition: VDTMath.h:216
std::vector< double > TMTQ::getFit ( )

Definition at line 94 of file TMTQ.cc.

References iFit, and vdt::x.

94 {std::vector<double> x=get(TMTQ::iFit); return x;}
x
Definition: VDTMath.h:216
std::vector< double > TMTQ::getFw20 ( )

Definition at line 96 of file TMTQ.cc.

References iFw20, and vdt::x.

96 {std::vector<double> x=get(TMTQ::iFw20); return x;}
x
Definition: VDTMath.h:216
std::vector< double > TMTQ::getFw80 ( )

Definition at line 97 of file TMTQ.cc.

References iFw80, and vdt::x.

97 {std::vector<double> x=get(TMTQ::iFw80); return x;}
x
Definition: VDTMath.h:216
std::vector< double > TMTQ::getFwhm ( )

Definition at line 95 of file TMTQ.cc.

References iFwhm, and vdt::x.

95 {std::vector<double> x=get(TMTQ::iFwhm); return x;}
x
Definition: VDTMath.h:216
std::vector< double > TMTQ::getPeak ( )

Definition at line 90 of file TMTQ.cc.

References iPeak, and vdt::x.

90 {std::vector<double> x=get(TMTQ::iPeak); return x;}
x
Definition: VDTMath.h:216
std::vector< double > TMTQ::getPed ( )

Definition at line 98 of file TMTQ.cc.

References iPed, and vdt::x.

98 {std::vector<double> x=get(TMTQ::iPed); return x;}
x
Definition: VDTMath.h:216
std::vector< double > TMTQ::getPedsig ( )

Definition at line 99 of file TMTQ.cc.

References iPedsig, and vdt::x.

99 {std::vector<double> x=get(TMTQ::iPedsig); return x;}
x
Definition: VDTMath.h:216
std::vector< double > TMTQ::getSigma ( )

Definition at line 92 of file TMTQ.cc.

References iSigma, and vdt::x.

92 {std::vector<double> x=get(TMTQ::iSigma); return x;}
x
Definition: VDTMath.h:216
std::vector< double > TMTQ::getSliding ( )

Definition at line 100 of file TMTQ.cc.

References iSlide, and vdt::x.

100 {std::vector<double> x=get(TMTQ::iSlide); return x;}
x
Definition: VDTMath.h:216
std::vector< double > TMTQ::getTrise ( )

Definition at line 93 of file TMTQ.cc.

References iTrise, and vdt::x.

93 {std::vector<double> x=get(TMTQ::iTrise); return x;}
x
Definition: VDTMath.h:216
void TMTQ::init ( )

Definition at line 30 of file TMTQ.cc.

References hpstanc_transforms::cuts, and j.

31 {
32 
33  for(int j=0;j<nOutVar;j++){
34  cuts[0][j]=0.0;
35  cuts[1][j]=10.0e9;
36  mom[j]=new TMom();
37  }
38 }
double cuts[2][nOutVar]
Definition: TMTQ.h:16
Definition: TMom.h:7
int j
Definition: DBlmapReader.cc:9
TMom * mom[nOutVar]
Definition: TMTQ.h:18
void TMTQ::setCut ( int  ivar,
double  mean,
double  sig 
)

Definition at line 62 of file TMTQ.cc.

References hpstanc_transforms::cuts.

62  {
63 
64  if(ivar<nOutVar){
65  cuts[0][ivar]=mean-2.0*sig;
66  cuts[1][ivar]=mean+2.0*sig;
67 
68  mom[ivar]->setCut(cuts[0][ivar],cuts[1][ivar]);
69  }
70 }
void setCut(double, double)
Definition: TMom.cc:91
double cuts[2][nOutVar]
Definition: TMTQ.h:16
TMom * mom[nOutVar]
Definition: TMTQ.h:18

Member Data Documentation

double TMTQ::cuts[2][nOutVar]

Definition at line 16 of file TMTQ.h.

TMom* TMTQ::mom[nOutVar]

Definition at line 18 of file TMTQ.h.