99 void fillTrack(
int,
double,
double,
double,
double);
101 void fillEnergy(
int,
int,
double,
double,
double,
double,
double);
158 verbosity_(iConfig.getUntrackedParameter<
int>(
"verbosity",0)),
162 minTrackP_(iConfig.getUntrackedParameter<double>(
"minTrackP",1.0)),
163 maxTrackEta_(iConfig.getUntrackedParameter<double>(
"maxTrackEta",2.5)),
164 tMinE_(iConfig.getUntrackedParameter<double>(
"timeMinCutECAL",-500.)),
165 tMaxE_(iConfig.getUntrackedParameter<double>(
"timeMaxCutECAL",500.)),
166 tMinH_(iConfig.getUntrackedParameter<double>(
"timeMinCutHCAL",-500.)),
167 tMaxH_(iConfig.getUntrackedParameter<double>(
"timeMaxCutHCAL",500.)),
170 puWeights_(iConfig.getUntrackedParameter<
std::vector<double> >(
"puWeights")),
226 double pBins[
nPBin_+1] = {1.0,2.0,3.0,4.0,5.0,6.0,7.0,9.0,11.0,15.0,20.0};
227 int etaBins[
nEtaBin_+1] = {1, 7, 13, 17, 23};
228 int pvBins[
nPVBin_+1] = {1, 2, 3, 5, 100};
238 std::vector<std::string> trig;
240 std::vector<std::string> newNames = {
"HLT",
"PixelTracks_Multiplicity",
241 "HLT_Physics_",
"HLT_JetE",
246 desc.
addUntracked<std::vector<std::string> >(
"triggers",trig);
247 desc.
addUntracked<std::vector<std::string> >(
"newNames",newNames);
267 descriptions.
add(
"studyHLT",desc);
273 edm::LogInfo(
"IsoTrack") <<
"Event starts====================================";
274 int RunNo = iEvent.
id().
run();
275 int EvtNo = iEvent.
id().
event();
279 std::vector<int> newAccept(
newNames_.size()+1,0);
287 edm::LogInfo(
"IsoTrack") <<
"RunNo " << RunNo <<
" EvtNo " << EvtNo
288 <<
" Lumi " << Lumi <<
" Bunch " << Bunch
289 <<
" mybxlumi " << mybxlumi;
296 if (!triggerEventHandle.
isValid()) {
300 triggerEvent = *(triggerEventHandle.
product());
306 if (triggerResults.
isValid()) {
311 const std::vector<std::string> & triggerNames_ = triggerNames.
triggerNames();
312 for (
unsigned int iHLT=0; iHLT<triggerResults->
size(); iHLT++) {
326 if (ipos <= h_HLTAccept->GetNbinsX())
327 h_HLTAccept->GetXaxis()->SetBinLabel(ipos,newtriggerName.c_str());
330 edm::LogInfo(
"IsoTrack") <<
"Wrong trigger " << RunNo <<
" Event " 331 << EvtNo <<
" Hlt " << iHLT;
344 if (newtriggerName.find(
trigNames_[
i]) != std::string::npos) {
354 if (newtriggerName.find(
newNames_[
i]) != std::string::npos) {
357 <<
" : " << newtriggerName;
358 if (hlt > 0) newAccept[
i] = 1;
363 int iflg(0), indx(1);
365 iflg += (indx*newAccept[
i]); indx *= 2;
398 int ntrk(0), ngoodPV(0), nPV(-1);
399 int nvtxs = (
int)(recVtxs->size());
400 for (
int ind=0; ind<nvtxs; ind++) {
401 if (!((*recVtxs)[ind].isFake()) && (*recVtxs)[ind].ndof() > 4) ngoodPV++;
415 edm::LogInfo(
"IsoTrack") <<
"Number of vertices: " << nvtxs
416 <<
" Good " << ngoodPV <<
" Bin " << nPV
419 h_goodPV->Fill(ngoodPV,tr_eventWeight);
423 int npbin =
h_goodPV->FindBin(ngoodPV);
424 if (npbin > 0 && npbin <= (
int)(
puWeights_.size()))
438 double pt1 =
p.momentum().Rho();
439 double p1 =
p.momentum().R();
440 double eta1 =
p.momentum().Eta();
441 double phi1 =
p.momentum().Phi();
445 if (phi2 < 0) phi2 += 2.0*
M_PI;
449 double dEta = trk.eta() - eta1;
450 double phi0 = trk.phi();
451 if (phi0 < 0) phi0 += 2.0*
M_PI;
452 double dPhi = phi0-phi2;
454 else if (dPhi < -
M_PI) dPhi += 2.*
M_PI;
455 double dR =
sqrt(dEta*dEta+dPhi*dPhi);
456 if (dR < 0.01) { match =
true;
break;}
463 reco::TrackCollection::const_iterator trkItr;
464 for (trkItr=trkCollection->begin(); trkItr != trkCollection->end(); ++trkItr,++ntrk) {
466 double pt1 = pTrack->
pt();
467 double p1 = pTrack->
p();
468 double eta1 = pTrack->
momentum().eta();
469 double phi1 = pTrack->
momentum().phi();
472 if (quality)
fillTrack(1, pt1,p1,eta1,phi1);
474 h_ntrk[0]->Fill(ntrk,tr_eventWeight);
476 std::vector<spr::propagatedTrackID> trkCaloDets;
478 std::vector<spr::propagatedTrackID>::const_iterator trkDetItr;
479 for (trkDetItr = trkCaloDets.begin(),ntrk=0; trkDetItr != trkCaloDets.end(); trkDetItr++,ntrk++) {
480 const reco::Track* pTrack = &(*(trkDetItr->trkItr));
481 double pt1 = pTrack->
pt();
482 double p1 = pTrack->
p();
483 double eta1 = pTrack->
momentum().eta();
484 double phi1 = pTrack->
momentum().phi();
486 edm::LogInfo(
"IsoTrack") <<
"track: p " << p1 <<
" pt " << pt1
487 <<
" eta " << eta1 <<
" phi " << phi1
488 <<
" okEcal " << trkDetItr->okECAL;
502 std::pair<double, bool> e7x7P, e11x11P, e15x15P;
503 const DetId isoCell = trkDetItr->detIdECAL;
504 e7x7P =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),3,3, 0.030, 0.150,
tMinE_,
tMaxE_, ((
verbosity_/10000)%10 > 0));
505 e11x11P =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),5,5, 0.030, 0.150,
tMinE_,
tMaxE_, ((
verbosity_/10000)%10 > 0));
506 e15x15P =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),7,7, 0.030, 0.150,
tMinE_,
tMaxE_, ((
verbosity_/10000)%10 > 0));
510 double h3x3(0), h5x5(0), h7x7(0);
513 edm::LogInfo(
"IsoTrack") <<
"Accepted Tracks reaching Ecal maxNearP31x31 " 514 << maxNearP31x31 <<
" e11x11P " 515 << e11x11P.first <<
" e15x15P " 516 << e15x15P.first <<
" okHCAL " 517 << trkDetItr->okHCAL;
519 int trackID =
trackPID(pTrack,genParticles);
520 if (trkDetItr->okHCAL) {
523 const DetId ClosestCell(trkDetItr->detIdHCAL);
524 ieta = ((
HcalDetId)(ClosestCell)).ietaAbs();
525 h3x3 =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,1,1,
false,
true, 0.7, 0.8, -100.0, -100.0,
tMinH_,
tMaxH_, ((
verbosity_/10000)%10 > 0));
526 h5x5 =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,2,2,
false,
true, 0.7, 0.8, -100.0, -100.0,
tMinH_,
tMaxH_, ((
verbosity_/10000)%10 > 0) );
527 h7x7 =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,3,3,
false,
true, 0.7, 0.8, -100.0, -100.0,
tMinH_,
tMaxH_, ((
verbosity_/10000)%10 > 0) );
530 edm::LogInfo(
"IsoTrack") <<
"Tracks Reaching Hcal maxNearHcalP7x7/h5x5/h7x7 " 531 << maxNearHcalP7x7 <<
"/" << h5x5 <<
"/" << h7x7;
550 if (maxNearP31x31 < 0) {
552 fillEnergy(0,ieta,p1,e7x7P.first,h3x3,e11x11P.first,h5x5);
553 if (maxNearHcalP7x7 < 0) {
555 fillEnergy(1,ieta,p1,e7x7P.first,h3x3,e11x11P.first,h5x5);
556 if ((e11x11P.second) && (e15x15P.second) &&
557 (e15x15P.first-e11x11P.first)<2.0) {
559 fillEnergy(2,ieta,p1,e7x7P.first,h3x3,e11x11P.first,h5x5);
560 if (h7x7-h5x5 < 2.0) {
562 fillEnergy(3,ieta,p1,e7x7P.first,h3x3,e11x11P.first,h5x5);
565 fillEnergy(nPV+4,ieta,p1,e7x7P.first,h3x3,e11x11P.first,h5x5);
568 fillTrack(nPVBin_+trackID+7, pt1,p1,eta1,phi1);
569 fillEnergy(nPVBin_+trackID+3,ieta,p1,e7x7P.first,h3x3,e11x11P.first,h5x5);
578 h_ntrk[1]->Fill(ntrk,tr_eventWeight);
586 h_nHLT =
fs_->
make<TH1I>(
"h_nHLT" ,
"size of trigger Names", 1000, 0, 1000);
587 h_HLTAccept =
fs_->
make<TH1I>(
"h_HLTAccept",
"HLT Accepts for all runs", 500, 0, 500);
588 for (
int i=1;
i<=500; ++
i) h_HLTAccept->GetXaxis()->SetBinLabel(
i,
" ");
589 h_nHLTvsRN =
fs_->
make<TH2I>(
"h_nHLTvsRN" ,
"size of trigger Names vs RunNo", 2168, 190949, 193116, 100, 400, 500);
590 h_HLTCorr =
fs_->
make<TH1I>(
"h_HLTCorr",
"Correlation among different paths", 100, 0, 100);
591 h_numberPV =
fs_->
make<TH1I>(
"h_numberPV",
"Number of Primary Vertex", 100, 0, 100);
592 h_goodPV =
fs_->
make<TH1I>(
"h_goodPV",
"Number of good Primary Vertex", 100, 0, 100);
593 h_goodRun =
fs_->
make<TH1I>(
"h_goodRun",
"Number of accepted events for Run", 4000, 190000, 1940000);
594 char hname[60], htit[200];
595 std::string CollectionNames[2] = {
"Reco",
"Propagated"};
596 for (
unsigned int i=0;
i<2;
i++) {
597 sprintf(hname,
"h_nTrk_%s", CollectionNames[
i].c_str());
598 sprintf(htit,
"Number of %s tracks", CollectionNames[
i].c_str());
601 std::string TrkNames[8] = {
"All",
"Quality",
"NoIso",
"okEcal",
"EcalCharIso",
"HcalCharIso",
"EcalNeutIso",
"HcalNeutIso"};
602 std::string particle[4] = {
"Electron",
"Pion",
"Kaon",
"Proton"};
603 for (
unsigned int i=0;
i<=
nGen_+1;
i++) {
605 sprintf(hname,
"h_pt_%s", TrkNames[
i].c_str());
606 sprintf(htit,
"p_{T} of %s tracks", TrkNames[
i].c_str());
608 sprintf(hname,
"h_pt_%s_%d", TrkNames[7].c_str(),
i-8);
609 sprintf(htit,
"p_{T} of %s tracks (PV=%d:%d)", TrkNames[7].c_str(),
pvBin_[
i-8],
pvBin_[
i-7]-1);
611 sprintf(hname,
"h_pt_%s_%d", TrkNames[0].c_str(),
i-
nGen_);
612 sprintf(htit,
"p_{T} of %s Generator tracks", TrkNames[0].c_str());
614 sprintf(hname,
"h_pt_%s_%s", TrkNames[7].c_str(), particle[
i-8-
nPVBin_].c_str());
615 sprintf(htit,
"p_{T} of %s tracks (%s)", TrkNames[7].c_str(), particle[
i-8-
nPVBin_].c_str());
621 sprintf(hname,
"h_p_%s", TrkNames[
i].c_str());
622 sprintf(htit,
"Momentum of %s tracks", TrkNames[
i].c_str());
624 sprintf(hname,
"h_p_%s_%d", TrkNames[7].c_str(),
i-8);
625 sprintf(htit,
"Momentum of %s tracks (PV=%d:%d)", TrkNames[7].c_str(),
pvBin_[
i-8],
pvBin_[
i-7]-1);
627 sprintf(hname,
"h_p_%s_%d", TrkNames[0].c_str(),
i-
nGen_);
628 sprintf(htit,
"Momentum of %s Generator tracks", TrkNames[0].c_str());
630 sprintf(hname,
"h_p_%s_%s", TrkNames[7].c_str(), particle[
i-8-
nPVBin_].c_str());
631 sprintf(htit,
"Momentum of %s tracks (%s)", TrkNames[7].c_str(), particle[
i-8-
nPVBin_].c_str());
633 h_p[
i] =
fs_->
make<TH1D>(hname, htit, 400, 0, 200.0);
637 sprintf(hname,
"h_eta_%s", TrkNames[
i].c_str());
638 sprintf(htit,
"Eta of %s tracks", TrkNames[
i].c_str());
640 sprintf(hname,
"h_eta_%s_%d", TrkNames[7].c_str(),
i-8);
641 sprintf(htit,
"Eta of %s tracks (PV=%d:%d)", TrkNames[7].c_str(),
pvBin_[
i-8],
pvBin_[
i-7]-1);
643 sprintf(hname,
"h_eta_%s_%d", TrkNames[0].c_str(),
i-
nGen_);
644 sprintf(htit,
"Eta of %s Generator tracks", TrkNames[0].c_str());
646 sprintf(hname,
"h_eta_%s_%s", TrkNames[7].c_str(), particle[
i-8-
nPVBin_].c_str());
647 sprintf(htit,
"Eta of %s tracks (%s)", TrkNames[7].c_str(), particle[
i-8-
nPVBin_].c_str());
653 sprintf(hname,
"h_phi_%s", TrkNames[
i].c_str());
654 sprintf(htit,
"Phi of %s tracks", TrkNames[
i].c_str());
656 sprintf(hname,
"h_phi_%s_%d", TrkNames[7].c_str(),
i-8);
657 sprintf(htit,
"Phi of %s tracks (PV=%d:%d)", TrkNames[7].c_str(),
pvBin_[
i-8],
pvBin_[
i-7]-1);
659 sprintf(hname,
"h_phi_%s_%d", TrkNames[0].c_str(),
i-
nGen_);
660 sprintf(htit,
"Phi of %s Generator tracks", TrkNames[0].c_str());
662 sprintf(hname,
"h_phi_%s_%s", TrkNames[7].c_str(), particle[
i-8-
nPVBin_].c_str());
663 sprintf(htit,
"Phi of %s tracks (%s)", TrkNames[7].c_str(), particle[
i-8-
nPVBin_].c_str());
669 for (
unsigned int i=0;
i<2;
i++) {
670 sprintf(hname,
"h_maxNearP_%s", IsolationNames[
i].c_str());
671 sprintf(htit,
"Energy in ChargeIso region for %s", IsolationNames[
i].c_str());
675 sprintf(hname,
"h_ene1_%s", IsolationNames[
i].c_str());
676 sprintf(htit,
"Energy in smaller cone for %s", IsolationNames[
i].c_str());
680 sprintf(hname,
"h_ene2_%s", IsolationNames[
i].c_str());
681 sprintf(htit,
"Energy in bigger cone for %s", IsolationNames[
i].c_str());
685 sprintf(hname,
"h_ediff_%s", IsolationNames[
i].c_str());
686 sprintf(htit,
"Energy in NeutralIso region for %s", IsolationNames[
i].c_str());
690 std::string energyNames[6]={
"E_{7x7}",
"H_{3x3}",
"(E_{7x7}+H_{3x3})",
691 "E_{11x11}",
"H_{5x5}",
"{E_{11x11}+H_{5x5})"};
693 for (
int ip=0; ip<
nPBin_; ++ip) {
695 for (
int j=0; j<6; ++j) {
696 sprintf(hname,
"h_energy_%d_%d_%d_%d",
i, ip, ie, j);
698 sprintf(htit,
"%s/p (p=%4.1f:%4.1f; i#eta=%d:%d) for tracks with %s",
700 (
etaBin_[ie+1]-1), TrkNames[
i+4].c_str());
701 }
else if (
i < 4+nPVBin_) {
702 sprintf(htit,
"%s/p (p=%4.1f:%4.1f, i#eta=%d:%d, PV=%d:%d) for tracks with %s",
705 TrkNames[7].c_str());
707 sprintf(htit,
"%s/p (p=%4.1f:%4.1f, i#eta=%d:%d %s) for tracks with %s",
709 (
etaBin_[ie+1]-1), particle[
i-4-nPVBin_].c_str(),
710 TrkNames[7].c_str());
748 char hname[100], htit[400];
751 sprintf(hname,
"h_HLTAccepts_%i", iRun.
run());
752 sprintf(htit,
"HLT Accepts for Run No %i", iRun.
run());
753 TH1I *hnew =
fs_->
make<TH1I>(hname, htit, 500, 0, 500);
754 for (
int i=1;
i<=500; ++
i) hnew->GetXaxis()->SetBinLabel(
i,
" ");
792 double enHcal1,
double enEcal2,
double enHcal2) {
800 if (ip >= 0 && ie >= 0 && enEcal1 > 0.02 && enHcal1 > 0.1) {
812 int length = str.length();
813 for (
int i=0;
i<length-2;
i++){
814 if (str[
i]==
'_' && str[
i+1]==
'v' && isdigit(str.at(
i+2))) {
816 truncated_str = str.substr(0,z);
819 return(truncated_str);
826 reco::GenParticleCollection::const_iterator
p;
828 for (p=genParticles->begin(),indx=0; p!=genParticles->end(); ++
p,++indx) {
830 int idx = (pdgId == 11) ? 1 :
831 ((pdgId == 211) ? 2 : ((pdgId == 321) ? 3 : ((pdgId == 2212) ? 4 : 0)));
833 double dEta = pTrack->
eta() - p->momentum().Eta();
834 double phi1 = pTrack->
phi();
835 double phi2 = p->momentum().Phi();
836 if (phi1 < 0) phi1 += 2.0*
M_PI;
837 if (phi2 < 0) phi2 += 2.0*
M_PI;
838 double dPhi = phi1-phi2;
840 else if (dPhi < -
M_PI) dPhi += 2.*
M_PI;
841 double dR =
sqrt(dEta*dEta+dPhi*dPhi);
843 mindR =
dR;
id =
idx;
const edm::InputTag theTriggerResultsLabel_
static const std::string kSharedResource
void fillEnergy(int, int, double, double, double, double, double)
double p() const
momentum vector magnitude
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
T getParameter(std::string const &) const
EventNumber_t event() const
edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
T getUntrackedParameter(std::string const &, T const &) const
std::vector< double > tr_TrkPt
std::vector< double > tr_H3x3
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, const std::string &theTrackQuality, bool debug=false)
const std::string theTrackQuality_
const edm::InputTag triggerEvent_
void analyze(edm::Event const &, edm::EventSetup const &) override
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
The single EDProduct to be saved for each event (AOD case)
std::vector< double > tr_MaxNearP31X31
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TrackQuality
track quality
#define DEFINE_FWK_MODULE(type)
std::vector< TH1I * > h_HLTAccepts
std::vector< std::string > tr_TrigName
std::vector< bool > tr_SE7x7P
bool accept() const
Has at least one path accepted the event?
edm::EDGetTokenT< GenEventInfoProduct > tok_ew_
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< reco::GenParticleCollection > tok_parts_
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
double phi() const
azimuthal angle of momentum vector
T * make(const Args &...args) const
make new ROOT object
const Vector & momentum() const
track momentum vector
std::vector< std::string > HLTNames_
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Strings const & triggerNames() const
std::vector< double > tr_TrkEta
edm::EDGetTokenT< reco::TrackCollection > tok_genTrack_
void fillIsolation(int, double, double, double)
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
TH1D * h_energy[nPVBin_+8][nPBin_][nEtaBin_][6]
double chargeIsolationEcal(unsigned int trkIndex, std::vector< spr::propagatedTrackID > &vdetIds, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, bool debug=false)
double eta() const
pseudorapidity of momentum vector
std::vector< int > tr_iEta
spr::trackSelectionParameters selectionParameters_
edm::EDGetTokenT< reco::VertexCollection > tok_recVtx_
void fillTrack(int, double, double, double, double)
std::vector< double > tr_MaxNearHcalP7x7
std::string truncate_str(const std::string &)
const std::vector< double > puWeights_
unsigned int size() const
Get number of paths stored.
double pt() const
track transverse momentum
static const int nEtaBin_
Abs< T >::type abs(const T &t)
HLTConfigProvider hltConfig_
std::vector< bool > tr_SE11x11P
static std::string const triggerResults
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< double > tr_FE11x11P
static TrackQuality qualityByName(const std::string &name)
edm::Service< TFileService > fs_
T const * product() const
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
std::vector< int > tr_TrkID
int trackPID(const reco::Track *, const edm::Handle< reco::GenParticleCollection > &)
const double maxTrackEta_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< LumiDetails > tok_lumi
bool quality(const TrackQuality) const
Track quality.
std::vector< double > tr_H7x7
void beginRun(edm::Run const &, edm::EventSetup const &) override
std::vector< double > tr_FE15x15P
edm::EDGetTokenT< edm::TriggerResults > tok_trigRes
reco::TrackBase::TrackQuality minQuality
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
StudyHLT(const edm::ParameterSet &)
std::vector< double > tr_FE7x7P
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
std::vector< double > tr_TrkPhi
double chargeIsolationHcal(unsigned int trkIndex, std::vector< spr::propagatedTrackID > &vdetIds, const HcalTopology *topology, int ieta, int iphi, bool debug=false)
std::vector< double > tr_TrkP
T const * product() const
std::vector< bool > tr_SE15x15P
const std::vector< std::string > trigNames_
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
std::vector< double > tr_H5x5
void endRun(edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< trigger::TriggerEvent > tok_trigEvt
double eECALmatrix(const DetId &detId, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)
const std::vector< std::string > newNames_
double eHCALmatrix(const HcalTopology *topology, const DetId &det, edm::Handle< T > &hits, int ieta, int iphi, bool includeHO=false, bool algoNew=true, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, int useRaw=0, bool debug=false)