42 outfit->Add(s.c_str());
51 Int_t FT, slot, channel;
53 auto Amplitude = std::make_unique<Double_t[]>(2000);
54 auto Error = std::make_unique<Double_t[]>(2000);
57 outfit->SetBranchAddress(
"channelId", &channelId);
58 outfit->SetBranchAddress(
"FT", &FT);
59 outfit->SetBranchAddress(
"slot", &slot);
60 outfit->SetBranchAddress(
"channel", &channel);
61 outfit->SetBranchAddress(
"timeIndex", &timeIndex);
62 outfit->SetBranchAddress(
"Dt", &Dt);
63 outfit->SetBranchAddress(
"timeOffset", &timeOffset);
64 outfit->SetBranchAddress(
"flag", &flag);
65 outfit->SetBranchAddress(
"gain", &gain);
66 outfit->SetBranchAddress(
"Amplitude", Amplitude.get());
67 outfit->SetBranchAddress(
"Error", Error.get());
68 outfit->SetBranchAddress(
"Triggers", Triggers);
71 auto larPhysWaveContainerNew = std::make_unique<LArPhysWaveContainer>();
73 ATH_CHECK ( larPhysWaveContainerNew->initialize() );
78 Long64_t nentries = outfit->GetEntries();
79 for ( Long64_t i = 0; i < nentries; i++ )
82 if(
m_isSC && gain >0)
continue;
83 ATH_MSG_INFO (
" Chan " << std::hex << channelId << std::dec );
87 if(FT != onlineHelper->
feedthrough(
id) || slot != onlineHelper->
slot(
id) || channel != onlineHelper->
channel(
id)) {
97 if ( timeIndex >= 2000 ) {
98 ATH_MSG_ERROR (
" Too many points specified vs the expected content of the ntuple ! " );
102 std::vector<double> wave(timeIndex);
103 std::vector<double> wave_err(timeIndex);
104 std::vector<int> wave_trig(timeIndex);
105 for (
int i = 0; i < timeIndex; i++ ) {
110 unsigned int skipped = 0;
111 unsigned int limit = timeIndex;
113 for (
unsigned int i = 0; i < limit; i++ )
125 LArPhysWave newLArPhysWave(wave, wave_err, wave_trig, Dt, timeOffset, uflag);
132 return StatusCode::SUCCESS;