Go to the source code of this file.
Definition at line 59 of file lutaddbar.C.
References At, PndDrcLutNode::Entries(), f, fLutSum, PndDrcLutNode::GetDetectorId(), PndDrcLutNode::GetEntry(), PndDrcLutNode::GetPath(), PndDrcLutNode::GetPathId(), PndDrcLutNode::GetPos(), PndDrcLutNode::GetTime(), i, and t.
Referenced by lutaddbar().
61 TTree *
t=(TTree *) f->Get(
"dircsim") ;
62 TClonesArray* fLut[5];
63 for(Int_t l=0; l<5; l++){
64 fLut[l] =
new TClonesArray(
"PndDrcLutNode");
65 t->SetBranchAddress(Form(
"LUT%d",l),&fLut[l]);
68 std::cout<<
filename<<
" has "<<fLut[0]->GetEntriesFast()<<
" entries" <<std::endl;
69 for(Int_t l=0; l<5; l++){
70 for (Int_t inode=0; inode<fLut[l]->GetEntriesFast(); inode++){
71 if(inode%10000==0) std::cout<<
"Entry # "<< inode <<std::endl;
Int_t GetPathId(Int_t entry)
Double_t GetPath(Int_t entry)
cout<< "blue = Monte Carlo "<< endl;cout<< "red = Helix Hit "<< endl;cout<< "green = Center Of Tubes "<< endl;for(Int_t k=0;k< track->GetEntriesFast();k++){PndSttTrack *stttrack=(PndSttTrack *) track-> At(k)
TVector3 GetEntry(Int_t entry)
TClonesArray * fLutSum[5]
Double_t GetTime(Int_t entry)
int lutaddbar |
( |
TString |
inFile = "lut_one_*.root" , |
|
|
TString |
outFile = "lut_all.root" |
|
) |
| |
Definition at line 3 of file lutaddbar.C.
References adddirs(), ext, file, files, fLutSum, inFile, n, next, outFile, and TString.
5 TTree *fTreeNew =
new TTree(
"dircsim",
"Look-up table for DIRC");
6 for(Int_t l=0; l<5; l++){
7 fLutSum[l] =
new TClonesArray(
"PndDrcLutNode");
8 fTreeNew->Branch(Form(
"LUT%d",l),&
fLutSum[l],256000,0);
12 for(Int_t l=0; l<5; l++){
13 TClonesArray &fLutaSum = *
fLutSum[l];
14 for (Long64_t
n=0;
n<Nnodes;
n++) {
28 const char *
ext=
".root";
29 TSystemDirectory dir(dirname, dirname);
30 TList *
files = dir.GetListOfFiles();
35 while ((file=(TSystemFile*)
next())) {
36 fname = file->GetName();
37 if (!file->IsDirectory() && fname.EndsWith(ext)) {
39 TString substr = path.SubString(start);
40 if( substr.Length()>0 && path.EndsWith(end)){
50 TFile *fFileNew = TFile::Open(
outFile,
"RECREATE");
54 std::cout<<
"File "<<
outFile<<
" was created." <<std::endl;
std::map< int, TString > files
TClonesArray * fLutSum[5]
void adddirs(TString filename)