Attachment 'MakePlaHist.C'
Downloadvoid MakePlaHist(){
TArtStoreManager * sman = TArtStoreManager::Instance();
TArtEventStore *estore = new TArtEventStore();
estore->Open("ridf/sdaq02/dayone0080.ridf");
TArtBigRIPSParameters *para = TArtBigRIPSParameters::Instance();
para->LoadParameter("db/BigRIPSPlastic.xml");
TH1 *hf7plat = new TH1D("hf7plat","F7Pla T",4000,0,4000);
TH1 *hf7plaq = new TH1D("hf7plaq","F7Pla Q",500,0,500);
TH2 *hf7pla = new TH2D("hf7pla","F7Pla T Q",200,0,4000, 200,0,500);
TArtCalibPlastic *calib_pla = new TArtCalibPlastic;
TClonesArray * pla_array =
(TClonesArray *)sman->FindDataContainer("BigRIPSPlastic");
int neve = 0;
while(neve<10000){
if(neve%1000==0)
cout << "event: " << neve << endl;
//------------------------------------------------
estore->GetNextEvent();
calib_pla->ReconstructData();
//------------------------------------------------
// Plastic
TArtPlastic * pla = (TArtPlastic *)TArtUtil::FindDataObject(pla_array,(char*)"F7pl");
Double_t f7plat, f7plaq;
if(pla){
if(pla->GetTLRaw() > 0 && pla->GetTRRaw() > 0){
f7plat = ((Double_t)pla->GetTLRaw() + (Double_t)pla->GetTRRaw())/2;
hf7plat->Fill(f7plat);
}
if(pla->GetQLRaw() > 0 && pla->GetQRRaw() > 0){
f7plaq = pla->GetQAveRaw();
hf7plaq->Fill(f7plaq);
}
if (f7plat>0 && f7plaq>0)
hf7pla->Fill(f7plat,f7plaq);
}
//------------------------------------------------
estore->ClearData();
calib_pla->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-10-17 06:59:08, 278.1 KB) [[attachment:ANAROOT講習会資料.pdf]]
- [get | view] (2013-06-25 06:26:53, 0.5 KB) [[attachment:CounterExample.cc]]
- [get | view] (2012-10-17 06:53:24, 1.6 KB) [[attachment:MakePlaHist.C]]
- [get | view] (2012-08-20 06:37:41, 6.2 KB) [[attachment:TArtCSVParameter.cc]]
- [get | view] (2012-08-20 06:37:53, 1.0 KB) [[attachment:TArtCSVParameter.hh]]
- [get | view] (2013-06-25 06:26:20, 5.3 KB) [[attachment:TArtCounter.cc]]
- [get | view] (2013-06-25 06:26:40, 1.2 KB) [[attachment:TArtCounter.hh]]
- [get | view] (2012-11-29 12:05:55, 4.8 KB) [[attachment:TArtParameters.cc]]
- [get | view] (2012-11-29 12:05:35, 1.0 KB) [[attachment:TArtParameters.hh]]
- [get | view] (2012-12-04 15:34:16, 6.3 KB) [[attachment:TArtUserParameters.cc]]
- [get | view] (2012-12-04 15:34:00, 1.6 KB) [[attachment:TArtUserParameters.hh]]
- [get | view] (2012-12-04 15:34:38, 1.6 KB) [[attachment:UserParameters.xml]]
- [get | view] (2012-04-19 08:38:22, 3.0 KB) [[attachment:ana-mode.el]]
- [get | view] (2012-04-20 03:38:36, 2.7 KB) [[attachment:anaroot_filter.ver1.00.jar]]
- [get | view] (2012-06-04 04:07:52, 2.6 KB) [[attachment:anaroot_filter.ver1.01.jar]]
- [get | view] (2012-06-01 17:27:17, 4.7 KB) [[attachment:calc2xml.v2.xsl]]
- [get | view] (2012-04-20 03:33:51, 6.3 KB) [[attachment:calc2xml.xsl]]
- [get | view] (2012-10-17 07:32:11, 1.0 KB) [[attachment:install-example.txt]]
- [get | view] (2012-11-29 12:06:11, 1.0 KB) [[attachment:parameters.xml]]
- [get | view] (2012-04-20 03:33:17, 3.1 KB) [[attachment:xml2calc.xsl]]
You are not allowed to attach a file to this page.