CMS 3D CMS Logo

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 18 of file TMTQ.cc.

References init.

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

Definition at line 25 of file TMTQ.cc.

26 {
27 }

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 39 of file TMTQ.cc.

References trackingPlots::fit, ctppsDiamondLocalTracks_cfi::sigma, and heppy_batch::val.

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

Definition at line 90 of file TMTQ.cc.

References iAmpl, and x().

90 {std::vector<double> x=get(TMTQ::iAmpl); return x;}
std::vector< double > TMTQ::getFit ( )

Definition at line 93 of file TMTQ.cc.

References iFit, and x().

93 {std::vector<double> x=get(TMTQ::iFit); return x;}
std::vector< double > TMTQ::getFw20 ( )

Definition at line 95 of file TMTQ.cc.

References iFw20, and x().

95 {std::vector<double> x=get(TMTQ::iFw20); return x;}
std::vector< double > TMTQ::getFw80 ( )

Definition at line 96 of file TMTQ.cc.

References iFw80, and x().

96 {std::vector<double> x=get(TMTQ::iFw80); return x;}
std::vector< double > TMTQ::getFwhm ( )

Definition at line 94 of file TMTQ.cc.

References iFwhm, and x().

94 {std::vector<double> x=get(TMTQ::iFwhm); return x;}
std::vector< double > TMTQ::getPeak ( )

Definition at line 89 of file TMTQ.cc.

References iPeak, and x().

89 {std::vector<double> x=get(TMTQ::iPeak); return x;}
std::vector< double > TMTQ::getPed ( )

Definition at line 97 of file TMTQ.cc.

References iPed, and x().

97 {std::vector<double> x=get(TMTQ::iPed); return x;}
std::vector< double > TMTQ::getPedsig ( )

Definition at line 98 of file TMTQ.cc.

References iPedsig, and x().

98 {std::vector<double> x=get(TMTQ::iPedsig); return x;}
std::vector< double > TMTQ::getSigma ( )

Definition at line 91 of file TMTQ.cc.

References iSigma, and x().

91 {std::vector<double> x=get(TMTQ::iSigma); return x;}
std::vector< double > TMTQ::getSliding ( )

Definition at line 99 of file TMTQ.cc.

References iSlide, and x().

99 {std::vector<double> x=get(TMTQ::iSlide); return x;}
std::vector< double > TMTQ::getTrise ( )

Definition at line 92 of file TMTQ.cc.

References iTrise, and x().

92 {std::vector<double> x=get(TMTQ::iTrise); return x;}
void TMTQ::init ( )

Definition at line 29 of file TMTQ.cc.

References particleFlowClusterECALTimeSelected_cfi::cuts.

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

Definition at line 61 of file TMTQ.cc.

References particleFlowClusterECALTimeSelected_cfi::cuts.

61  {
62 
63  if(ivar<nOutVar){
64  cuts[0][ivar]=mean-2.0*sig;
65  cuts[1][ivar]=mean+2.0*sig;
66 
67  mom[ivar]->setCut(cuts[0][ivar],cuts[1][ivar]);
68  }
69 }
void setCut(double, double)
Definition: TMom.cc:90
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.