|
|
#include <TShapeAnalysis.h>
|
void | assignChannel (int, int) |
|
void | computeShape (std::string namefile, TTree *) |
|
void | computetmaxVal (int, double *) |
|
void | getDateStart () |
|
void | getDateStop () |
|
std::vector< double > | getInitVals (int) |
|
std::vector< double > | getVals (int) |
|
void | printshapeData (int) |
|
void | putAllVals (int, double *, int, int) |
|
void | putAllVals (int, double *, int, int, int, int, int, int) |
|
void | putalphaInit (int, double) |
|
void | putalphaVal (int, double) |
|
void | putbetaInit (int, double) |
|
void | putbetaVal (int, double) |
|
void | putchi2Init (int, double) |
|
void | putchi2Val (int, double) |
|
void | putDateStart (long int) |
|
void | putDateStop (long int) |
|
void | putetaInit (int, int) |
|
void | putflagInit (int, int) |
|
void | putflagVal (int, int) |
|
void | putphiInit (int, int) |
|
void | putwidthInit (int, double) |
|
void | putwidthVal (int, double) |
|
void | set_const (int, int, int, int, int, double, double) |
|
void | set_nch (int) |
|
void | set_presample (int) |
|
| TShapeAnalysis (double, double, double, double) |
|
| TShapeAnalysis (TTree *tAB, double, double, double, double) |
|
| ~TShapeAnalysis () override |
|
|
void | init (double, double, double, double) |
|
void | init (TTree *tAB, double, double, double, double) |
|
Definition at line 10 of file TShapeAnalysis.h.
◆ TShapeAnalysis() [1/2]
TShapeAnalysis::TShapeAnalysis |
( |
double |
alpha0, |
|
|
double |
beta0, |
|
|
double |
width0, |
|
|
double |
chi20 |
|
) |
| |
◆ TShapeAnalysis() [2/2]
TShapeAnalysis::TShapeAnalysis |
( |
TTree * |
tAB, |
|
|
double |
alpha0, |
|
|
double |
beta0, |
|
|
double |
width0, |
|
|
double |
chi20 |
|
) |
| |
◆ ~TShapeAnalysis()
TShapeAnalysis::~TShapeAnalysis |
( |
| ) |
|
|
override |
◆ assignChannel()
void TShapeAnalysis::assignChannel |
( |
int |
n, |
|
|
int |
ch |
|
) |
| |
◆ computeShape()
void TShapeAnalysis::computeShape |
( |
std::string |
namefile, |
|
|
TTree * |
|
|
) |
| |
Definition at line 205 of file TShapeAnalysis.cc.
206 double tm_atmax[200];
209 double chi2_all = 0.;
212 dbi =
new double *[200];
213 for (
int k = 0;
k < 200;
k++)
214 dbi[
k] =
new double[2];
217 signalu =
new double *[200];
218 for (
int k = 0;
k < 200;
k++)
219 signalu[
k] =
new double[10];
235 for (
int pass = 0; pass <
npass[
i]; pass++) {
250 if (parout[0] >= 0.0 && parout[1] >= 0.0 && chi2_all <= chi2cut && chi2_all > 0.0) {
264 for (
int kj = 0; kj <
npass[
i]; kj++) {
265 tm_atmax[kj] = dbi[kj][1];
294 TBranch *b_channelID;
302 tABinit->SetBranchAddress(
"iphi", &iphii, &b_iphi);
303 tABinit->SetBranchAddress(
"ieta", &ietai, &b_ieta);
304 tABinit->SetBranchAddress(
"side", &sidei, &b_side);
305 tABinit->SetBranchAddress(
"dccID", &dccIDi, &b_dccID);
306 tABinit->SetBranchAddress(
"towerID", &towerIDi, &b_towerID);
307 tABinit->SetBranchAddress(
"channelID", &channelIDi, &b_channelID);
308 tABinit->SetBranchAddress(
"alpha", &alphai, &b_alpha);
309 tABinit->SetBranchAddress(
"beta", &betai, &b_beta);
310 tABinit->SetBranchAddress(
"width", &widthi, &b_width);
311 tABinit->SetBranchAddress(
"chi2", &chi2i, &b_chi2);
312 tABinit->SetBranchAddress(
"flag", &flagi, &b_flag);
315 TFile *fABout =
new TFile(namefile.c_str(),
"RECREATE");
316 tABout =
new TTree(
"ABCol0",
"ABCol0");
333 tABout->Branch(
"side", &side,
"side/I");
334 tABout->Branch(
"dccID", &dccID,
"dccID/I");
336 tABout->Branch(
"channelID", &channelID,
"channelID/I");
345 tABout->SetBranchAddress(
"side", &side);
346 tABout->SetBranchAddress(
"dccID", &dccID);
348 tABout->SetBranchAddress(
"channelID", &channelID);
363 channelID = channelIDi;
References zMuMuMuonUserData::alpha, zMuMuMuonUserData::beta, hltPixelTracks_cff::chi2, debug, TFParams::fitpj(), RemoveAddSevLevel::flag, mps_fire::i, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, dqmdumpme::k, hgcalDigitizer_cfi::noise, TFParams::set_const(), ecaldqm::towerID(), and ApeEstimator_cff::width.
Referenced by EcalABAnalyzer::endJob(), and EcalLaserAnalyzer::endJob().
◆ computetmaxVal()
void TShapeAnalysis::computetmaxVal |
( |
int |
i, |
|
|
double * |
tm_val |
|
) |
| |
◆ getDateStart()
void TShapeAnalysis::getDateStart |
( |
| ) |
|
◆ getDateStop()
void TShapeAnalysis::getDateStop |
( |
| ) |
|
◆ getInitVals()
std::vector< double > TShapeAnalysis::getInitVals |
( |
int |
n | ) |
|
◆ getVals()
std::vector< double > TShapeAnalysis::getVals |
( |
int |
n | ) |
|
◆ init() [1/2]
void TShapeAnalysis::init |
( |
double |
alpha0, |
|
|
double |
beta0, |
|
|
double |
width0, |
|
|
double |
chi20 |
|
) |
| |
|
private |
◆ init() [2/2]
void TShapeAnalysis::init |
( |
TTree * |
tAB, |
|
|
double |
alpha0, |
|
|
double |
beta0, |
|
|
double |
width0, |
|
|
double |
chi20 |
|
) |
| |
|
private |
Definition at line 66 of file TShapeAnalysis.cc.
98 tABinit->SetBranchAddress(
"iphi", &iphii, &b_iphi);
99 tABinit->SetBranchAddress(
"ieta", &ietai, &b_ieta);
100 tABinit->SetBranchAddress(
"side", &sidei, &b_side);
101 tABinit->SetBranchAddress(
"dccID", &dccIDi, &b_dccID);
102 tABinit->SetBranchAddress(
"towerID", &towerIDi, &b_towerID);
103 tABinit->SetBranchAddress(
"channelID", &channelIDi, &b_channelID);
104 tABinit->SetBranchAddress(
"alpha", &alphai, &b_alpha);
105 tABinit->SetBranchAddress(
"beta", &betai, &b_beta);
106 tABinit->SetBranchAddress(
"width", &widthi, &b_width);
107 tABinit->SetBranchAddress(
"chi2", &chi2i, &b_chi2);
108 tABinit->SetBranchAddress(
"flag", &flagi, &b_flag);
113 for (
int cris = 0; cris <
nchsel; cris++) {
References cms::cuda::assert(), fNchsel, and init.
◆ printshapeData()
void TShapeAnalysis::printshapeData |
( |
int |
gRunNumber | ) |
|
◆ putAllVals() [1/2]
void TShapeAnalysis::putAllVals |
( |
int |
ch, |
|
|
double * |
sampl, |
|
|
int |
ieta, |
|
|
int |
iphi |
|
) |
| |
◆ putAllVals() [2/2]
void TShapeAnalysis::putAllVals |
( |
int |
ch, |
|
|
double * |
sampl, |
|
|
int |
ieta, |
|
|
int |
iphi, |
|
|
int |
dcc, |
|
|
int |
side, |
|
|
int |
tower, |
|
|
int |
chid |
|
) |
| |
◆ putalphaInit()
void TShapeAnalysis::putalphaInit |
( |
int |
n, |
|
|
double |
val |
|
) |
| |
◆ putalphaVal()
void TShapeAnalysis::putalphaVal |
( |
int |
n, |
|
|
double |
val |
|
) |
| |
◆ putbetaInit()
void TShapeAnalysis::putbetaInit |
( |
int |
n, |
|
|
double |
val |
|
) |
| |
◆ putbetaVal()
void TShapeAnalysis::putbetaVal |
( |
int |
n, |
|
|
double |
val |
|
) |
| |
◆ putchi2Init()
void TShapeAnalysis::putchi2Init |
( |
int |
n, |
|
|
double |
val |
|
) |
| |
◆ putchi2Val()
void TShapeAnalysis::putchi2Val |
( |
int |
n, |
|
|
double |
val |
|
) |
| |
◆ putDateStart()
void TShapeAnalysis::putDateStart |
( |
long int |
timecur | ) |
|
◆ putDateStop()
void TShapeAnalysis::putDateStop |
( |
long int |
timecur | ) |
|
◆ putetaInit()
void TShapeAnalysis::putetaInit |
( |
int |
n, |
|
|
int |
val |
|
) |
| |
◆ putflagInit()
void TShapeAnalysis::putflagInit |
( |
int |
n, |
|
|
int |
val |
|
) |
| |
◆ putflagVal()
void TShapeAnalysis::putflagVal |
( |
int |
n, |
|
|
int |
val |
|
) |
| |
◆ putphiInit()
void TShapeAnalysis::putphiInit |
( |
int |
n, |
|
|
int |
val |
|
) |
| |
◆ putwidthInit()
void TShapeAnalysis::putwidthInit |
( |
int |
n, |
|
|
double |
val |
|
) |
| |
◆ putwidthVal()
void TShapeAnalysis::putwidthVal |
( |
int |
n, |
|
|
double |
val |
|
) |
| |
◆ set_const()
void TShapeAnalysis::set_const |
( |
int |
ns, |
|
|
int |
ns1, |
|
|
int |
ns2, |
|
|
int |
ps, |
|
|
int |
nevtmax, |
|
|
double |
noise_val, |
|
|
double |
chi2_cut |
|
) |
| |
◆ set_nch()
void TShapeAnalysis::set_nch |
( |
int |
nch | ) |
|
◆ set_presample()
void TShapeAnalysis::set_presample |
( |
int |
ps | ) |
|
◆ alpha0
double TShapeAnalysis::alpha0 |
|
private |
◆ alpha_init
double TShapeAnalysis::alpha_init[1700] |
|
private |
◆ alpha_val
double TShapeAnalysis::alpha_val[1700] |
|
private |
◆ beta0
double TShapeAnalysis::beta0 |
|
private |
◆ beta_init
double TShapeAnalysis::beta_init[1700] |
|
private |
◆ beta_val
double TShapeAnalysis::beta_val[1700] |
|
private |
◆ ch_init
int TShapeAnalysis::ch_init[1700] |
|
private |
◆ chi2_init
double TShapeAnalysis::chi2_init[1700] |
|
private |
◆ chi2_val
double TShapeAnalysis::chi2_val[1700] |
|
private |
◆ chi2cut
double TShapeAnalysis::chi2cut |
|
private |
◆ dcc_init
int TShapeAnalysis::dcc_init[1700] |
|
private |
◆ eta_init
int TShapeAnalysis::eta_init[1700] |
|
private |
◆ filename
char TShapeAnalysis::filename[80] |
|
private |
◆ flag_init
int TShapeAnalysis::flag_init[1700] |
|
private |
◆ flag_val
int TShapeAnalysis::flag_val[1700] |
|
private |
◆ index
int TShapeAnalysis::index[1700] |
|
private |
◆ nchsel
int TShapeAnalysis::nchsel |
|
private |
◆ nevt
◆ noise
double TShapeAnalysis::noise |
|
private |
◆ npass
int TShapeAnalysis::npass[1700] |
|
private |
◆ npassok
double TShapeAnalysis::npassok[1700] |
|
private |
◆ nsamplecristal
int TShapeAnalysis::nsamplecristal |
|
private |
◆ phi_init
int TShapeAnalysis::phi_init[1700] |
|
private |
◆ presample
int TShapeAnalysis::presample |
|
private |
◆ rawsglu
double TShapeAnalysis::rawsglu[1700][200][10] |
|
private |
◆ sampamax
int TShapeAnalysis::sampamax |
|
private |
◆ sampbmax
int TShapeAnalysis::sampbmax |
|
private |
◆ side_init
int TShapeAnalysis::side_init[1700] |
|
private |
◆ tABinit
TTree* TShapeAnalysis::tABinit |
|
private |
◆ tABout
TTree* TShapeAnalysis::tABout |
|
private |
◆ timestart
long int TShapeAnalysis::timestart |
|
private |
◆ timestop
long int TShapeAnalysis::timestop |
|
private |
◆ tower_init
int TShapeAnalysis::tower_init[1700] |
|
private |
◆ width_init
double TShapeAnalysis::width_init[1700] |
|
private |
◆ width_val
double TShapeAnalysis::width_val[1700] |
|
private |
void putflagInit(int, int)
void putalphaVal(int, double)
void putbetaVal(int, double)
alpha
zGenParticlesMatch = cms.InputTag(""),
void putphiInit(int, int)
void putAllVals(int, double *, int, int)
void assignChannel(int, int)
void putflagVal(int, int)
void putbetaInit(int, double)
double rawsglu[1700][200][10]
void computetmaxVal(int, double *)
void putetaInit(int, int)
void putalphaInit(int, double)
void putchi2Val(int, double)
void putwidthVal(int, double)
void putwidthInit(int, double)
void putchi2Init(int, double)
void set_const(int, int, int, double, double, int)
EcalLogicID towerID(EcalElectronicsId const &)
void init(double, double, double, double)
double fitpj(double **, double *, double **, double noise_val, int debug)