Ignore:
Timestamp:
11/08/03 09:20:10 (21 years ago)
Author:
galante
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhistmc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhistmc/MHMcTriggerLvl2.cc

    r2399 r2489  
    7979    fTitle = title ? title : "Trigger L2 image parameters";
    8080
    81     fHistLutPseudoSize  = new TH1F("fHistLutPseudoSize",  "number of compact pixels in one lut",                12,   0, 12);
     81    fHistLutPseudoSize  = new TH1F("fHistLutPseudoSize",  "number of compact pixels in one lut",                13,   0, 13);
    8282    fHistPseudoSize     = new TH1F("fHistPseudoSize",   "Multiplicity of the cluster identified by the L2T",    397,   0, 397);
    83     fHistSizeBiggerCell  = new TH1F("fHistSizeBiggerCell",   "Number of fired pixel in bigger cell",            36,   0, 36);
    84 
    85     fHistLutPseudoSizeNorm  = new TH1F("fHistLutPseudoSizeNorm",  "Normalized Number of compact pixels in one lut",                12,   0, 12);
     83    fHistSizeBiggerCell  = new TH1F("fHistSizeBiggerCell",   "Number of fired pixel in bigger cell",            37,   0, 37);
     84
     85    fHistLutPseudoSizeNorm  = new TH1F("fHistLutPseudoSizeNorm",  "Normalized Number of compact pixels in one lut",                13,   0, 13);
    8686    fHistPseudoSizeNorm     = new TH1F("fHistPseudoSizeNorm",   "Normalized Multiplicity of the cluster identified by the L2T",    397,   0, 397);
    87     fHistSizeBiggerCellNorm  = new TH1F("fHistSizeBiggerCellNorm",   "Normalized Number of fired pixel in bigger cell",            36,   0, 36);
     87    fHistSizeBiggerCellNorm  = new TH1F("fHistSizeBiggerCellNorm",   "Normalized Number of fired pixel in bigger cell",            37,   0, 37);
    8888
    8989    fHistLutPseudoSize->SetDirectory(NULL);
     
    329329//  so remember to cast the returned object if you want to work with it.
    330330//
    331 TH1 *MHMcTriggerLvl2::GetHistByName(const TString name)
    332 {
     331TObject *MHMcTriggerLvl2::GetHistByName(const TString name) const
     332{
     333 
     334    if (name.Contains("fHistLutPseudoSizeEnergy", TString::kIgnoreCase))
     335        return fHistLutPseudoSizeEnergy;
     336    if (name.Contains("fHistSizeBiggerCellEnergy", TString::kIgnoreCase))
     337        return fHistSizeBiggerCellEnergy;
     338    if (name.Contains("fHistPseudoSizeEnergy", TString::kIgnoreCase))
     339        return fHistPseudoSizeEnergy;
     340
    333341    if (name.Contains("fHistLutPseudoSize", TString::kIgnoreCase))
    334342      return fHistLutPseudoSize;
     
    344352    if (name.Contains("fHistPseudoSizeNorm", TString::kIgnoreCase))
    345353        return fHistPseudoSizeNorm;
    346 
    347     if (name.Contains("fHistLutPseudoSizeEnergy", TString::kIgnoreCase))
    348         return fHistLutPseudoSizeEnergy;
    349     if (name.Contains("fHistSizeBiggerCellEnergy", TString::kIgnoreCase))
    350         return fHistSizeBiggerCellEnergy;
    351     if (name.Contains("fHistPseudoSizeEnergy", TString::kIgnoreCase))
    352         return fHistPseudoSizeEnergy;
    353354           
    354355    return NULL;
  • trunk/MagicSoft/Mars/mhistmc/MHMcTriggerLvl2.h

    r2399 r2489  
    4343    Bool_t Fill(const MParContainer *par, const Stat_t w=1);
    4444
    45     TH1 *GetHistByName(const TString name);
     45    TObject *GetHistByName(const TString name) const;
    4646
    4747    TH1F *GetHistLutPseudoSize() const { return fHistLutPseudoSize; }
Note: See TracChangeset for help on using the changeset viewer.