52 ATH_MSG_WARNING (
" Too many points specified vs the expected content of the ntuple ! " );
60 std::vector<Double_t> Amplitude(2000);
61 std::vector<Double_t> Time(2000);
62 outfit->SetBranchAddress(
"channelId", &channelId);
63 outfit->SetBranchAddress(
"timeIndex", &tIndex);
64 outfit->SetBranchAddress(
"Amplitude", Amplitude.data());
65 outfit->SetBranchAddress(
"Time", Time.data());
68 auto larPhysWaveContainerNew = std::make_unique<LArPhysWaveContainer>();
70 ATH_CHECK ( larPhysWaveContainerNew->initialize() );
73 Long64_t nentries = outfit->GetEntries();
75 for ( Long64_t i = 0; i < nentries; i++ )
81 for (
unsigned int i = 0; i <
m_NPoints; i++ ) wave[i]=0.;
82 unsigned int skipped = 0;
85 double dt=Time[1]-Time[0];
86 for (
unsigned int i = 0; i < limit; i++ )
88 if(i>1 && Time[i] - Time[i-1] != dt) {
90 return StatusCode::FAILURE;
107 return StatusCode::SUCCESS;