DigiSignal.h File Reference

#include <TObject.h>
#include <TRef.h>
#include <map>
#include <vector>
#include <iostream>
#include "DigiScintHit.h"

Go to the source code of this file.

Classes

class  DigiSignal

Functions

const char * AsString (DigiSignal::DigiPmtTruth_t truth)

Function Documentation

const char* AsString ( DigiSignal::DigiPmtTruth_t  truth  ) 

Definition at line 101 of file DigiSignal.cxx.

References Form(), DigiSignal::kCrosstalk, DigiSignal::kCrosstalkOptical, DigiSignal::kDarkNoise, DigiSignal::kFibreLight, DigiSignal::kGenuine, DigiSignal::kLeakFromNextBucket, DigiSignal::kLeakFromPrevBucket, and DigiSignal::kUnknown.

00102 {
00103   // Global function to get a string.
00104 
00105   if(truth == DigiSignal::kUnknown) return "|Unknown|";
00106    
00107    std::string result("|");
00108    if(truth & DigiSignal::kGenuine)            result = result + "Genuine|";
00109    if(truth & DigiSignal::kDarkNoise)          result = result + "DarkNoise|";
00110    if(truth & DigiSignal::kFibreLight)         result = result + "FibreLight|";
00111    if(truth & DigiSignal::kCrosstalk)          result = result + "CrossTalk|";
00112    if(truth & DigiSignal::kCrosstalkOptical)   result = result + "CrossTalkOptical|";
00113    if(truth & DigiSignal::kLeakFromNextBucket) result = result + "LeakFromNextBucket|";
00114    if(truth & DigiSignal::kLeakFromPrevBucket) result = result + "LeakFromPrevBucket|";
00115    // Hack: use ROOT's circular buffer of strings. neat,huh?
00116    return Form("%s",result.c_str()); 
00117 }


Generated on 18 Oct 2018 for loon by  doxygen 1.6.1