Changeset 284 in Idarraga


Ignore:
Timestamp:
Apr 20, 2012, 5:11:30 PM (12 years ago)
Author:
idarraga
Message:
 
Location:
mafalda/MPXAlgo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mafalda/MPXAlgo/MediPixAlgo.cpp

    r251 r284  
    1010#include "MediPixAlgo.h"
    1111#include "MPXStoreGate/CandidateContainer.h"
     12#include "MAFTools/MAFTools.h"
    1213
    1314ClassImp(MediPixAlgo)
     
    208209}
    209210
     211std::map<int,int> MediPixAlgo::GetTOTMap(){
     212        return m_myManager->GetTOTMap();
     213}
     214
    210215Int_t MediPixAlgo::GetMatrixElement(Int_t col, Int_t row){
    211216        return m_myManager->GetMatrixElement(col, row);
    212217}
    213218
    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){
     219Int_t MediPixAlgo::GetMatrixElement(std::pair<Int_t, Int_t> coordinatesPair){
    219220        return m_myManager->GetMatrixElement(coordinatesPair.first, coordinatesPair.second);
     221}
     222
     223Int_t MediPixAlgo::GetCalibEnergy(Int_t col, Int_t row){
     224        return m_myManager->GetCalibEnergy(MAFTools::XYtoC(col, row, GetWidth()));
     225}
     226
     227void MediPixAlgo::SetCalibEnergy(std::pair<Int_t, Int_t> pix, Double_t e){
     228        SetCalibEnergy(pix.first, pix.second, e);
     229}
     230void MediPixAlgo::SetCalibEnergy(Int_t col, Int_t row, Double_t e){
     231        m_myManager->SetCalibEnergy(MAFTools::XYtoC(col, row, GetWidth()), e);
    220232}
    221233
     
    224236}
    225237
    226 Int_t MediPixAlgo::GetLVL1(std::pair<UInt_t, Int_t> coordinatesPair){
     238Int_t MediPixAlgo::GetLVL1(std::pair<Int_t, Int_t> coordinatesPair){
    227239        return m_myManager->GetLVL1(coordinatesPair.first, coordinatesPair.second);
    228240}
     
    230242Double_t MediPixAlgo::GetMatrixElementMCEdep(Int_t col, Int_t row){
    231243        return m_myManager->GetMatrixElementMCEdep(col, row);
     244}
     245
     246Double_t MediPixAlgo::GetMatrixElementMCEdep(std::pair<Int_t, Int_t> coordinatesPair){
     247        return m_myManager->GetMatrixElementMCEdep(coordinatesPair.first, coordinatesPair.second);
    232248}
    233249
     
    491507}
    492508
     509// This is a User oriented function.  No consideration here for special objects
    493510Int_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;
    494514        return m_myManager->GetStoreGate()->GetNObjWithAuthor(authorName);
    495515}
  • mafalda/MPXAlgo/MediPixAlgo.h

    r251 r284  
    4545  OutputMng Log;
    4646  void changeOutputLevel(MSG::Level newL){Log.OutputLevel = newL;};
     47  void OutputLevel(MSG::Level newL){changeOutputLevel(newL);}; // same as changeOutputLevel
    4748  void InitMPXAlgo(TString, MediPixAnalysisCore *);
    4849  void PostInitMPXAlgo();
     
    7475
    7576  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);
    7783
    7884  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>);
    8086
    8187  Double_t GetMatrixElementMCEdep(Int_t col, Int_t row);
     88  Double_t GetMatrixElementMCEdep(std::pair<Int_t, Int_t>);
    8289
    8390  UInt_t GetMatrixCropAsBitWord(Int_t, Int_t, Int_t, Int_t);
Note: See TracChangeset for help on using the changeset viewer.