Skip to content

Commit cbf8d99

Browse files
Merge pull request #382 from ehrlich-uva/main
added ROC/FEB/FEB# to crvdigis and sequence index to crvpulses
2 parents 45e95ce + f20d09b commit cbf8d99

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
@@ -306,7 +306,7 @@ namespace mu2e
306306
recoInfo.emplace_back(tdet->toDetector(HitPos), barIndex.asInt(), sectorNumber, crvRecoPulse->GetSiPMNumber(),
307307
crvRecoPulse->GetROC(), crvRecoPulse->GetFEB(), crvRecoPulse->GetFEBchannel(),
308308
crvRecoPulse->GetPEs(), crvRecoPulse->GetPEsPulseHeight(), crvRecoPulse->GetPulseHeight(),
309-
crvRecoPulse->GetPulseBeta(), crvRecoPulse->GetPulseFitChi2(), crvRecoPulse->GetPulseTime(), crvHitIndex);
309+
crvRecoPulse->GetPulseBeta(), crvRecoPulse->GetPulseFitChi2(), crvRecoPulse->GetPulseTime(), crvHitIndex, crvRecoPulse->GetSequenceIndex());
310310

311311
//MCtruth pulses information
312312
if(!crvDigiMCs.isValid())
@@ -367,7 +367,8 @@ namespace mu2e
367367
{
368368
mu2e::CrvDigi const& digi(crvDigis->at(j));
369369
for(size_t k=0; k<digi.GetADCs().size(); k++)
370-
digiInfo.emplace_back(digi.GetADCs()[k], (digi.GetStartTDC()+k)*CRVDigitizationPeriod, digi.GetScintillatorBarIndex().asInt(), digi.GetSiPMNumber());
370+
digiInfo.emplace_back(digi.GetADCs()[k], (digi.GetStartTDC()+k)*CRVDigitizationPeriod, digi.GetScintillatorBarIndex().asInt(), digi.GetSiPMNumber(),
371+
digi.GetROC(), digi.GetFEB(), digi.GetFEBchannel());
371372
}
372373
} // FillCrvDigiInfoCollections
373374

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)