Ignore:
Timestamp:
01/15/02 11:48:08 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MMcPedestalNSBAdd.cc

    r1174 r1180  
    3838//  slice:                                                                 //
    3939//                                                                         //
    40 //  Y=sqrt(X*FADC_time/Number_of_slice*pixel_size)*Amp_single_phe_response //
     40//  Y = sqrt(X * FADC_time / Number_of_slices * pixel_size)                //
     41//      * Amp_single_phe_response                                          //
    4142//                                                                         //
    4243//  Input Containers:                                                      //
     
    8182    // RunHeader tree the auto scheme is disabled by default
    8283    //
    83     AddToBranchList("fPedesMean");
    84     AddToBranchList("fElecNoise");
     84    AddToBranchList("MMcFadcHeader.fPedesMean");
     85    AddToBranchList("MMcFadcHeader.fElecNoise");
    8586}
    8687
     
    105106// --------------------------------------------------------------------------
    106107//
    107 // The PreProcess does nothing since the process does not exist and
    108 // therefore it does not need any pointer or files already initialysed
    109 
     108// - check whether we have a monte carlo file. if not skip this task
     109// - try to get MMcFadcHeader, MGeomCam and MPedestalCam from the parameter
     110//   list
     111// - try to find a MMcRunHeader, too
     112//
    110113Bool_t MMcPedestalNSBAdd::PreProcess(MParList *pList)
    111114{
    112 
    113    // FIX ME , ReInit should be called automatically. When it is
    114    // implemented then this line should be removed.
    115 
    116115    if (!CheckRunType(pList))
    117116    {
     
    149148}
    150149
     150// --------------------------------------------------------------------------
     151//
     152// If a MMcRunHeader is available the DNSB MMcRunHeader::GetNumPheFromDNSB
     153// is returned. Otherwise the user given number is used.
     154//
    151155Float_t MMcPedestalNSBAdd::GetDnsb(MParList *pList) const
    152156{
     
    206210    for (int i=0; i<num; i++)
    207211    {
    208         MPedestalPix &pix     = (*fPedCam)[i];
    209         MGeomPix    &pixgeom = (*fGeom)[i];
    210 
    211         const Float_t pedrms  = pix.GetSigma();
    212         const Float_t size    = pixgeom.GetR()*pixgeom.GetR()/size0;
    213 
    214         const Float_t ampl    = fFadc->GetAmplitud();
     212        MPedestalPix   &pix     = (*fPedCam)[i];
     213        const MGeomPix &pixgeom = (*fGeom)[i];
     214
     215        const Float_t pedrms = pix.GetSigma();
     216        const Float_t size   = pixgeom.GetR()*pixgeom.GetR()/size0;
     217
     218        const Float_t ampl   = fFadc->GetAmplitud();
    215219
    216220        pix.SetSigma(sqrt(pedrms*pedrms + dnsbpix*ampl*ampl*size));
Note: See TracChangeset for help on using the changeset viewer.