#include <FarReadout.h>
Inheritance diagram for rsim::FarReadout:

Public Member Functions | |
| FarReadout () | |
| std::vector< rawdata::RawDigit > | Simulate (std::vector< const photrans::PhotonSignal * > &hitlist, std::vector< sim::MCDigitInfo > &mcdigitout) |
| void | Configure (vector< std::string > conf) |
| void | FarReadout::Configure (const cfg::Config &c) |
| void | FarReadout::ProcessChannel (rawdata::RawDigit &digit, sim::MCDigitInfo &mcdigit) |
Private Attributes | |
| double | pSinglePulseTRes |
| double | pDoublePulseTSep |
| double | pClockTick |
| float | pQuantumEff |
| TRandom * | pRandom |
| int | msglevel |
| FarProcessor | f |
|
|
Definition at line 9 of file FarReadout.cxx. References msglevel, pClockTick, pDoublePulseTSep, pQuantumEff, pRandom, and pSinglePulseTRes. 00010 {
00011 //std::cout <<"FarReadout() called\n";
00012 myName="FarReadout";
00013
00014 fGeo=0;
00015
00016 msglevel=0;
00017
00018 float munits_ns=1;
00019
00020 threshold = 12.;
00021 pSinglePulseTRes = 25*munits_ns;
00022 pDoublePulseTSep = 1500*munits_ns;
00023 pClockTick = 62.5*munits_ns;
00024 pQuantumEff = 0.8;
00025 pRandom = new TRandom3(100);
00026
00027 choptime = 10; //dont chop for this algorithm (the algorithm does it for us....) so gap size is 10 seconds!
00028 }
|
|
|
Reimplemented from rsim::Simulator. Definition at line 58 of file FarReadout.cxx. References msglevel. 00059 {
00060 if(msglevel>=INFO)std::cout << " FarReadout::Configure called with config string " <<conf.size() <<"\n";
00061
00062 for(unsigned int i=0;i<conf.size();i+=2)
00063 if(msglevel>=INFO)std::cout << " par: " << conf[i] << " val: " << conf[i+1]<<"\n";
00064 }
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
Reimplemented from rsim::Simulator. Definition at line 31 of file FarReadout.cxx. References assert_jobc, rsim::Simulator::CombineChannels(), and msglevel. 00033 {
00034 if(msglevel>=INFO)std::cout <<"FarReadout::Simulate(hitlist) called\n";
00035
00036 std::vector<rawdata::RawDigit> rawdigitout(0);
00037
00038 if(hitlist.size()<1)return rawdigitout;
00039
00040 //we want all of the hits in the same channel in one rawdigit object
00041 rawdigitout=CombineChannels(hitlist, mcdigitout);
00042
00043 char msg[256];
00044 sprintf(msg,"FarReadout::Simulate inconsistent size!");
00045 assert_jobc(rawdigitout.size() == mcdigitout.size(),msg);
00046
00047 for(unsigned int i=0;i<rawdigitout.size();i++)
00048 ProcessChannel(rawdigitout[i], mcdigitout[i]);
00049
00050 return rawdigitout;
00051 }
|
|
|
Definition at line 43 of file FarReadout.h. |
|
|
Reimplemented from rsim::Simulator. Definition at line 41 of file FarReadout.h. Referenced by Configure(), FarReadout(), and Simulate(). |
|
|
Definition at line 37 of file FarReadout.h. Referenced by FarReadout(). |
|
|
Definition at line 36 of file FarReadout.h. Referenced by FarReadout(). |
|
|
Reimplemented from rsim::Simulator. Definition at line 38 of file FarReadout.h. Referenced by FarReadout(). |
|
|
Definition at line 39 of file FarReadout.h. Referenced by FarReadout(). |
|
|
Definition at line 35 of file FarReadout.h. Referenced by FarReadout(). |
1.3.9.1