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

◆ outVar

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

Definition at line 10 of file TMTQ.h.

Constructor & Destructor Documentation

◆ TMTQ()

TMTQ::TMTQ ( )

Definition at line 17 of file TMTQ.cc.

17 { init(); }

References init.

◆ ~TMTQ()

TMTQ::~TMTQ ( )
virtual

Definition at line 20 of file TMTQ.cc.

20 {}

Member Function Documentation

◆ addEntry()

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

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 }

References L1TowerCalibrationProducer_cfi::fit, and heppy_batch::val.

◆ get()

std::vector< double > TMTQ::get ( int  ivar)

◆ getAmpl()

std::vector< double > TMTQ::getAmpl ( )

Definition at line 87 of file TMTQ.cc.

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

References get, and iAmpl.

◆ getFit()

std::vector< double > TMTQ::getFit ( )

Definition at line 99 of file TMTQ.cc.

99  {
100  std::vector<double> x = get(TMTQ::iFit);
101  return x;
102 }

References get, and iFit.

◆ getFw20()

std::vector< double > TMTQ::getFw20 ( )

Definition at line 107 of file TMTQ.cc.

107  {
108  std::vector<double> x = get(TMTQ::iFw20);
109  return x;
110 }

References get, and iFw20.

◆ getFw80()

std::vector< double > TMTQ::getFw80 ( )

Definition at line 111 of file TMTQ.cc.

111  {
112  std::vector<double> x = get(TMTQ::iFw80);
113  return x;
114 }

References get, and iFw80.

◆ getFwhm()

std::vector< double > TMTQ::getFwhm ( )

Definition at line 103 of file TMTQ.cc.

103  {
104  std::vector<double> x = get(TMTQ::iFwhm);
105  return x;
106 }

References get, and iFwhm.

◆ getPeak()

std::vector< double > TMTQ::getPeak ( )

Definition at line 83 of file TMTQ.cc.

83  {
84  std::vector<double> x = get(TMTQ::iPeak);
85  return x;
86 }

References get, and iPeak.

◆ getPed()

std::vector< double > TMTQ::getPed ( )

Definition at line 115 of file TMTQ.cc.

115  {
116  std::vector<double> x = get(TMTQ::iPed);
117  return x;
118 }

References get, and iPed.

◆ getPedsig()

std::vector< double > TMTQ::getPedsig ( )

Definition at line 119 of file TMTQ.cc.

119  {
120  std::vector<double> x = get(TMTQ::iPedsig);
121  return x;
122 }

References get, and iPedsig.

◆ getSigma()

std::vector< double > TMTQ::getSigma ( )

Definition at line 91 of file TMTQ.cc.

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

References get, and iSigma.

◆ getSliding()

std::vector< double > TMTQ::getSliding ( )

Definition at line 123 of file TMTQ.cc.

123  {
124  std::vector<double> x = get(TMTQ::iSlide);
125  return x;
126 }

References get, and iSlide.

◆ getTrise()

std::vector< double > TMTQ::getTrise ( )

Definition at line 95 of file TMTQ.cc.

95  {
96  std::vector<double> x = get(TMTQ::iTrise);
97  return x;
98 }

References get, and iTrise.

◆ init()

void TMTQ::init ( )

Definition at line 22 of file TMTQ.cc.

22  {
23  for (int j = 0; j < nOutVar; j++) {
24  cuts[0][j] = 0.0;
25  cuts[1][j] = 10.0e9;
26  mom[j] = new TMom();
27  }
28 }

References L1TMuonDQMOffline_cfi::cuts, and dqmiolumiharvest::j.

◆ setCut()

void TMTQ::setCut ( int  ivar,
double  mean,
double  sig 
)

Definition at line 60 of file TMTQ.cc.

60  {
61  if (ivar < nOutVar) {
62  cuts[0][ivar] = mean - 2.0 * sig;
63  cuts[1][ivar] = mean + 2.0 * sig;
64 
65  mom[ivar]->setCut(cuts[0][ivar], cuts[1][ivar]);
66  }
67 }

References L1TMuonDQMOffline_cfi::cuts, and SiStripPI::mean.

Member Data Documentation

◆ cuts

double TMTQ::cuts[2][nOutVar]

◆ mom

TMom* TMTQ::mom[nOutVar]

Definition at line 14 of file TMTQ.h.

TMom::addEntry
void addEntry(double val)
Definition: TMom.cc:88
TMTQ::iPeak
Definition: TMTQ.h:10
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
TMTQ::nOutVar
Definition: TMTQ.h:10
TMTQ::init
void init()
Definition: TMTQ.cc:22
TMTQ::get
std::vector< double > get(int)
Definition: TMTQ.cc:69
L1TowerCalibrationProducer_cfi.fit
fit
Definition: L1TowerCalibrationProducer_cfi.py:36
DDAxes::x
TMom::setCut
void setCut(double, double)
Definition: TMom.cc:72
TMTQ::iPed
Definition: TMTQ.h:10
TMTQ::iTrise
Definition: TMTQ.h:10
TMTQ::iAmpl
Definition: TMTQ.h:10
TMom
Definition: TMom.h:7
TMTQ::iFw80
Definition: TMTQ.h:10
TMTQ::iFw20
Definition: TMTQ.h:10
TMTQ::iPedsig
Definition: TMTQ.h:10
TMTQ::cuts
double cuts[2][nOutVar]
Definition: TMTQ.h:12
res
Definition: Electron.h:6
heppy_batch.val
val
Definition: heppy_batch.py:351
TMTQ::iFit
Definition: TMTQ.h:10
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
TMTQ::iSlide
Definition: TMTQ.h:10
TMTQ::mom
TMom * mom[nOutVar]
Definition: TMTQ.h:14
TMTQ::iSigma
Definition: TMTQ.h:10
TMTQ::iFwhm
Definition: TMTQ.h:10