Changeset 284 in Idarraga
- Timestamp:
- Apr 20, 2012, 5:11:30 PM (12 years ago)
- Location:
- mafalda/MPXAlgo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
mafalda/MPXAlgo/MediPixAlgo.cpp
r251 r284 10 10 #include "MediPixAlgo.h" 11 11 #include "MPXStoreGate/CandidateContainer.h" 12 #include "MAFTools/MAFTools.h" 12 13 13 14 ClassImp(MediPixAlgo) … … 208 209 } 209 210 211 std::map<int,int> MediPixAlgo::GetTOTMap(){ 212 return m_myManager->GetTOTMap(); 213 } 214 210 215 Int_t MediPixAlgo::GetMatrixElement(Int_t col, Int_t row){ 211 216 return m_myManager->GetMatrixElement(col, row); 212 217 } 213 218 214 std::map<int,int> MediPixAlgo::GetTOTMap(){ 215 return m_myManager->GetTOTMap(); 216 } 217 218 Int_t MediPixAlgo::GetMatrixElement(std::pair<UInt_t, Int_t> coordinatesPair){ 219 Int_t MediPixAlgo::GetMatrixElement(std::pair<Int_t, Int_t> coordinatesPair){ 219 220 return m_myManager->GetMatrixElement(coordinatesPair.first, coordinatesPair.second); 221 } 222 223 Int_t MediPixAlgo::GetCalibEnergy(Int_t col, Int_t row){ 224 return m_myManager->GetCalibEnergy(MAFTools::XYtoC(col, row, GetWidth())); 225 } 226 227 void MediPixAlgo::SetCalibEnergy(std::pair<Int_t, Int_t> pix, Double_t e){ 228 SetCalibEnergy(pix.first, pix.second, e); 229 } 230 void MediPixAlgo::SetCalibEnergy(Int_t col, Int_t row, Double_t e){ 231 m_myManager->SetCalibEnergy(MAFTools::XYtoC(col, row, GetWidth()), e); 220 232 } 221 233 … … 224 236 } 225 237 226 Int_t MediPixAlgo::GetLVL1(std::pair< UInt_t, Int_t> coordinatesPair){238 Int_t MediPixAlgo::GetLVL1(std::pair<Int_t, Int_t> coordinatesPair){ 227 239 return m_myManager->GetLVL1(coordinatesPair.first, coordinatesPair.second); 228 240 } … … 230 242 Double_t MediPixAlgo::GetMatrixElementMCEdep(Int_t col, Int_t row){ 231 243 return m_myManager->GetMatrixElementMCEdep(col, row); 244 } 245 246 Double_t MediPixAlgo::GetMatrixElementMCEdep(std::pair<Int_t, Int_t> coordinatesPair){ 247 return m_myManager->GetMatrixElementMCEdep(coordinatesPair.first, coordinatesPair.second); 232 248 } 233 249 … … 491 507 } 492 508 509 // This is a User oriented function. No consideration here for special objects 493 510 Int_t MediPixAlgo::GetNumberOfObjectsWithAuthor(TString authorName){ 511 // !!! WARNING, if there are no hits in the pad, Here we return 0 ! even if there 512 // are service objects !!! 513 if(GetHitsInPad() == 0 ) return 0; 494 514 return m_myManager->GetStoreGate()->GetNObjWithAuthor(authorName); 495 515 } -
mafalda/MPXAlgo/MediPixAlgo.h
r251 r284 45 45 OutputMng Log; 46 46 void changeOutputLevel(MSG::Level newL){Log.OutputLevel = newL;}; 47 void OutputLevel(MSG::Level newL){changeOutputLevel(newL);}; // same as changeOutputLevel 47 48 void InitMPXAlgo(TString, MediPixAnalysisCore *); 48 49 void PostInitMPXAlgo(); … … 74 75 75 76 Int_t GetMatrixElement(Int_t col, Int_t row); 76 Int_t GetMatrixElement(std::pair<UInt_t, Int_t>); 77 Int_t GetMatrixElement(std::pair<Int_t, Int_t>); 78 79 // Set pixel map after calibration 80 Int_t GetCalibEnergy(Int_t col, Int_t row); 81 void SetCalibEnergy(std::pair<Int_t, Int_t> pix, Double_t e); 82 void SetCalibEnergy(Int_t col, Int_t row, Double_t e); 77 83 78 84 Int_t GetLVL1(Int_t col, Int_t row); 79 Int_t GetLVL1(std::pair< UInt_t, Int_t>);85 Int_t GetLVL1(std::pair<Int_t, Int_t>); 80 86 81 87 Double_t GetMatrixElementMCEdep(Int_t col, Int_t row); 88 Double_t GetMatrixElementMCEdep(std::pair<Int_t, Int_t>); 82 89 83 90 UInt_t GetMatrixCropAsBitWord(Int_t, Int_t, Int_t, Int_t);
Note: See TracChangeset
for help on using the changeset viewer.