Attachment 'ArtAnalyzeDALI1.C'
Download
#ifndef __CINT__
#include <iostream>
#include "TSystem.h"
#include "TArtEventStore.hh"
#include "TArtDALIParameters.hh"
#include "TArtCalibDALI.hh"
#include "TArtDALINaI.hh"
#include "TArtDALINaIPara.hh"
#endif
void ArtAnalyzeDALI1()
{
TArtEventStore *eventstore = new TArtEventStore;
const char* filename = "ridf/1205_dayone/sdaq02/dayone0123.ridf";
if(!eventstore->Open(filename)){
std::cout << "cannot open " << filename << std::endl;
return;
}
TArtDALIParameters *daliparameters = new TArtDALIParameters;
daliparameters->LoadParameter("db/DALI.xml");
TArtCalibDALI *calibdali= new TArtCalibDALI;
std::cout << " start to scan" << std::endl;
int nevent = 0;
while(eventstore->GetNextEvent() && nevent<100){
calibdali->ReconstructData();
Int_t NumDALI = calibdali->GetNumNaI();
calibdali->ClearData();
eventstore->ClearData();
++nevent;
std::cout << " AnaDALI: " << nevent << ", NumDALI: " << NumDALI << std::endl;
}
return;
}
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-07-13 05:51:44, 1.0 KB) [[attachment:ArtAnalyzeDALI1.C]]
- [get | view] (2012-07-13 05:52:19, 1.8 KB) [[attachment:ArtAnalyzeDALI2.C]]
You are not allowed to attach a file to this page.