Skip to content

Commit f20d09b

Browse files
committed
added sequence index to crvpulses
1 parent ddfa25e commit f20d09b

4 files changed

Lines changed: 16 additions & 7 deletions

File tree

inc/CrvPulseInfoReco.hh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ namespace mu2e
2525
float pulseFitChi2 = -1; //Pulse Fit chi2
2626
float time = -1; //Time
2727
int crvHitIndex = -1; //index of the CRV hit containing this pulse, or -1 if unclustered
28+
int sequenceIndex = -1; //index of the pulse within a waveform
2829

2930
CrvPulseInfoReco(){}
30-
CrvPulseInfoReco(CLHEP::Hep3Vector ppos, int barId, int sectorId, int SiPMId, int ROC, int FEB, int FEBchannel, int PEs, int PEsPulseHeight, float pulseHeight, float pulseBeta, float pulseFitChi2, float time, int crvHitIndex);
31+
CrvPulseInfoReco(CLHEP::Hep3Vector ppos, int barId, int sectorId, int SiPMId, int ROC, int FEB, int FEBchannel, int PEs, int PEsPulseHeight, float pulseHeight, float pulseBeta, float pulseFitChi2, float time, int crvHitIndex, int sequenceIndex);
3132
};
3233

3334
typedef std::vector<CrvPulseInfoReco> CrvPulseInfoRecoCollection; //this is the reco vector which will be stored in the main TTree

inc/CrvWaveformInfo.hh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@ namespace mu2e
1111
float time = -1;
1212
int barId = -1;
1313
int SiPMId = -1;
14+
int ROC = -1;
15+
int FEB = -1;
16+
int FEBchannel = -1;
1417
CrvWaveformInfo(){}
15-
CrvWaveformInfo(float adc, float time, int barId, int SiPMId) :
18+
CrvWaveformInfo(float adc, float time, int barId, int SiPMId, int ROC, int FEB, int FEBchannel) :
1619
adc(adc),
1720
time(time),
1821
barId(barId),
19-
SiPMId(SiPMId)
22+
SiPMId(SiPMId),
23+
ROC(ROC),
24+
FEB(FEB),
25+
FEBchannel(FEBchannel)
2026
{}
2127
};
2228

src/CrvInfoHelper.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ namespace mu2e
297297
recoInfo.emplace_back(tdet->toDetector(HitPos), barIndex.asInt(), sectorNumber, crvRecoPulse->GetSiPMNumber(),
298298
crvRecoPulse->GetROC(), crvRecoPulse->GetFEB(), crvRecoPulse->GetFEBchannel(),
299299
crvRecoPulse->GetPEs(), crvRecoPulse->GetPEsPulseHeight(), crvRecoPulse->GetPulseHeight(),
300-
crvRecoPulse->GetPulseBeta(), crvRecoPulse->GetPulseFitChi2(), crvRecoPulse->GetPulseTime(), crvHitIndex);
300+
crvRecoPulse->GetPulseBeta(), crvRecoPulse->GetPulseFitChi2(), crvRecoPulse->GetPulseTime(), crvHitIndex, crvRecoPulse->GetSequenceIndex());
301301

302302
//MCtruth pulses information
303303
if(!crvDigiMCs.isValid())
@@ -358,7 +358,8 @@ namespace mu2e
358358
{
359359
mu2e::CrvDigi const& digi(crvDigis->at(j));
360360
for(size_t k=0; k<digi.GetADCs().size(); k++)
361-
digiInfo.emplace_back(digi.GetADCs()[k], (digi.GetStartTDC()+k)*CRVDigitizationPeriod, digi.GetScintillatorBarIndex().asInt(), digi.GetSiPMNumber());
361+
digiInfo.emplace_back(digi.GetADCs()[k], (digi.GetStartTDC()+k)*CRVDigitizationPeriod, digi.GetScintillatorBarIndex().asInt(), digi.GetSiPMNumber(),
362+
digi.GetROC(), digi.GetFEB(), digi.GetFEBchannel());
362363
}
363364
} // FillCrvDigiInfoCollections
364365

src/CrvPulseInfoReco.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "EventNtuple/inc/CrvPulseInfoReco.hh"
22
#include "CLHEP/Vector/ThreeVector.h"
33
namespace mu2e {
4-
CrvPulseInfoReco::CrvPulseInfoReco(CLHEP::Hep3Vector ppos, int barId, int sectorId, int SiPMId, int ROC, int FEB, int FEBchannel, int PEs, int PEsPulseHeight, float pulseHeight, float pulseBeta, float pulseFitChi2, float time, int crvHitIndex) :
4+
CrvPulseInfoReco::CrvPulseInfoReco(CLHEP::Hep3Vector ppos, int barId, int sectorId, int SiPMId, int ROC, int FEB, int FEBchannel, int PEs, int PEsPulseHeight, float pulseHeight, float pulseBeta, float pulseFitChi2, float time, int crvHitIndex, int sequenceIndex) :
55
pos(ppos),
66
barId(barId),
77
sectorId(sectorId),
@@ -15,6 +15,7 @@ namespace mu2e {
1515
pulseBeta(pulseBeta),
1616
pulseFitChi2(pulseFitChi2),
1717
time(time),
18-
crvHitIndex(crvHitIndex)
18+
crvHitIndex(crvHitIndex),
19+
sequenceIndex(sequenceIndex)
1920
{}
2021
}

0 commit comments

Comments
 (0)