Ignore:
Timestamp:
01/25/09 14:32:11 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msimcamera
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msimcamera/MSimSignalCam.cc

    r9243 r9261  
    163163        pix.SetNumPhotons(fCont[idx]); // gRandom->Uniform(last-first)
    164164        pix.SetArrivalTime(fCont[idx]<=0 ? -1 : fTime[idx]/fCont[idx]-first);
    165         pix.SetPixelUsed();
     165        pix.SetRing(fCont[idx]>0); // Used==1, Unused==0
    166166        pix.SetPixelCore(kFALSE);
    167167    }
  • trunk/MagicSoft/Mars/msimcamera/MSimTrigger.cc

    r9256 r9261  
    289289    return kTRUE;
    290290}
     291
     292// --------------------------------------------------------------------------
     293//
     294// FileNameRouteac:         routeac.txt
     295// FileNameCoincidenceMap:  coincidence.txt
     296// DiscriminatorTheshold:   3.5
     297//
     298Int_t MSimTrigger::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     299{
     300    Bool_t rc = kFALSE;
     301    if (IsEnvDefined(env, prefix, "FileNameRouteAC", print))
     302    {
     303        rc = kTRUE;
     304        fNameRouteAC = GetEnvValue(env, prefix, "FileNameRouteAC", fNameRouteAC);
     305    }
     306
     307    if (IsEnvDefined(env, prefix, "FileNameCoincidenceMap", print))
     308    {
     309        rc = kTRUE;
     310        fNameCoincidenceMap = GetEnvValue(env, prefix, "FileNameCoincidenceMap", fNameCoincidenceMap);
     311    }
     312
     313    if (IsEnvDefined(env, prefix, "DiscriminatorThreshold", print))
     314    {
     315        rc = kTRUE;
     316        fDiscriminatorThreshold = GetEnvValue(env, prefix, "DiscriminatorThreshold", fDiscriminatorThreshold);
     317    }
     318
     319    return rc;
     320}
  • trunk/MagicSoft/Mars/msimcamera/MSimTrigger.h

    r9256 r9261  
    4040    Int_t Process();
    4141
     42    // MParContainer
     43    Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
     44
    4245public:
    4346    MSimTrigger(const char *name=NULL, const char *title=NULL);
Note: See TracChangeset for help on using the changeset viewer.