[Halld-cal] Hot BCAL channels
David Lawrence
davidl at jlab.org
Sat Mar 21 11:20:27 EDT 2015
Hi Tegan,
Here’s a simple way to do it with the DAQTreeBCAL plugin:
> hd_root -PPLUGINS=DAQTreeBCAL ~/HallD/RAWDATA/hd_rawdata_002180_001.evio
> root -l hd_root.root
root [1] BCALdigi->MakeSelector()
root [2] .q
< edit the BCALdigi.C file to contain the following in the Bool_t BCALdigi::Process(Long64_t entry) method >
Bool_t BCALdigi::Process(Long64_t entry)
{
GetEntry(entry);
int Nbins = waveform->size();
char title[256];
sprintf(title, "Event %d ROC:%d SLOT:%d CHAN:%d", eventnum, rocid, slot, channel);
TH1D *h = new TH1D("h", title, Nbins, 0.0, (double)Nbins);
for(unsigned int ibin=1; ibin<=Nbins; ibin++) h->SetBinContent(ibin, waveform->at(ibin-1));
h->Draw();
c1->Update();
cout << "Press Enter to Continue";
cin.ignore();
delete h;
return kTRUE;
}
> root -l hd_root.root
root [1] BCALdigi->Process("BCALdigi.C")
That’s it. Now you know how to fish.
Regards,
-David
On Mar 20, 2015, at 4:56 PM, beattite <beattite at uregina.ca> wrote:
> Hello.
>
> I was trying to look into the effects of a few of the BCAL TDC scalars
> giving much higher event rates (up to 20x higher) than the average [see
> https://logbooks.jlab.org/entry/3327357]. The initial idea was to check
> out things like the pedestal and pulse integrals for these channels to
> confirm that we see something like this increased rate in the ADCs as
> well.
>
> I looked at a run from the day after the logbook entry was posted
> (Run002649) first. Looking through the pedestal histograms for each
> channel, I don't see the three 'hot' channels in terms of number of
> pedestal events.
>
> I also looked at the DAQTreeBCAL plugin output to look at the number of
> events recorded for each channel by BCALDigiHit. Again, I don't see any
> high-event channels. We were going to look at the pulse integral
> distributions to see if they showed something interesting, and we also
> wanted to look at the raw waveforms from some Mode 8 data.
>
> Is there a plugin somewhere that I could grab that would allow us to
> look at the waveforms easily? As in, is there an easy way to visually
> inspect waveforms for specific channels?
>
> Thanks.
> _______________________________________________
> Halld-cal mailing list
> Halld-cal at jlab.org
> https://mailman.jlab.org/mailman/listinfo/halld-cal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.jlab.org/pipermail/halld-cal/attachments/20150321/8b221cce/attachment.html
More information about the Halld-cal
mailing list