//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Abstract Interface for residual calculation with // reference tracks // USAGE: Create this object ON MACRO LEVEL, // add all required branch names // YOU HAVE TO MAKE SURE IN YOUR IMPLEMENTATION OF // THAT THE DATA YOU NEED IS THERE! // // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Felix Boehmer (original author) // Sverre Doerheim (adapted to be more general) // Physik Department E18, TUM // //----------------------------------------------------------- #include "AbsResCalc.h" #include "TClonesArray.h" #include AbsResCalc::AbsResCalc() : fInit(false), fNExpectedBranches(0) { ; } AbsResCalc::~AbsResCalc() { std::map::iterator it; for(it=fBranchMap.begin(); it!=fBranchMap.end(); it++) delete it->second; } int AbsResCalc::addBranchName(const TString& s) { //check if this entry already exists //TODO: exception handling if(fBranchMap.count(s)) { std::cout<<"AbsResCalc::addBranchName()"<