10 #include "TCollection.h"
33 TList* l = f->GetListOfKeys();
37 while( (ob = iter()) ){
38 if (
TString(ob->GetName()).Contains(
"ocave_1oMvd-2.1")){
39 TString newName = ob->GetName();
40 newName.Append(
"_sum");
41 TProfile2D* histo = (TProfile2D*)(f->Get(ob->GetName()));
52 TString mapName = histo->GetName();
53 mapName.Append(
"_sum");
55 TProfile2D* newHisto =
new TProfile2D(*histo);
56 newHisto->SetName(mapName);
68 std::map<TString, TProfile2D*>::iterator iter =
fHistoMap.begin();
69 for (
int j = 0; j <
i; j++)iter++;
80 TFile
f(fileName,
"RECREATE");
84 for (std::map<TString, TProfile2D*>::const_iterator iter =
fHistoMap.begin(); iter !=
fHistoMap.end(); iter++){
85 if (iter->second != 0){
86 iter->second->Write();
void SaveHistos(TString fileName)
virtual ~PndMvdAnaRadDam()
void AddHisto(TProfile2D *histo)
TH2 * GetHistoByName(TString name)
std::map< TString, TProfile2D * > fHistoMap
std::vector< TFile * > fFileList