LauFitDataTree.cc
Go to the documentation of this file.
56 std::cerr << "ERROR in LauFitDataTree::openFileAndTree : Bad filename supplied, not creating file or tree." << std::endl;
61 std::cerr << "ERROR in LauFitDataTree::openFileAndTree : Problem opening file \"" << rootFileName_ << "\" for reading." << std::endl;
71 std::cerr << "ERROR in LauFitDataTree::openFileAndTree : Problem reading tree \"" << rootTreeName_ << "\" from file." << std::endl;
81 std::cerr << "ERROR in LauFitDataTree::findBranches : Invalid pointer to data tree." << std::endl;
87 std::cerr << "ERROR in LauFitDataTree::findBranches : Branches already found, not running again." << std::endl;
103 std::cerr << "ERROR in LauFitDataTree::findBranches : Problem retrieving leaves from the tree." << std::endl;
110 std::cerr << "ERROR in LauFitDataTree::findBranches : List of leaves is not the same size as the number of branches - this is strange!" << std::endl;
111 std::cerr << " : There are " << numLeaves << " leaves and " << numBranches << " branches" << std::endl;
122 std::cerr << "ERROR in LauFitDataTree::findBranches : Tree has array branches, can't deal with those." << std::endl;
138 std::cout << "INFO in LauFitDataTree::findBranches : Finished finding data tree branches." << std::endl;
139 std::cout << " : Tree contains " << numBranches << " branches and a total of " << numEvents << " events." << std::endl;
147 std::cerr << "ERROR in LauFitDataTree::readExperimentData : Invalid pointer to data tree." << std::endl;
163 std::cout << "INFO in LauFitDataTree::readExperimentData : Setting tree to experiment number " << iExpt << "." << std::endl;
182 void LauFitDataTree::appendFakePoints( const std::vector<Double_t>& xCoords, const std::vector<Double_t>& yCoords)
185 std::cerr << "ERROR in LauFitDataTree::appendFakePoints : The co-ordinate vectors are not the same size!" << std::endl;
201 std::cerr << "ERROR in LauFitDataTree::appendFakePoints : Can't find entry \"m13Sq\" in event data map." << std::endl;
208 std::cerr << "ERROR in LauFitDataTree::appendFakePoints : Can't find entry \"m23Sq\" in event data map." << std::endl;
219 std::cerr << "ERROR in LauFitDataTree::appendFakePoints : Can't find entry \"tagCat\" in event data map." << std::endl;
294 std::cerr << "ERROR in LauFitDataTree::loadData : Event " << iEvt << " has infinite or NaN entry for variable " << leaf->GetName() << std::endl;
323 std::cerr << "ERROR in LauFitDataTree::getData : Requested event, " << iEvt << ", not found." << std::endl;
334 std::cerr << "ERROR in LauFitDataTree::getData : Requested event " << iEvt << " not found for " << rootTreeName_ << std::endl;
338 for ( LauNameIndexMap::const_iterator iter = leafNames_.begin(); iter != leafNames_.end(); ++iter ) {
344 std::cerr << "ERROR in LauFitDataTree::getData : Something very strange happening." << std::endl;
File containing declaration of LauFitDataTree class. std::vector< LauEventData > fakeEvents_ The fake events, which are not from the tree. Definition: LauFitDataTree.hh:199 LauFitData eventDataOut_ Stores the current event (for external use) Definition: LauFitDataTree.hh:190 std::map< TString, Double_t > LauFitData Type for holding event data. Definition: LauFitDataTree.hh:31 std::vector< LauEventData > treeEvents_ The events read from the tree. Definition: LauFitDataTree.hh:196 UInt_t nBranches() const Obtain the number of branches in the tree. Definition: LauFitDataTree.cc:170 void readExperimentData(UInt_t iExpt) Read events only for the given experiment. Definition: LauFitDataTree.cc:144 LauNameIndexMap leafNames_ Stores the mapping from the leaf names to the vector indices. Definition: LauFitDataTree.hh:184 TEventList * eventList_ A list of the events in the current experiment. Definition: LauFitDataTree.hh:181 void appendFakePoints(const std::vector< Double_t > &xCoords, const std::vector< Double_t > &yCoords) Add fake events to the data. Definition: LauFitDataTree.cc:182 const LauFitData & getData(UInt_t iEvt) const Retrieve the data for a given event. Definition: LauFitDataTree.cc:312 Bool_t haveBranch(const TString &name) const Check if the named branch is stored. Definition: LauFitDataTree.cc:237 void enableBranch(const TString &name) const Enable the named branch. Definition: LauFitDataTree.cc:253 void disableBranch(const TString &name) const Disable the named branch. Definition: LauFitDataTree.cc:258 Generated by 1.8.5 |