Classes | |
| class | NueUtilities::AnaNueProcessor |
Functions | |
| TChain * | CreateChain (std::string treeName, std::string fileListName) |
| Double_t | GetChainPOT (TChain *chain) |
|
||||||||||||
|
Definition at line 21 of file NueUtilities.cxx. Referenced by NueUtilities::AnaNueProcessor::AnaNueProcessor(), and NueUtilities::AnaNueProcessor::operator=(). 00022 {
00023 TChain *chain= new TChain(treeName.c_str());
00024 ifstream fileList(fileListName.c_str());
00025 if( fileList )
00026 {
00027 while( fileList.good() && !fileList.eof() )
00028 {
00029 std::string line;
00030 getline(fileList,line,'\n');
00031 if ( line.size()==0 ) continue;
00032 chain->Add(line.c_str());
00033 }
00034 }
00035 return chain;
00036 }
|
|
|
Definition at line 39 of file NueUtilities.cxx. References NuePOT::pot. Referenced by NueUtilities::AnaNueProcessor::GetTotalPOT(). 00040 {
00041 NuePOT *nuepot = NULL;
00042 chain->SetBranchAddress("NuePOT",&nuepot);
00043
00044 Double_t pot = 0;
00045 for( int i = 0; i<chain->GetEntries(); ++i )
00046 {
00047 chain->GetEntry(i);
00048 pot += nuepot->pot;
00049 }
00050 chain->ResetBranchAddresses();
00051
00052 return(pot);
00053 }
|
1.3.9.1