LauFitDataTree.cc
Go to the documentation of this file.
70 std::cerr << "ERROR in LauFitDataTree::openFileAndTree : Bad filename supplied, not creating file or tree." << std::endl;
75 std::cerr << "ERROR in LauFitDataTree::openFileAndTree : Problem opening file \"" << rootFileName_ << "\" for reading." << std::endl;
85 std::cerr << "ERROR in LauFitDataTree::openFileAndTree : Problem reading tree \"" << rootTreeName_ << "\" from file." << std::endl;
95 std::cerr << "ERROR in LauFitDataTree::findBranches : Invalid pointer to data tree." << std::endl;
101 std::cerr << "ERROR in LauFitDataTree::findBranches : Branches already found, not running again." << std::endl;
117 std::cerr << "ERROR in LauFitDataTree::findBranches : Problem retrieving leaves from the tree." << std::endl;
124 std::cerr << "ERROR in LauFitDataTree::findBranches : List of leaves is not the same size as the number of branches - this is strange!" << std::endl;
125 std::cerr << " : There are " << numLeaves << " leaves and " << numBranches << " branches" << std::endl;
136 std::cerr << "ERROR in LauFitDataTree::findBranches : Tree has array branches, can't deal with those." << std::endl;
152 std::cout << "INFO in LauFitDataTree::findBranches : Finished finding data tree branches." << std::endl;
153 std::cout << " : Tree contains " << numBranches << " branches and a total of " << numEvents << " events." << std::endl;
162 std::cerr << "ERROR in LauFitDataTree::readExperimentData : Invalid pointer to data tree." << std::endl;
181 // If it's experiment 0, assume that we should read all events in the tree (but print a warning since this is an assumption)
182 std::cerr << "WARNING in LauFitDataTree::readExperimentData : Tree does not contain \"iExpt\" branch, will read all data in the tree" << std::endl;
187 std::cerr << "ERROR in LauFitDataTree::readExperimentData : Tree does not contain \"iExpt\" branch and experiment requested is > 0, will not read anything" << std::endl;
198 std::cout << "INFO in LauFitDataTree::readExperimentData : Setting tree to experiment number " << iExpt << "." << std::endl;
218 void LauFitDataTree::appendFakePoints( const std::vector<Double_t>& xCoords, const std::vector<Double_t>& yCoords)
221 std::cerr << "ERROR in LauFitDataTree::appendFakePoints : The co-ordinate vectors are not the same size!" << std::endl;
237 std::cerr << "ERROR in LauFitDataTree::appendFakePoints : Can't find entry \"m13Sq\" in event data map." << std::endl;
244 std::cerr << "ERROR in LauFitDataTree::appendFakePoints : Can't find entry \"m23Sq\" in event data map." << std::endl;
255 std::cerr << "ERROR in LauFitDataTree::appendFakePoints : Can't find entry \"tagCat\" in event data map." << std::endl;
330 std::cerr << "ERROR in LauFitDataTree::loadData : Event " << iEvt << " has infinite or NaN entry for variable " << leaf->GetName() << std::endl;
359 std::cerr << "ERROR in LauFitDataTree::getData : Requested event, " << iEvt << ", not found." << std::endl;
370 std::cerr << "ERROR in LauFitDataTree::getData : Requested event " << iEvt << " not found for " << rootTreeName_ << std::endl;
374 for ( LauNameIndexMap::const_iterator iter = leafNames_.begin(); iter != leafNames_.end(); ++iter ) {
380 std::cerr << "ERROR in LauFitDataTree::getData : Something very strange happening." << std::endl;
File containing declaration of LauFitDataTree class. ClassImp(LauAbsCoeffSet) std::vector< LauEventData > fakeEvents_ The fake events, which are not from the tree. Definition: LauFitDataTree.hh:219 LauFitData eventDataOut_ Stores the current event (for external use) Definition: LauFitDataTree.hh:210 std::map< TString, Double_t > LauFitData Type for holding event data. Definition: LauFitDataTree.hh:45 std::vector< LauEventData > treeEvents_ The events read from the tree. Definition: LauFitDataTree.hh:216 UInt_t nBranches() const Obtain the number of branches in the tree. Definition: LauFitDataTree.cc:206 void readExperimentData(UInt_t iExpt) Read events only for the given experiment. Definition: LauFitDataTree.cc:158 LauNameIndexMap leafNames_ Stores the mapping from the leaf names to the vector indices. Definition: LauFitDataTree.hh:204 TEventList * eventList_ A list of the events in the current experiment. Definition: LauFitDataTree.hh:201 void appendFakePoints(const std::vector< Double_t > &xCoords, const std::vector< Double_t > &yCoords) Add fake events to the data. Definition: LauFitDataTree.cc:218 const LauFitData & getData(UInt_t iEvt) const Retrieve the data for a given event. Definition: LauFitDataTree.cc:348 Bool_t haveBranch(const TString &name) const Check if the named branch is stored. Definition: LauFitDataTree.cc:273 void enableBranch(const TString &name) const Enable the named branch. Definition: LauFitDataTree.cc:289 void disableBranch(const TString &name) const Disable the named branch. Definition: LauFitDataTree.cc:294 Generated by 1.8.5 |