44 outfit->Add(
s.c_str());
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);
80 Long64_t
nentries = outfit->GetEntries();
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;