Attachment 'CoinHist.C'
Downloadvoid CoinHist(){ // set raw data file TArtEventStore *estore = new TArtEventStore(); estore->Open("ridf/1205_dayone/sdaq02/dayone0090.ridf");// 22C+C tirg=DSB(1/1) // define histogram TH1* hcoin = new TH1I("hcoin", "COIN", 16,0.5,16.5); // calibration class TArtCalibCoin *calibcoin = new TArtCalibCoin(); int neve = 0; while(estore->GetNextEvent() && neve<10000){ calibcoin->LoadData();// use LoadData instead of ReconstructData for (int id=1;id<16;id++) if (calibcoin->IsChTrue(id)) hcoin->Fill(id); /* Definition for the SAMURAI dayone expeirment id = 1 : DS-BEAM id = 2 : BEAM x NEBULA id = 3 : BEAM x DALI id = 4 : BEAM x HOD */ // calibcoin->ClearData();// do nothing estore->ClearData(); ++neve; } }
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.- [get | view] (2012-11-02 05:21:15, 1.6 KB) [[attachment:BPCHist.C]]
- [get | view] (2013-02-27 09:18:59, 0.8 KB) [[attachment:CoinHist.C]]
- [get | view] (2012-11-02 05:10:49, 2.6 KB) [[attachment:FDC2Hist.C]]
- [get | view] (2012-11-02 04:31:49, 2.1 KB) [[attachment:HODHist.C]]
- [get | view] (2012-11-02 04:31:32, 1.6 KB) [[attachment:ICBHist.C]]
- [get | view] (2014-12-31 11:41:13, 19.5 KB) [[attachment:OnlineMonitor.cc]]
- [get | view] (2014-12-31 11:41:02, 2.6 KB) [[attachment:OnlineMonitor.hh]]
- [get | view] (2012-11-02 05:25:41, 1.7 KB) [[attachment:PlaHist.C]]
- [get | view] (2012-02-15 09:14:24, 3.2 KB) [[attachment:ch2ns.C]]
- [get | view] (2012-02-15 10:05:13, 3.0 KB) [[attachment:getlandaupeak.C]]
- [get | view] (2012-02-15 09:14:53, 2.7 KB) [[attachment:getped.C]]
- [get | view] (2012-02-13 09:49:04, 2.6 KB) [[attachment:makevsta.C]]
- [get | view] (2012-02-19 14:44:04, 0.5 KB) [[attachment:slew.C]]
You are not allowed to attach a file to this page.