Commit 00a99df5 authored by dauncey's avatar dauncey
Browse files

Add Hack.hh for Mac ROOT problem and Gaussian PU mean

parent 89394d5a
No preview for this file type
...@@ -196,6 +196,7 @@ i_x \\ i_y ...@@ -196,6 +196,7 @@ i_x \\ i_y
\end{pmatrix} \end{pmatrix}
\end{equation} \end{equation}
\newpage
\section{Optimisation of layer weights} \section{Optimisation of layer weights}
Each event $e$ gives some values $d_{e,i}$ of the deposited energy in Each event $e$ gives some values $d_{e,i}$ of the deposited energy in
layer $i$; these layer $i$; these
......
...@@ -18,7 +18,7 @@ public: ...@@ -18,7 +18,7 @@ public:
const std::string &sRoot="", const std::string &sRoot="",
const std::string &sOut="") // ctor const std::string &sOut="") // ctor
: fTwoPi(2.0*acos(-1.0)), fName(sName), : fTwoPi(2.0*acos(-1.0)), fName(sName),
fTFileHandler((sOut==""?"":sOut+"/")+fName+(sRoot==""?sRoot:"_"+sRoot)) { fTFileHandler((sOut==""?"":sOut+"/")+fName+(sRoot==""?"/Base":"/"+sRoot)) {
fEventSelect=0; fEventSelect=0;
fPrintLevel=0; fPrintLevel=0;
......
This diff is collapsed.
...@@ -46,7 +46,10 @@ public: ...@@ -46,7 +46,10 @@ public:
hPuGenEvent=new TH1F((fName+"_PuGenEvent").c_str(), hPuGenEvent=new TH1F((fName+"_PuGenEvent").c_str(),
";Number of PU events", ";Number of PU events",
400,0.0,400.0); 100,0.0,500.0);
hParticlesVsPuGenEvent=new TH2F((fName+"_ParticlesVsPuGenEvent").c_str(),
";Number of PU events;Number of particles",
100,0.0,500.0,100,0.0,500.0);
hSimHitEventNumber[0]=new TH1F((fName+"_SimHitEventNumberSig").c_str(), hSimHitEventNumber[0]=new TH1F((fName+"_SimHitEventNumberSig").c_str(),
";Signal SimHit event number", ";Signal SimHit event number",
...@@ -57,28 +60,28 @@ public: ...@@ -57,28 +60,28 @@ public:
hMipsVsLayer[0]=new TH2F((fName+"_"+"MipsVsLayer0").c_str(), hMipsVsLayer[0]=new TH2F((fName+"_"+"MipsVsLayer0").c_str(),
";Layer;MIPs", ";Layer;MIPs",
52,0.0,52.0,100,0.0,10.0); Geometry::kNumberOfLayers+2,0.0,Geometry::kNumberOfLayers+2,100,0.0,10.0);
hMipsVsLayerP[0]=new TProfile((fName+"_"+"MipsVsLayer0P").c_str(), hMipsVsLayerP[0]=new TProfile((fName+"_"+"MipsVsLayer0P").c_str(),
";Layer;MIPs", ";Layer;MIPs",
52,0.0,52.0,0.0,10.0); Geometry::kNumberOfLayers+2,0.0,Geometry::kNumberOfLayers+2,0.0,10.0);
hMipsVsLayer[1]=new TH2F((fName+"_"+"MipsVsLayer1").c_str(), hMipsVsLayer[1]=new TH2F((fName+"_"+"MipsVsLayer1").c_str(),
";Layer;MIPs", ";Layer;MIPs",
52,0.0,52.0,100,0.0,100.0); Geometry::kNumberOfLayers+2,0.0,Geometry::kNumberOfLayers+2,100,0.0,100.0);
hMipsVsLayerP[1]=new TProfile((fName+"_"+"MipsVsLayer1P").c_str(), hMipsVsLayerP[1]=new TProfile((fName+"_"+"MipsVsLayer1P").c_str(),
";Layer;MIPs", ";Layer;MIPs",
52,0.0,52.0,0.0,100.0); Geometry::kNumberOfLayers+2,0.0,Geometry::kNumberOfLayers+2,0.0,100.0);
hMipsVsLayer[2]=new TH2F((fName+"_"+"MipsVsLayer2").c_str(), hMipsVsLayer[2]=new TH2F((fName+"_"+"MipsVsLayer2").c_str(),
";Layer;MIPs", ";Layer;MIPs",
52,0.0,52.0,100,0.0,1000.0); Geometry::kNumberOfLayers+2,0.0,Geometry::kNumberOfLayers+2,100,0.0,1000.0);
hMipsVsLayerP[2]=new TProfile((fName+"_"+"MipsVsLayer2P").c_str(), hMipsVsLayerP[2]=new TProfile((fName+"_"+"MipsVsLayer2P").c_str(),
";Layer;MIPs", ";Layer;MIPs",
52,0.0,52.0,0.0,1000.0); Geometry::kNumberOfLayers+2,0.0,Geometry::kNumberOfLayers+2,0.0,1000.0);
hMipsVsLayer[3]=new TH2F((fName+"_"+"MipsVsLayer3").c_str(), hMipsVsLayer[3]=new TH2F((fName+"_"+"MipsVsLayer3").c_str(),
";Layer;MIPs", ";Layer;MIPs",
52,0.0,52.0,100,0.0,10000.0); Geometry::kNumberOfLayers+2,0.0,Geometry::kNumberOfLayers+2,100,0.0,10000.0);
hMipsVsLayerP[3]=new TProfile((fName+"_"+"MipsVsLayer3P").c_str(), hMipsVsLayerP[3]=new TProfile((fName+"_"+"MipsVsLayer3P").c_str(),
";Layer;MIPs", ";Layer;MIPs",
52,0.0,52.0,0.0,10000.0); Geometry::kNumberOfLayers+2,0.0,Geometry::kNumberOfLayers+2,0.0,10000.0);
hPhotonEta=new TH1R((fName+"_"+"PhotonEta").c_str(), hPhotonEta=new TH1R((fName+"_"+"PhotonEta").c_str(),
";Truth photon |#eta|", ";Truth photon |#eta|",
...@@ -381,12 +384,15 @@ public: ...@@ -381,12 +384,15 @@ public:
unsigned simHitNum[Geometry::kNumberOfEndcaps][Geometry::kNumberOfLayers]; unsigned simHitNum[Geometry::kNumberOfEndcaps][Geometry::kNumberOfLayers];
double simHitSum[Geometry::kNumberOfEndcaps][Geometry::kNumberOfLayers]; double simHitSum[Geometry::kNumberOfEndcaps][Geometry::kNumberOfLayers];
unsigned nParticles(0);
for(unsigned e(0);e<Geometry::kNumberOfEndcaps;e++) { for(unsigned e(0);e<Geometry::kNumberOfEndcaps;e++) {
std::vector<Particle> &vL1Track(event.l1Tracks(e)); std::vector<Particle> &vL1Track(event.l1Tracks(e));
std::cout << fName << " Event " << fEventNumber std::cout << fName << " Event " << fEventNumber
<< " numbers of particles in endcap " << e << " = " << " numbers of particles in endcap " << e << " = "
<< vL1Track.size() << std::endl; << vL1Track.size() << std::endl;
nParticles+=vL1Track.size();
std::vector<Particle> &vPhoton(event.photons(e)); std::vector<Particle> &vPhoton(event.photons(e));
std::cout << fName << " Event " << fEventNumber std::cout << fName << " Event " << fEventNumber
<< " numbers of photons in endcap " << e << " = " << " numbers of photons in endcap " << e << " = "
...@@ -603,14 +609,14 @@ public: ...@@ -603,14 +609,14 @@ public:
hHitNumber[l]->Fill(nSimHitLayer); hHitNumber[l]->Fill(nSimHitLayer);
hHitNumber[Geometry::kNumberOfLayers]->Fill(nSimHit); hHitNumber[Geometry::kNumberOfLayers]->Fill(nSimHit);
hMipsVsLayer[0]->Fill(l,simHitMips[l]); hMipsVsLayer[0]->Fill(l+1,simHitMips[l]);
hMipsVsLayerP[0]->Fill(l,simHitMips[l]); hMipsVsLayerP[0]->Fill(l+1,simHitMips[l]);
hMipsVsLayer[1]->Fill(l,simHitMips[l]); hMipsVsLayer[1]->Fill(l+1,simHitMips[l]);
hMipsVsLayerP[1]->Fill(l,simHitMips[l]); hMipsVsLayerP[1]->Fill(l+1,simHitMips[l]);
hMipsVsLayer[2]->Fill(l,simHitMips[l]); hMipsVsLayer[2]->Fill(l+1,simHitMips[l]);
hMipsVsLayerP[2]->Fill(l,simHitMips[l]); hMipsVsLayerP[2]->Fill(l+1,simHitMips[l]);
hMipsVsLayer[3]->Fill(l,simHitMips[l]); hMipsVsLayer[3]->Fill(l+1,simHitMips[l]);
hMipsVsLayerP[3]->Fill(l,simHitMips[l]); hMipsVsLayerP[3]->Fill(l+1,simHitMips[l]);
} }
if(fabs(simHitMips[0]-event.simMips(e,0))<1.0e-5*event.simMips(e,0)) { if(fabs(simHitMips[0]-event.simMips(e,0))<1.0e-5*event.simMips(e,0)) {
...@@ -700,6 +706,9 @@ public: ...@@ -700,6 +706,9 @@ public:
*/ */
} }
hParticlesVsPuGenEvent->Fill(event.puGenEvent().size(),nParticles);
bool noHits(true); bool noHits(true);
for(unsigned l(0);l<Geometry::kNumberOfLayers;l++) { for(unsigned l(0);l<Geometry::kNumberOfLayers;l++) {
if(simHitNum[0][l]>0 || simHitNum[1][l]>0) noHits=false; if(simHitNum[0][l]>0 || simHitNum[1][l]>0) noHits=false;
...@@ -745,6 +754,7 @@ protected: ...@@ -745,6 +754,7 @@ protected:
TH1F *hGenTrackEta; TH1F *hGenTrackEta;
TH1F *hPuGenEvent; TH1F *hPuGenEvent;
TH2F *hParticlesVsPuGenEvent;
TH1F *hSimHitEventNumber[2]; TH1F *hSimHitEventNumber[2];
......
...@@ -79,6 +79,15 @@ public: ...@@ -79,6 +79,15 @@ public:
else fDetId&=0xfffffdff; else fDetId&=0xfffffdff;
} }
bool pbxSelected() const {
return (fDetId&0x00001000)!=0;
}
void pbxSelected(bool f) {
if(f) fDetId|=0x00001000;
else fDetId&=0xffffefff;
}
bool tpgSelected() const { bool tpgSelected() const {
return (fDetId&0x00000400)!=0; return (fDetId&0x00000400)!=0;
} }
......
...@@ -5,25 +5,26 @@ ...@@ -5,25 +5,26 @@
#include <cstdint> #include <cstdint>
#include <vector> #include <vector>
#include "AdcReading.hh" #include "AdcReadingMultiple.hh"
#include "DigHitDetId.hh" #include "DigHitDetId.hh"
#include "Random.hh" #include "Random.hh"
#include "SimHit.hh" #include "SimHit.hh"
#include "DigNoise.hh" #include "DigNoise.hh"
class DigHitMultiple : public DigHitDetId, public AdcReading { class DigHitMultiple : public DigHitDetId, public AdcReadingMultiple {
public: public:
/* Now in AdcReadingMultiple
enum { enum {
kNumberOfBx=6 kNumberOfBx=6
}; };
*/
DigHitMultiple() DigHitMultiple()
//: RecDetId(0) { //: RecDetId(0) {
: DigHitDetId(0) { : DigHitDetId(0) {
fSimHitDepositSignal=0.0; fSimHitDepositSignal=0.0;
for(unsigned bx(0);bx<kNumberOfBx;bx++) { for(unsigned bx(0);bx<AdcReadingMultiple::kNumberOfBx;bx++) {
fSimHitDepositPileup[bx]=0.0; fSimHitDepositPileup[bx]=0.0;
} }
} }
...@@ -92,14 +93,14 @@ public: ...@@ -92,14 +93,14 @@ public:
void zeroSimHitDeposits() { void zeroSimHitDeposits() {
fSimHitDepositSignal=0.0; fSimHitDepositSignal=0.0;
fSimHitDepositPileup[fBxNumber%kNumberOfBx]=0.0; fSimHitDepositPileup[AdcReadingMultiple::currentBx()]=0.0;
} }
void addSimHitDeposit(float d, bool signal=false) { void addSimHitDeposit(float d, bool signal=false) {
if(invalid()) return; if(invalid()) return;
if(signal) fSimHitDepositSignal+=d; if(signal) fSimHitDepositSignal+=d;
else fSimHitDepositPileup[fBxNumber%kNumberOfBx]+=d; else fSimHitDepositPileup[AdcReadingMultiple::currentBx()]+=d;
} }
bool addSimHitVector(std::vector<SimHit> &s) { bool addSimHitVector(std::vector<SimHit> &s) {
...@@ -154,32 +155,32 @@ public: ...@@ -154,32 +155,32 @@ public:
// Result // Result
double charge() const { double charge(unsigned dBx=0) const {
return chargeResult(); return chargeResult(dBx);
} }
double sigmas() const { double sigmas(unsigned dBx=0) const {
return charge()/sigma(); return charge(dBx)/sigma();
} }
double deposit() const { double deposit(unsigned dBx=0) const {
return charge()/Constants::fFcPerGev; return charge(dBx)/Constants::fFcPerGev;
} }
double mips() const { double mips(unsigned dBx=0) const {
return charge()*Constants::fMipPerFc[Geometry::numberOfSublayers(layer(),wafer())-1]; return charge(dBx)*Constants::fMipPerFc[Geometry::numberOfSublayers(layer(),wafer())-1];
} }
double transverseMips() const { double transverseMips(unsigned dBx=0) const {
return mips()*Geometry::point(*this).sinTheta(); return mips(dBx)*Geometry::point(*this).sinTheta();
} }
double energy() const { double energy(unsigned dBx=0) const {
return mips()*Calibration::layerWeight(layer()); return mips(dBx)*Calibration::layerWeight(layer());
} }
double transverseEnergy() const { double transverseEnergy(unsigned dBx=0) const {
return energy()*Geometry::point(*this).sinTheta(); return energy(dBx)*Geometry::point(*this).sinTheta();
} }
// Access to input charge (pre-digitisation) information // Access to input charge (pre-digitisation) information
...@@ -204,18 +205,22 @@ public: ...@@ -204,18 +205,22 @@ public:
// Access to SimHit information // Access to SimHit information
unsigned numberOfSimHits() const { unsigned numberOfSimHits() const {
return (fSimHitDepositSignal+fSimHitDepositPileup[fBxNumber%kNumberOfBx])>0.0?1:0; return (fSimHitDepositSignal+fSimHitDepositPileup[/*AdcReadingMultiple::*/currentBx()])>0.0?1:0;
} }
float simDeposit(bool signal=false) const { float simDeposit(bool signal=false) const {
//double w[kNumberOfBx]={0.199,0.406,0.736,1.000}; //double w[AdcReadingMultiple::kNumberOfBx]={0.199,0.406,0.736,1.000};
//double w[kNumberOfBx]={0.0,0.0,0.0,1.000}; //double w[AdcReadingMultiple::kNumberOfBx]={0.0,0.0,0.0,1.000};
double d(fSimHitDepositSignal); double d(fSimHitDepositSignal);
if(!signal) { if(!signal) {
for(unsigned bx(0);bx<kNumberOfBx;bx++) { /*
//unsigned bx(kNumberOfBx) { for(unsigned bx(0);bx<AdcReadingMultiple::kNumberOfBx;bx++) {
d+=fWeightBx[bx]*fSimHitDepositPileup[(fBxNumber+bx+1)%kNumberOfBx]; d+=fWeightBx[bx]*fSimHitDepositPileup[(AdcReadingMultiple::fBxNumber+bx+1)%AdcReadingMultiple::kNumberOfBx];
}
*/
for(unsigned dBx(0);dBx<AdcReadingMultiple::kNumberOfBx;dBx++) {
d+=fWeightBx[AdcReadingMultiple::kNumberOfBx-dBx-1]*fSimHitDepositPileup[previousBx(dBx)];
} }
} }
return d; return d;
...@@ -333,7 +338,7 @@ public: ...@@ -333,7 +338,7 @@ public:
//if(!RecDetId::read(fin)) return false; //if(!RecDetId::read(fin)) return false;
if(!DigHitDetId::read(fin)) return false; if(!DigHitDetId::read(fin)) return false;
if(!AdcReading::read(fin)) return false; if(!AdcReadingMultiple::read(fin)) return false;
fin >> std::dec; fin >> std::dec;
fin >> fGaussian; fin >> fGaussian;
...@@ -348,7 +353,7 @@ public: ...@@ -348,7 +353,7 @@ public:
if(!DigHitDetId::write(fout)) return false; if(!DigHitDetId::write(fout)) return false;
fout << " "; fout << " ";
if(!AdcReading::write(fout)) return false; if(!AdcReadingMultiple::write(fout)) return false;
fout << std::dec; fout << std::dec;
fout << " " << fGaussian; fout << " " << fGaussian;
...@@ -361,7 +366,7 @@ public: ...@@ -361,7 +366,7 @@ public:
std::cout << "DigHitMultiple::"; std::cout << "DigHitMultiple::";
//RecDetId::print(); //RecDetId::print();
DigHitDetId::print(); DigHitDetId::print();
std::cout << " ";AdcReading::print();std::cout << std::endl; std::cout << " ";AdcReadingMultiple::print();std::cout << std::endl;
std::cout << " Deposit " << deposit() << std::endl; std::cout << " Deposit " << deposit() << std::endl;
std::cout << " Charge " << charge() << std::endl; std::cout << " Charge " << charge() << std::endl;
std::cout << " MIPs " << mips() << std::endl; std::cout << " MIPs " << mips() << std::endl;
...@@ -390,22 +395,29 @@ public: ...@@ -390,22 +395,29 @@ public:
// CMSSW values // CMSSW values
if(fPeakingTime<0.0 || fRcPower==0) { if(fPeakingTime<0.0 || fRcPower==0) {
/*
fWeightBx[0]=0.0; fWeightBx[0]=0.0;
fWeightBx[1]=0.0; fWeightBx[1]=0.0;
fWeightBx[2]=0.0; fWeightBx[2]=0.0;
fWeightBx[3]=0.004; fWeightBx[3]=0.004;
fWeightBx[4]=0.200; fWeightBx[4]=0.200;
fWeightBx[5]=1.000; fWeightBx[5]=1.000;
*/
fWeightBx[0]=0.0;
fWeightBx[1]=0.004;
fWeightBx[2]=0.200;
fWeightBx[3]=1.000;
return; return;
} }
// CR-RC shaper // CR-RC shaper
for(unsigned bx(0);bx<kNumberOfBx;bx++) { for(unsigned bx(0);bx<AdcReadingMultiple::kNumberOfBx;bx++) {
if(fPeakingTime>0.0) { if(fPeakingTime>0.0) {
unsigned dbx(kNumberOfBx-bx-1); unsigned dbx(AdcReadingMultiple::kNumberOfBx-bx-1);
fWeightBx[bx]=(1.0+dbx/fPeakingTime)*exp(-(dbx/fPeakingTime)); fWeightBx[bx]=(1.0+dbx/fPeakingTime)*exp(-(dbx/fPeakingTime));
} else { } else {
fWeightBx[bx]=(bx==(kNumberOfBx-1)?1.0:0.0); fWeightBx[bx]=(bx==(AdcReadingMultiple::kNumberOfBx-1)?1.0:0.0);
} }
fWeightBx[bx]=pow(fWeightBx[bx],fRcPower); fWeightBx[bx]=pow(fWeightBx[bx],fRcPower);
...@@ -424,36 +436,36 @@ public: ...@@ -424,36 +436,36 @@ public:
static void printStatics() { static void printStatics() {
std::cout << "DigHitMultiple::printStatics()" << std::endl std::cout << "DigHitMultiple::printStatics()" << std::endl
<< " Number of BX saved = " << kNumberOfBx << std::endl << " Number of BX saved = " << AdcReadingMultiple::kNumberOfBx << std::endl
<< " Peaking time in units of BX = " << fPeakingTime << " Peaking time in units of BX = " << fPeakingTime
<< ", in units of ns = " << 25.0*fPeakingTime << std::endl << ", in units of ns = " << 25.0*fPeakingTime << std::endl
<< " CR-RC^N with N = " << fRcPower << std::endl << " CR-RC^N with N = " << fRcPower << std::endl
<< " Weights per BX ="; << " Weights per BX =";
for(unsigned bx(0);bx<kNumberOfBx;bx++) { for(unsigned bx(0);bx<AdcReadingMultiple::kNumberOfBx;bx++) {
std::cout << " " << fWeightBx[bx]; std::cout << " " << fWeightBx[bx];
} }
std::cout << std::endl << std::endl; std::cout << std::endl << std::endl;
} }
static unsigned fBxNumber; //static unsigned fBxNumber;
private: private:
static double fWeightBx[kNumberOfBx]; static double fWeightBx[AdcReadingMultiple::kNumberOfBx];
static double fPeakingTime; static double fPeakingTime;
static unsigned fRcPower; static unsigned fRcPower;
float fGaussian; float fGaussian;
float fSimHitDepositSignal; float fSimHitDepositSignal;
float fSimHitDepositPileup[kNumberOfBx]; float fSimHitDepositPileup[AdcReadingMultiple::kNumberOfBx];
}; };
unsigned DigHitMultiple::fBxNumber=0; //unsigned DigHitMultiple::fBxNumber=0;
double DigHitMultiple::fPeakingTime=1.0; // 25 ns in units of BX double DigHitMultiple::fPeakingTime=1.0; // 25 ns in units of BX
unsigned DigHitMultiple::fRcPower=1; unsigned DigHitMultiple::fRcPower=1;
double DigHitMultiple::fWeightBx[kNumberOfBx]={ double DigHitMultiple::fWeightBx[AdcReadingMultiple::kNumberOfBx]={
(1+5.0/fPeakingTime)*exp(-5.0/fPeakingTime), //(1+5.0/fPeakingTime)*exp(-5.0/fPeakingTime),
(1+4.0/fPeakingTime)*exp(-4.0/fPeakingTime), //(1+4.0/fPeakingTime)*exp(-4.0/fPeakingTime),
(1+3.0/fPeakingTime)*exp(-3.0/fPeakingTime), (1+3.0/fPeakingTime)*exp(-3.0/fPeakingTime),
(1+2.0/fPeakingTime)*exp(-2.0/fPeakingTime), (1+2.0/fPeakingTime)*exp(-2.0/fPeakingTime),
(1+1.0/fPeakingTime)*exp(-1.0/fPeakingTime), (1+1.0/fPeakingTime)*exp(-1.0/fPeakingTime),
......
...@@ -367,7 +367,7 @@ public: ...@@ -367,7 +367,7 @@ public:
private: private:
//double fGaussian; //double fGaussian;
float fGaussian; float fGaussian;
std::vector<SimHit> *vSimHit; //std::vector<SimHit> *vSimHit;
float fSimHitDeposit[2]; float fSimHitDeposit[2];
}; };
......
...@@ -91,6 +91,11 @@ public: ...@@ -91,6 +91,11 @@ public:
// Access SimHits // Access SimHits
unsigned minBiasEvents() const {
//return fMinBiasEvents;
return vPuGenEvent.size();
}
std::vector<SimHit>& simHits(unsigned e, unsigned l, unsigned w, unsigned c) { std::vector<SimHit>& simHits(unsigned e, unsigned l, unsigned w, unsigned c) {
BACKTRACE_AND_ASSERT(e<Geometry::kNumberOfEndcaps); BACKTRACE_AND_ASSERT(e<Geometry::kNumberOfEndcaps);
BACKTRACE_AND_ASSERT(l<Geometry::kNumberOfLayers); BACKTRACE_AND_ASSERT(l<Geometry::kNumberOfLayers);
...@@ -778,6 +783,7 @@ public: ...@@ -778,6 +783,7 @@ public:
for(unsigned c(0);c<Geometry::numberOfSensorCellsPerWafer(l,w);c++) { for(unsigned c(0);c<Geometry::numberOfSensorCellsPerWafer(l,w);c++) {
if(!vDigHit[e][l][w][c].invalid()) { if(!vDigHit[e][l][w][c].invalid()) {
vDigHit[e][l][w][c].daqSelected(vDigHit[e][l][w][c].mips()>=fDigHitDaqSelectorMipsCut[sl]); vDigHit[e][l][w][c].daqSelected(vDigHit[e][l][w][c].mips()>=fDigHitDaqSelectorMipsCut[sl]);
vDigHit[e][l][w][c].pbxSelected(vDigHit[e][l][w][c].mips(1)>=fDigHitPbxSelectorMipsCut[sl]);
vDigHit[e][l][w][c].tpgSelected(vDigHit[e][l][w][c].sigmas()>=fDigHitTpgSelectorSigmasCut); vDigHit[e][l][w][c].tpgSelected(vDigHit[e][l][w][c].sigmas()>=fDigHitTpgSelectorSigmasCut);
} else { } else {
vDigHit[e][l][w][c].daqSelected(false); vDigHit[e][l][w][c].daqSelected(false);
...@@ -1371,6 +1377,9 @@ static void printStatics() { ...@@ -1371,6 +1377,9 @@ static void printStatics() {
<< " fDigHitDaqSelectorMipsCut 100mu = " << fDigHitDaqSelectorMipsCut[0] << std::endl << " fDigHitDaqSelectorMipsCut 100mu = " << fDigHitDaqSelectorMipsCut[0] << std::endl
<< " fDigHitDaqSelectorMipsCut 200mu = " << fDigHitDaqSelectorMipsCut[1] << std::endl << " fDigHitDaqSelectorMipsCut 200mu = " << fDigHitDaqSelectorMipsCut[1] << std::endl
<< " fDigHitDaqSelectorMipsCut 300mu = " << fDigHitDaqSelectorMipsCut[2] << std::endl << " fDigHitDaqSelectorMipsCut 300mu = " << fDigHitDaqSelectorMipsCut[2] << std::endl
<< " fDigHitPbxSelectorMipsCut 100mu = " << fDigHitPbxSelectorMipsCut[0] << std::endl
<< " fDigHitPbxSelectorMipsCut 200mu = " << fDigHitPbxSelectorMipsCut[1] << std::endl
<< " fDigHitPbxSelectorMipsCut 300mu = " << fDigHitPbxSelectorMipsCut[2] << std::endl
<< " fDigHitTpgSelectorSigmasCut = " << fDigHitTpgSelectorSigmasCut << std::endl << " fDigHitTpgSelectorSigmasCut = " << fDigHitTpgSelectorSigmasCut << std::endl
<< " fTrgHitSelectorMethod = " << fTrgHitSelectorMethod << std::endl << " fTrgHitSelectorMethod = " << fTrgHitSelectorMethod << std::endl
<< " fTrgHitSelectorMipsCut = " << fTrgHitSelectorMipsCut << std::endl << " fTrgHitSelectorMipsCut = " << fTrgHitSelectorMipsCut << std::endl
...@@ -1381,6 +1390,7 @@ static void printStatics() { ...@@ -1381,6 +1390,7 @@ static void printStatics() {
static double fDigHitDaqSelectorMipsCut[3];