44 outfit->Add(s.c_str());
53 Int_t FT, slot, channel;
55 auto Amplitude = std::make_unique<Double_t[]>(2000);
56 auto Error = std::make_unique<Double_t[]>(2000);
59 outfit->SetBranchAddress(
"channelId", &channelId);
60 outfit->SetBranchAddress(
"FT", &FT);
61 outfit->SetBranchAddress(
"slot", &slot);
62 outfit->SetBranchAddress(
"channel", &channel);
63 outfit->SetBranchAddress(
"timeIndex", &timeIndex);
64 outfit->SetBranchAddress(
"Dt", &Dt);
65 outfit->SetBranchAddress(
"timeOffset", &timeOffset);
66 outfit->SetBranchAddress(
"flag", &flag);
67 outfit->SetBranchAddress(
"gain", &gain);
68 outfit->SetBranchAddress(
"Amplitude", Amplitude.get());
69 outfit->SetBranchAddress(
"Error", Error.get());
70 outfit->SetBranchAddress(
"Triggers", Triggers);
73 auto larPhysWaveContainerNew = std::make_unique<LArPhysWaveContainer>();
75 ATH_CHECK ( larPhysWaveContainerNew->initialize() );
80 Long64_t nentries = outfit->GetEntries();
81 for ( Long64_t i = 0; i < nentries; i++ )
84 if(
m_isSC && gain >0)
continue;
85 ATH_MSG_INFO (
" Chan " << std::hex << channelId << std::dec );
89 if(FT != onlineHelper->
feedthrough(
id) || slot != onlineHelper->
slot(
id) || channel != onlineHelper->
channel(
id)) {
99 if ( timeIndex >= 2000 ) {
100 ATH_MSG_ERROR (
" Too many points specified vs the expected content of the ntuple ! " );
104 std::vector<double> wave(timeIndex);
105 std::vector<double> wave_err(timeIndex);
106 std::vector<int> wave_trig(timeIndex);
107 for (
int i = 0; i < timeIndex; i++ ) {
112 unsigned int skipped = 0;
113 unsigned int limit = timeIndex;
115 for (
unsigned int i = 0; i < limit; i++ )
127 LArPhysWave newLArPhysWave(wave, wave_err, wave_trig, Dt, timeOffset, uflag);
134 return StatusCode::SUCCESS;