51 eventHeaderCollection_(iConfig.getParameter<
std::
string>(
"eventHeaderCollection")),
52 eventHeaderProducer_(iConfig.getParameter<
std::
string>(
"eventHeaderProducer")),
53 digiCollection_(iConfig.getParameter<
std::
string>(
"digiCollection")),
54 digiProducer_(iConfig.getParameter<
std::
string>(
"digiProducer")),
55 digiPNCollection_(iConfig.getParameter<
std::
string>(
"digiPNCollection")),
60 _nsamples(iConfig.getUntrackedParameter<unsigned
int>(
"nSamples", 10)),
61 _presample(iConfig.getUntrackedParameter<unsigned
int>(
"nPresamples", 2)),
62 _firstsample(iConfig.getUntrackedParameter<unsigned
int>(
"firstSample", 1)),
63 _lastsample(iConfig.getUntrackedParameter<unsigned
int>(
"lastSample", 2)),
64 _nsamplesPN(iConfig.getUntrackedParameter<unsigned
int>(
"nSamplesPN", 50)),
65 _presamplePN(iConfig.getUntrackedParameter<unsigned
int>(
"nPresamplesPN", 6)),
66 _firstsamplePN(iConfig.getUntrackedParameter<unsigned
int>(
"firstSamplePN", 7)),
67 _lastsamplePN(iConfig.getUntrackedParameter<unsigned
int>(
"lastSamplePN", 8)),
68 _timingcutlow(iConfig.getUntrackedParameter<unsigned
int>(
"timingCutLow", 2)),
69 _timingcuthigh(iConfig.getUntrackedParameter<unsigned
int>(
"timingCutHigh", 9)),
70 _timingquallow(iConfig.getUntrackedParameter<unsigned
int>(
"timingQualLow", 3)),
71 _timingqualhigh(iConfig.getUntrackedParameter<unsigned
int>(
"timingQualHigh", 8)),
72 _ratiomincutlow(iConfig.getUntrackedParameter<double>(
"ratioMinCutLow", 0.4)),
73 _ratiomincuthigh(iConfig.getUntrackedParameter<double>(
"ratioMinCutHigh", 0.95)),
74 _ratiomaxcutlow(iConfig.getUntrackedParameter<double>(
"ratioMaxCutLow", 0.8)),
75 _presamplecut(iConfig.getUntrackedParameter<double>(
"presampleCut", 5.0)),
76 _niter(iConfig.getUntrackedParameter<unsigned
int>(
"nIter", 5)),
77 _noise(iConfig.getUntrackedParameter<double>(
"noise", 2.0)),
78 _ecalPart(iConfig.getUntrackedParameter<
std::
string>(
"ecalPart",
"EB")),
79 _saveshapes(iConfig.getUntrackedParameter<
bool>(
"saveShapes",
true)),
80 _docorpn(iConfig.getUntrackedParameter<
bool>(
"doCorPN",
false)),
81 _fedid(iConfig.getUntrackedParameter<
int>(
"fedID", -999)),
82 _saveallevents(iConfig.getUntrackedParameter<
bool>(
"saveAllEvents",
false)),
83 _qualpercent(iConfig.getUntrackedParameter<double>(
"qualPercent", 0.2)),
84 _debug(iConfig.getUntrackedParameter<
int>(
"debug", 0)),
85 resdir_(iConfig.getUntrackedParameter<
std::
string>(
"resDir")),
86 elecfile_(iConfig.getUntrackedParameter<
std::
string>(
"elecFile")),
87 pncorfile_(iConfig.getUntrackedParameter<
std::
string>(
"pnCorFile")),
115 channelIteratorEE(0),
140 for (
unsigned int j = 0;
j <
nCrys;
j++) {
152 for (
unsigned int j = 0;
j <
nMod;
j++) {
208 ADCfile +=
"/APDSamplesLaser.root";
211 APDfile +=
"/APDPNLaserAllEvents.root";
215 for (
unsigned int i = 0;
i <
nCrys;
i++) {
217 name <<
"ADCTree" <<
i + 1;
247 stringstream namefile1;
248 namefile1 <<
resdir_ <<
"/SHAPE_LASER.root";
251 stringstream namefile2;
252 namefile2 <<
resdir_ <<
"/APDPN_LASER.root";
255 stringstream namefile3;
256 namefile3 <<
resdir_ <<
"/MATACQ.root";
265 edm::LogError(
"noshape") <<
" ERROR! No matacq shape available: analysis aborted !";
287 DCCHeader = pDCCHeader.
product();
310 edm::LogError(
"cfg_error") <<
" Wrong ecalPart in cfg file ";
335 int fed = headerItr->fedId();
339 runType = headerItr->getRunType();
340 runNum = headerItr->getRunNumber();
341 event = headerItr->getLV1();
343 dccID = headerItr->getDccInTCCCommand();
344 fedID = headerItr->fedId();
366 if (iter ==
colors.end()) {
394 unsigned int samplemax = 0;
397 map<int, vector<double> > allPNAmpl;
398 map<int, vector<double> > allPNGain;
407 <<
"-- debug test -- Inside PNDigi - pnID=" << pnDetId.
iPnId() <<
", dccID=" << pnDetId.
iDCCId();
417 for (
int samId = 0; samId < (*pnItr).size(); samId++) {
418 pn[samId] = (*pnItr).sample(samId).adc();
419 pnG[samId] = (*pnItr).sample(samId).gainId();
435 if (chi2pn == 101 || chi2pn == 102 || chi2pn == 103)
453 <<
"-- debug -- Inside PNDigi - PNampl=" <<
pnAmpl <<
", PNgain=" << pnGain;
472 EBDetId id_crystal(digiItr->id());
476 int etaG = id_crystal.ieta();
477 int phiG = id_crystal.iphi();
481 int etaL = LocalCoord.first;
482 int phiL = LocalCoord.second;
485 int xtal = elecid_crystal.
xtalId();
493 unsigned int MyPn0 = pnpair.first;
494 unsigned int MyPn1 = pnpair.second;
504 <<
"-- debug -- Inside EBDigi - towerID:" <<
towerID <<
" channelID:" <<
channelID <<
" module:" <<
module 505 <<
" modules:" <<
modules.size();
512 for (
unsigned int i = 0;
i < (*digiItr).size(); ++
i) {
514 adc[
i] = samp_crystal.adc();
515 adcG[
i] = samp_crystal.gainId();
537 int mem0 =
Mem->
Mem(lmr, 0);
538 int mem1 =
Mem->
Mem(lmr, 1);
540 if (allPNAmpl[mem0].
size() > MyPn0)
541 pn0 = allPNAmpl[mem0][MyPn0];
544 if (allPNAmpl[mem1].
size() > MyPn1)
545 pn1 = allPNAmpl[mem1][MyPn1];
568 EEDetId id_crystal(digiItr->id());
572 int etaG = id_crystal.iy();
573 int phiG = id_crystal.ix();
575 int iX = (phiG - 1) / 5 + 1;
576 int iY = (etaG - 1) / 5 + 1;
589 unsigned int MyPn0 = pnpair.first;
590 unsigned int MyPn1 = pnpair.second;
600 setGeomEE(etaG, phiG, iX, iY,
iZ,
module,
tower, ch, apdRefTT, channel, lmr);
604 <<
"-- debug -- Inside EEDigi - towerID:" <<
towerID <<
" channelID:" <<
channelID <<
" module:" <<
module 605 <<
" modules:" <<
modules.size();
610 if ((*digiItr).size() > 10)
611 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"SAMPLES SIZE > 10!" << (*digiItr).size();
615 for (
unsigned int i = 0;
i < (*digiItr).size(); ++
i) {
617 adc[
i] = samp_crystal.adc();
618 adcG[
i] = samp_crystal.gainId();
641 int mem0 =
Mem->
Mem(lmr, 0);
642 int mem1 =
Mem->
Mem(lmr, 1);
644 if (allPNAmpl[mem0].
size() > MyPn0)
645 pn0 = allPNAmpl[mem0][MyPn0];
648 if (allPNAmpl[mem1].
size() > MyPn1)
649 pn1 = allPNAmpl[mem1][MyPn1];
672 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"\n\t+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+";
674 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"\t+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+";
705 system(del.str().c_str());
713 double BadGainEvtPercentage = 0.0;
714 double BadTimingEvtPercentage = 0.0;
716 int nChanBadGain = 0;
717 int nChanBadTiming = 0;
719 for (
unsigned int i = 0;
i <
nCrys;
i++) {
734 double BadGainChanPercentage = double(nChanBadGain) / double(
nCrys);
735 double BadTimingChanPercentage = double(nChanBadTiming) / double(
nCrys);
745 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"\n\t+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+";
746 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"\t+=+ Analyzing laser data: getting APD, PN, APD/PN, PN/PN +=+";
749 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"\t+=+ ............................ WARNING! APD GAIN WAS NOT 1 +=+";
751 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"\t+=+ ............................ WARNING! TIMING WAS BAD +=+";
758 for (
unsigned int i = 0;
i <
nCrys;
i++) {
760 name <<
"APDTree" <<
i + 1;
778 APDtrees[
i]->Branch(
"flagfit", &flagfit,
"flagfit/I");
794 APDtrees[
i]->SetBranchAddress(
"flagfit", &flagfit);
799 for (
unsigned int iref = 0; iref <
nRefChan; iref++) {
800 for (
unsigned int imod = 0; imod <
nMod; imod++) {
803 stringstream nameref;
804 nameref <<
"refAPDTree" << imod <<
"_" << iref;
806 RefAPDtrees[iref][jmod] =
new TTree(nameref.str().c_str(), nameref.str().c_str());
825 unsigned int nCol =
colors.size();
830 for (
unsigned int iM = 0; iM <
nMod; iM++) {
831 unsigned int iMod =
modules[iM] - 1;
833 for (
unsigned int ich = 0; ich <
nPNPerMod; ich++) {
834 for (
unsigned int icol = 0; icol < nCol; icol++) {
846 for (
unsigned int iCry = 0; iCry <
nCrys; iCry++) {
847 for (
unsigned int icol = 0; icol < nCol; icol++) {
855 if (
ADCtrees[iCry]->GetEntries(
cut.str().c_str()) < 10)
859 unsigned int iMod =
iModule[iCry] - 1;
868 for (Long64_t jentry = 0; jentry <
ADCtrees[iCry]->GetEntriesFast(); jentry++) {
879 unsigned int iCol = 0;
880 for (
unsigned int i = 0;
i < nCol;
i++) {
905 <<
"-- debug test -- endJob -- apdAmpl:" <<
apdAmpl <<
" apdTime:" <<
apdTime;
907 if (pn0 < 10 && pn1 > 10) {
909 }
else if (pn1 < 10 && pn0 > 10) {
912 pnmean = 0.5 * (
pn0 +
pn1);
915 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"-- debug test -- endJob -- pnMean:" << pnmean;
921 for (
unsigned int ichan = 0; ichan <
nPNPerMod; ichan++) {
932 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"-- debug test -- endJob -- filling APDTree";
945 for (
unsigned int ir = 0; ir <
nRefChan; ir++) {
948 <<
" refmap:" <<
apdRefMap[ir][iMod + 1] <<
" iCry:" << iCry;
963 <<
", ir:" << ir <<
" tt-1:" <<
towerID - 1;
980 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"-- debug test -- endJob -- after apdAmpl Loop";
986 system(del.str().c_str());
993 for (
unsigned int iColor = 0; iColor < nCol; iColor++) {
994 stringstream nametree;
995 nametree <<
"APDCol" <<
colors.at(iColor);
996 stringstream nametree2;
997 nametree2 <<
"PNCol" <<
colors.at(iColor);
999 restrees[iColor] =
new TTree(nametree.str().c_str(), nametree.str().c_str());
1000 respntrees[iColor] =
new TTree(nametree2.str().c_str(), nametree2.str().c_str());
1009 restrees[iColor]->Branch(
"APD", &
APD,
"APD[6]/D");
1053 for (
unsigned int iM = 0; iM <
nMod; iM++) {
1054 unsigned int iMod =
modules[iM] - 1;
1056 for (
unsigned int ich = 0; ich <
nPNPerMod; ich++) {
1057 for (
unsigned int icol = 0; icol < nCol; icol++) {
1066 for (
unsigned int imod = 0; imod <
nMod; imod++) {
1077 for (
unsigned int iCry = 0; iCry <
nCrys; iCry++) {
1078 unsigned int iMod =
iModule[iCry] - 1;
1083 for (
unsigned int iCol = 0; iCol < nCol; iCol++) {
1084 std::vector<double> lowcut;
1085 std::vector<double> highcut;
1094 lowcut.push_back(cutMin);
1095 highcut.push_back(cutMax);
1099 lowcut.push_back(cutMin);
1100 highcut.push_back(cutMax);
1120 for (Long64_t jentry = 0; jentry <
APDtrees[iCry]->GetEntriesFast(); jentry++) {
1124 if (pn0 < 10 && pn1 > 10) {
1126 }
else if (pn1 < 10 && pn0 > 10) {
1129 pnmean = 0.5 * (
pn0 +
pn1);
1134 unsigned int iCol = 0;
1135 for (
unsigned int i = 0;
i < nCol;
i++) {
1146 for (
unsigned int ichan = 0; ichan <
nPNPerMod; ichan++) {
1155 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"-- debug test -- LastLoop event:" <<
event <<
" apdAmpl:" <<
apdAmpl;
1159 for (
unsigned int iRef = 0; iRef <
nRefChan; iRef++) {
1165 <<
"-- debug test -- LastLoop apdAmplA:" <<
apdAmplA <<
" apdAmplB:" <<
apdAmplB <<
", event:" <<
event 1182 for (
unsigned int iColor = 0; iColor < nCol; iColor++) {
1183 std::vector<double> apdvec =
APDAnal[iCry][iColor]->
getAPD();
1191 for (
unsigned int i = 0;
i < apdvec.size();
i++) {
1192 APD[
i] = apdvec.at(
i);
1218 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"-- debug test -- endJob -- APD[0]" <<
APD[0] <<
" APDoPN[0] " 1227 for (
unsigned int iM = 0; iM <
nMod; iM++) {
1228 unsigned int iMod =
modules[iM] - 1;
1232 for (
unsigned int ch = 0; ch <
nPNPerMod; ch++) {
1239 for (
unsigned int iColor = 0; iColor < nCol; iColor++) {
1240 std::vector<double> pnvec =
PNAnal[iMod][ch][iColor]->
getPN();
1241 std::vector<double> pnopnvec =
PNAnal[iMod][ch][iColor]->
getPNoPN();
1242 std::vector<double> pnopn0vec =
PNAnal[iMod][ch][iColor]->
getPNoPN0();
1243 std::vector<double> pnopn1vec =
PNAnal[iMod][ch][iColor]->
getPNoPN1();
1245 for (
unsigned int i = 0;
i < pnvec.size();
i++) {
1246 PN[
i] = pnvec.at(
i);
1254 <<
"-- debug test -- endJob -- filling pn results'tree: PN[0]:" <<
PN[0] <<
" iModule:" << iMod
1255 <<
" iColor:" << iColor <<
" ch:" << ch;
1271 system(del2.str().c_str());
1284 for (
unsigned int i = 0;
i < nCol;
i++) {
1291 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"\t+=+ .................................................. done +=+";
1292 edm::LogVerbatim(
"EcalLaserAnalyzer2") <<
"\t+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+";
1304 int doesMatFileExist = 0;
1305 int doesMatShapeExist = 0;
1307 TProfile* laserShape =
nullptr;
1308 test2 = fopen(
matfile.c_str(),
"r");
1310 doesMatFileExist = 1;
1312 TFile* MatShapeFile;
1313 if (doesMatFileExist == 1) {
1314 MatShapeFile =
new TFile(
matfile.c_str());
1315 laserShape = (TProfile*)MatShapeFile->Get(
"shapeLaser");
1317 doesMatShapeExist = 1;
1318 double y = laserShape->Integral(
"w");
1320 laserShape->Scale(1.0 /
y);
1323 edm::LogError(
"file_not_found") <<
" ERROR! Matacq shape file not found !";
1325 if (doesMatShapeExist)
1331 int doesElecFileExist = 0;
1335 doesElecFileExist = 1;
1337 TFile* ElecShapesFile;
1338 TH1D* elecShape =
nullptr;
1340 if (doesElecFileExist == 1) {
1341 ElecShapesFile =
new TFile(
elecfile_.c_str());
1343 name <<
"MeanElecShape";
1344 elecShape = (TH1D*)ElecShapesFile->Get(
name.str().c_str());
1345 if (elecShape && doesMatShapeExist == 1) {
1346 double x = elecShape->GetMaximum();
1348 elecShape->Scale(1.0 /
x);
1355 throw cms::Exception(
"file_not_found") <<
" ERROR! Elec shape file not found !";
1361 unsigned int nBins =
int(laserShape->GetEntries());
1363 double elec_jj, laser_iiMinusjj;
1367 unsigned int nBins2 =
int(elecShape->GetNbinsX());
1369 if (nBins2 <
nBins) {
1371 <<
"EcalLaserAnalyzer2::getShapes: wrong configuration of the shapes' number of bins";
1377 name <<
"PulseShape";
1383 for (
int ii = 0;
ii < 50;
ii++) {
1388 for (
unsigned int ii = 0;
ii <
nBins - 50;
ii++) {
1390 for (
unsigned int jj = 0;
jj <
ii;
jj++) {
1391 elec_jj = elecShape->GetBinContent(
jj + 1);
1392 laser_iiMinusjj = laserShape->GetBinContent(
ii -
jj + 1);
1393 sum_jj += elec_jj * laser_iiMinusjj;
1418 system(del.str().c_str());
1425 int etaG,
int phiG,
int module,
int tower,
int strip,
int xtal,
int apdRefTT,
int channel,
int lmr) {
1437 for (
unsigned int iref = 0; iref <
nRefChan; iref++) {
1458 int etaG,
int phiG,
int iX,
int iY,
int iZ,
int module,
int tower,
int ch,
int apdRefTT,
int channel,
int lmr) {
1470 for (
unsigned int iref = 0; iref <
nRefChan; iref++) {
void addEntry(double val)
Log< level::Info, true > LogVerbatim
static XYCoord localCoord(int icr)
const bool _saveallevents
TPN * PNAnal[9][2][nColor]
const std::string eventHeaderCollection_
static int lmmod(SuperCrysCoord iX, SuperCrysCoord iY)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
void setAPDCut(double, double)
const std::string _ecalPart
std::map< int, int > channelMapEE
const std::string digiPNCollection_
std::vector< double > getPN()
const unsigned int _firstsamplePN
const std::string pncorfile_
static int apdRefTower(int ilmr, int ilmmod)
void addEntry(double, double, double)
double getDelta(int, int)
TAPD * APDAnal[1700][nColor]
std::vector< double > getPNoPN1()
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
TAPD * APDFirstAnal[1700][nColor]
static int side(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
TPN * PNFirstAnal[9][2][nColor]
void setPNCut(double, double)
T const * product() const
void addEntry(double, double, double, double, double, double, double)
double getPNCorrectionFactor(double val0, int gain)
std::vector< T >::const_iterator const_iterator
ALPAKA_FN_ACC int side(int ieta, int iphi)
double * getAdcWithoutPedestal()
const std::string resdir_
const unsigned int _firstsample
unsigned int isFirstChanModFilled[21]
void setGeomEE(int etaG, int phiG, int iX, int iY, int iZ, int module, int tower, int ch, int apdRefTT, int channel, int lmr)
const unsigned int _lastsamplePN
static int lmr(EBGlobalCoord ieta, EBGlobalCoord iphi)
Log< level::Error, false > LogError
const unsigned int _lastsample
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< double > getAPDoPN0()
void setTimeCut(double, double)
const unsigned int _presamplePN
const double _ratiomaxcutlow
const unsigned int _timingcuthigh
std::vector< double > shapesVec
static std::pair< int, int > pn(int ilmmod)
void set2DAPDoAPD1Cut(const std::vector< double > &, const std::vector< double > &)
void setAPDoPN0Cut(double, double)
virtual double doFit(double *, double *cova=nullptr)
std::vector< double > getPNoPN0()
std::vector< double > getAPDoPN1()
edm::EDGetTokenT< EBDigiCollection > ebDigiToken_
int hashedIndex(int ieta, int iphi)
static std::pair< int, int > pn(int dee, int ilmod)
std::vector< double > getAPDoAPD0()
void set2DAPDoAPD0Cut(const std::vector< double > &, const std::vector< double > &)
static int electronic_channel(EBLocalCoord ix, EBLocalCoord iy)
virtual void init(int, int, int, int, int, const std::vector< double > &, double)
const unsigned int _timingqualhigh
const unsigned int _nsamples
int towerId() const
get the tower id
const std::string digiProducer_
double * getAdcWithoutPedestal()
EcalLaserAnalyzer2(const edm::ParameterSet &iConfig)
edm::EDGetTokenT< EEDigiCollection > eeDigiToken_
static int apdRefTower(int ilmmod)
int channelId() const
so far for EndCap only :
#define DEFINE_FWK_MODULE(type)
const_iterator begin() const
const std::string elecfile_
static int lmmod(EBGlobalCoord ieta, EBGlobalCoord iphi)
std::vector< double > getAPDoAPD1()
const double _presamplecut
std::vector< double > getAPD()
const_iterator end() const
const std::string digiCollection_
const edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > mappingToken_
unsigned int firstChanMod[21]
void setGeomEB(int etaG, int phiG, int module, int tower, int strip, int xtal, int apdRefTT, int channel, int lmr)
static int side(EBGlobalCoord ieta, EBGlobalCoord iphi)
const unsigned int _niter
const double _qualpercent
unsigned int nSamplesShapes
const double _ratiomincutlow
int IsThereDataADC[1700][nColor]
const double _ratiomincuthigh
const unsigned int _timingquallow
int stripId() const
get the tower id
const unsigned int _timingcutlow
TTree * respntrees[nColor]
TTree * RefAPDtrees[2][21]
int iPnId() const
get the PnId
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
int xtalId() const
get the channel id
std::vector< double > getPNoPN()
static int dee(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
unsigned int iModule[1700]
~EcalLaserAnalyzer2() override
double doFit(int, double *)
EcalLogicID towerID(EcalElectronicsId const &)
const unsigned int _nsamplesPN
const edm::EDGetTokenT< EcalRawDataCollection > rawDataToken_
std::vector< double > getAPDoPN()
const edm::EDGetTokenT< EcalPnDiodeDigiCollection > pnDiodeDigiToken_
int iDCCId() const
get the DCCId
std::map< int, unsigned int > apdRefMap[2]
std::vector< double > getTime()
static std::vector< int > apdRefChannels(ME::LMMid ilmmod, ME::LMRid ilmr)
static std::vector< ME::LMMid > lmmodFromDcc(ME::DCCid idcc)
static int lmr(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
void setAPDoPNCut(double, double)
void setAPDoPN1Cut(double, double)