QwAnalysis
|
Class for the analysis of Compton photon detector data. More...
#include <QwComptonPhotonDetector.h>
Public Member Functions | |
QwComptonPhotonDetector (TString name) | |
Constructor with name. More... | |
QwComptonPhotonDetector (const QwComptonPhotonDetector &source) | |
Copy constructor. More... | |
virtual | ~QwComptonPhotonDetector () |
Virtual destructor. More... | |
void | ProcessOptions (QwOptions &options) |
Process the command line options. More... | |
Int_t | LoadChannelMap (TString mapfile) |
Int_t | LoadInputParameters (TString pedestalfile) |
Int_t | LoadEventCuts (TString &filename) |
Bool_t | SingleEventCuts () |
Int_t | ProcessConfigurationBuffer (const UInt_t roc_id, const UInt_t bank_id, UInt_t *buffer, UInt_t num_words) |
Int_t | ProcessEvBuffer (const UInt_t roc_id, const UInt_t bank_id, UInt_t *buffer, UInt_t num_words) |
void | ClearEventData () |
void | ProcessEvent () |
Bool_t | IsGoodEvent () |
void | RandomizeEventData (int helicity=0) |
void | EncodeEventData (std::vector< UInt_t > &buffer) |
VQwSubsystem & | operator= (VQwSubsystem *value) |
VQwSubsystem & | operator+= (VQwSubsystem *value) |
VQwSubsystem & | operator-= (VQwSubsystem *value) |
void | Sum (VQwSubsystem *value1, VQwSubsystem *value2) |
void | Difference (VQwSubsystem *value1, VQwSubsystem *value2) |
void | Ratio (VQwSubsystem *numer, VQwSubsystem *denom) |
void | Scale (Double_t factor) |
Int_t | LoadEventCuts (TString filename) |
Load the event cuts file. More... | |
Bool_t | ApplySingleEventCuts () |
Apply the single event cuts. More... | |
void | IncrementErrorCounters () |
Increment the error counters. More... | |
void | PrintErrorCounters () const |
Report the number of events failed due to HW and event cut failures. More... | |
UInt_t | GetEventcutErrorFlag () |
Return the error flag to the top level routines related to stability checks and ErrorFlag updates. More... | |
void | UpdateErrorFlag (const VQwSubsystem *ev_error) |
update the error flag in the subsystem level from the top level routines related to stability checks. This will uniquely update the errorflag at each channel based on the error flag in the corresponding channel in the ev_error subsystem More... | |
Bool_t | CheckRunningAverages (Bool_t) |
void | AccumulateRunningSum (VQwSubsystem *value) |
void | DeaccumulateRunningSum (VQwSubsystem *value) |
remove one entry from the running sums for devices More... | |
void | CalculateRunningAverage () |
void | ConstructHistograms (TDirectory *folder, TString &prefix) |
void | FillHistograms () |
void | ConstructTree (TDirectory *folder, TString &prefix) |
void | FillTree () |
void | DeleteTree () |
void | ConstructBranchAndVector (TTree *tree, TString &prefix, std::vector< Double_t > &values) |
void | ConstructBranch (TTree *tree, TString &prefix) |
Construct the branch and tree vector. More... | |
void | ConstructBranch (TTree *tree, TString &prefix, QwParameterFile &trim_file) |
Construct the branch and tree vector based on the trim file. More... | |
void | FillTreeVector (std::vector< Double_t > &values) const |
Bool_t | Compare (VQwSubsystem *source) |
Bool_t | CompareADC (VQwSubsystem *source) |
Bool_t | CompareTDC (VQwSubsystem *source) |
Bool_t | CompareQDC (VQwSubsystem *source) |
void | PrintValue () const |
void | PrintInfo () const |
QwSIS3320_Channel * | GetSIS3320Channel (const TString name) |
Public Member Functions inherited from VQwSubsystemParity | |
VQwSubsystemParity (const TString &name) | |
Constructor with name. More... | |
VQwSubsystemParity (const VQwSubsystemParity &source) | |
Copy constructor. More... | |
virtual | ~VQwSubsystemParity () |
Default destructor. More... | |
virtual void | FillDB_MPS (QwParityDB *db, TString type) |
Fill the database with MPS-based variables Note that most subsystems don't need to do this. More... | |
virtual void | FillDB (QwParityDB *db, TString type) |
Fill the database. More... | |
virtual void | FillErrDB (QwParityDB *db, TString type) |
virtual UInt_t | UpdateErrorFlag () |
Uses the error flags of contained data elements to update Returns the error flag to the top level routines related to stability checks and ErrorFlag updates. More... | |
virtual void | Blind (const QwBlinder *blinder) |
Blind the asymmetry of this subsystem. More... | |
virtual void | Blind (const QwBlinder *blinder, const VQwSubsystemParity *subsys) |
Blind the difference of this subsystem. More... | |
virtual void | WritePromptSummary (QwPromptSummary *ps, TString type) |
virtual Bool_t | CheckForEndOfBurst () const |
Public Member Functions inherited from VQwSubsystem | |
VQwSubsystem (const TString &name) | |
Constructor with name. More... | |
VQwSubsystem (const VQwSubsystem &orig) | |
Copy constructor by object. More... | |
virtual | ~VQwSubsystem () |
Default destructor. More... | |
TString | GetSubsystemName () const |
Bool_t | HasDataLoaded () const |
void | SetParent (QwSubsystemArray *parent) |
Set the parent of this subsystem to the specified array. More... | |
QwSubsystemArray * | GetParent (const unsigned int parent=0) const |
Get the parent of this subsystem. More... | |
VQwSubsystem * | GetSibling (const std::string &name) const |
Get the sibling with specified name. More... | |
Bool_t | PublishInternalValue (const TString &name, const TString &desc, const VQwHardwareChannel *value) const |
Publish a variable name to the parent subsystem array. More... | |
virtual Bool_t | PublishInternalValues () const |
Publish all variables of the subsystem. More... | |
virtual Bool_t | PublishByRequest (TString device_name) |
Try to publish an internal variable matching the submitted name. More... | |
Bool_t | RequestExternalValue (const TString &name, VQwHardwareChannel *value) const |
Request a named value which is owned by an external subsystem; the request will be handled by the parent subsystem array. More... | |
virtual const VQwHardwareChannel * | ReturnInternalValue (const TString &name) const |
Return a pointer to a varialbe to the parent subsystem array to be delivered to a different subsystem. More... | |
virtual Bool_t | ReturnInternalValue (const TString &name, VQwHardwareChannel *value) const |
Return a named value to the parent subsystem array to be delivered to a different subsystem. More... | |
virtual std::vector< TString > | GetParamFileNameList () |
virtual std::map< TString, TString > | GetDetectorMaps () |
virtual Int_t | LoadDetectorMaps (QwParameterFile &file) |
Parse parameter file to find the map files. More... | |
virtual Int_t | LoadGeometryDefinition (TString mapfile) |
Optional geometry definition. More... | |
virtual Int_t | LoadCrosstalkDefinition (TString mapfile) |
Optional crosstalk definition. More... | |
void | SetEventTypeMask (const UInt_t mask) |
Set event type mask. More... | |
UInt_t | GetEventTypeMask () const |
Get event type mask. More... | |
virtual Int_t | ProcessEvBuffer (const UInt_t event_type, const UInt_t roc_id, const UInt_t bank_id, UInt_t *buffer, UInt_t num_words) |
virtual void | ExchangeProcessedData () |
Request processed data from other subsystems for internal use in the second event processing stage. Not all derived classes will require data from other subsystems. More... | |
virtual void | ProcessEvent_2 () |
Process the event data again, including data from other subsystems. Not all derived classes will require a second stage of event data processing. More... | |
virtual void | AtEndOfEventLoop () |
Perform actions at the end of the event loop. More... | |
virtual void | RandomizeEventData (int helicity=0, double time=0.0) |
virtual void | PrintDetectorMaps (Bool_t status) const |
virtual void | ConstructHistograms () |
Construct the histograms for this subsystem. More... | |
virtual void | ConstructHistograms (TDirectory *folder) |
Construct the histograms for this subsystem in a folder. More... | |
virtual void | ConstructHistograms (TString &prefix) |
Construct the histograms for this subsystem with a prefix. More... | |
virtual void | ConstructBranchAndVector (TTree *tree, std::vector< Double_t > &values) |
Construct the branch and tree vector. More... | |
virtual void | ConstructTree () |
Construct the tree for this subsystem. More... | |
virtual void | ConstructTree (TDirectory *folder) |
Construct the tree for this subsystem in a folder. More... | |
virtual void | ConstructTree (TString &prefix) |
Construct the tree for this subsystem with a prefix. More... | |
Public Member Functions inherited from MQwHistograms | |
void | ShareHistograms (const MQwHistograms *source) |
Share histogram pointers between objects. More... | |
Public Member Functions inherited from MQwV775TDC | |
MQwV775TDC () | |
~MQwV775TDC () | |
void | DecodeTDCWord (UInt_t &word, const UInt_t roc_id=0) |
Bool_t | IsValidDataword () |
Bool_t | IsHeaderword () |
UInt_t | GetTDCSlotNumber () |
UInt_t | GetTDCChannelNumber () |
UInt_t | GetTDCData () |
UInt_t | GetTDCMaxChannels () |
UInt_t | GetTDCEventNumber () |
UInt_t | GetTDCTriggerTime () |
void | SetReferenceParameters (Double_t mindiff, Double_t maxdiff, Double_t offset, Double_t shift) |
Double_t | SubtractReference (Double_t rawtime, Double_t reftime) |
Bool_t | CheckDataIntegrity (const UInt_t roc_id, UInt_t *buffer, UInt_t num_words) |
void | PrintTDCHeader (Bool_t flag) |
void | PrintTDCData (Bool_t flag) |
Public Member Functions inherited from MQwCloneable< VQwSubsystem, QwComptonPhotonDetector > | |
virtual | ~MQwCloneable () |
Virtual destructor. More... | |
virtual VQwSubsystem * | Clone () const |
Concrete clone method. More... | |
const VQwFactory< VQwSubsystem > * | Factory () const |
Factory getter. More... | |
Public Member Functions inherited from VQwCloneable< VQwSubsystem > | |
virtual | ~VQwCloneable () |
Virtual destructor. More... | |
std::string | GetClassName () const |
Get demangled name of this class. More... | |
Static Public Member Functions | |
static void | DefineOptions (QwOptions &options) |
Static Public Member Functions inherited from VQwSubsystem | |
static void | DefineOptions () |
Define options function (note: no virtual static functions in C++) More... | |
Static Public Member Functions inherited from MQwCloneable< VQwSubsystem, QwComptonPhotonDetector > | |
static VQwSubsystem * | Create (const std::string &name) |
Object creation. More... | |
static QwComptonPhotonDetector * | Cast (QwComptonPhotonDetector *type) |
Object dynamic cast. More... | |
Protected Types | |
enum | ChannelType_t { kUnknown, kSamplingADC, kIntegratingADC, kIntegratingTDC } |
Mapping from ROC/subbank to channel type. More... | |
typedef std::map< Int_t, std::vector< std::vector < Int_t > > > | SamplingADC_Mapping_t |
List of sampling ADC channels. More... | |
typedef std::map< Int_t, std::vector< std::vector < Int_t > > > | IntegratingADC_Mapping_t |
List of integrating QDC channels. More... | |
typedef std::map< Int_t, std::vector< std::vector < Int_t > > > | IntegratingTDC_Mapping_t |
List of integrating TDC channels. More... | |
Protected Attributes | |
TTree * | fTree |
Expert tree. More... | |
Int_t | fTree_fNEvents |
Expert tree fields. More... | |
std::map< Int_t, ChannelType_t > | fMapping |
SamplingADC_Mapping_t | fSamplingADC_Mapping |
std::vector< QwSIS3320_Channel > | fSamplingADC |
IntegratingADC_Mapping_t | fMultiQDC_Mapping |
std::vector< QwPMT_Channel > | fMultiQDC_Channel |
std::vector< std::vector < QwPMT_Channel > > | fMultiQDC_Events |
IntegratingTDC_Mapping_t | fMultiTDC_Mapping |
std::vector< QwPMT_Channel > | fMultiTDC_Channel |
std::vector< std::vector < QwPMT_Channel > > | fMultiTDC_Events |
Protected Attributes inherited from VQwSubsystem | |
std::map< TString, VQwHardwareChannel * > | fPublishedInternalValues |
Map of published internal values. More... | |
std::vector< std::vector < TString > > | fPublishList |
List of parameters to be published (loaded at the channel map) More... | |
TString | fSystemName |
Name of this subsystem. More... | |
UInt_t | fEventTypeMask |
Mask of event types. More... | |
Bool_t | fIsDataLoaded |
Has this subsystem gotten data to be processed? More... | |
std::vector< TString > | fDetectorMapsNames |
std::map< TString, TString > | fDetectorMaps |
Int_t | fCurrentROC_ID |
ROC ID that is currently being processed. More... | |
Int_t | fCurrentBank_ID |
Bank ID that is currently being processed. More... | |
std::vector< UInt_t > | fROC_IDs |
Vector of ROC IDs associated with this subsystem. More... | |
std::vector< std::vector < UInt_t > > | fBank_IDs |
Vector of Bank IDs per ROC ID associated with this subsystem. More... | |
std::vector< QwSubsystemArray * > | fArrays |
Vector of pointers to subsystem arrays that contain this subsystem. More... | |
Protected Attributes inherited from MQwHistograms | |
std::vector< TH1_ptr > | fHistograms |
Histograms associated with this data element. More... | |
Private Member Functions | |
QwComptonPhotonDetector () | |
Private default constructor (not implemented, will throw linker error on use) More... | |
Private Attributes | |
Int_t | fGoodEventCount |
Static Private Attributes | |
static const Bool_t | kDebug = kTRUE |
Additional Inherited Members | |
Protected Member Functions inherited from VQwSubsystem | |
void | UpdatePublishedValue (const TString &name, VQwHardwareChannel *data_channel) |
void | ClearAllBankRegistrations () |
Clear all registration of ROC and Bank IDs for this subsystem. More... | |
virtual Int_t | RegisterROCNumber (const UInt_t roc_id, const UInt_t bank_id=0) |
Tell the object that it will decode data from this ROC and sub-bank. More... | |
Int_t | RegisterSubbank (const UInt_t bank_id) |
Tell the object that it will decode data from this sub-bank in the ROC currently open for registration. More... | |
Int_t | GetSubbankIndex () const |
Int_t | GetSubbankIndex (const UInt_t roc_id, const UInt_t bank_id) const |
void | SetDataLoaded (Bool_t flag) |
Int_t | FindIndex (const std::vector< UInt_t > &myvec, const UInt_t value) const |
Bool_t | Compare (VQwSubsystem *source) |
Protected Member Functions inherited from MQwHistograms | |
MQwHistograms () | |
Default constructor. More... | |
MQwHistograms (const MQwHistograms &source) | |
Copy constructor. More... | |
virtual | ~MQwHistograms () |
Virtual destructor. More... | |
virtual MQwHistograms & | operator= (const MQwHistograms &value) |
void | Fill_Pointer (TH1_ptr hist_ptr, Double_t value) |
void | AddHistogram (TH1 *h) |
Register a histogram. More... | |
Class for the analysis of Compton photon detector data.
The QwComptonPhotonDetector class is defined as a parity subsystem that contains all data modules of the photon detector (SIS3320, V775, V792). It reads in a channel map and pedestal file, and defines the histograms and output trees.
Definition at line 32 of file QwComptonPhotonDetector.h.
|
protected |
List of integrating QDC channels.
Definition at line 142 of file QwComptonPhotonDetector.h.
|
protected |
List of integrating TDC channels.
Definition at line 148 of file QwComptonPhotonDetector.h.
|
protected |
List of sampling ADC channels.
Definition at line 137 of file QwComptonPhotonDetector.h.
|
protected |
Mapping from ROC/subbank to channel type.
Enumerator | |
---|---|
kUnknown | |
kSamplingADC | |
kIntegratingADC | |
kIntegratingTDC |
Definition at line 133 of file QwComptonPhotonDetector.h.
|
private |
Private default constructor (not implemented, will throw linker error on use)
|
inline |
Constructor with name.
Definition at line 44 of file QwComptonPhotonDetector.h.
|
inline |
Copy constructor.
Definition at line 46 of file QwComptonPhotonDetector.h.
|
inlinevirtual |
|
virtual |
Accumulate the running sum
Implements VQwSubsystemParity.
Definition at line 641 of file QwComptonPhotonDetector.cc.
References Compare(), and fGoodEventCount.
|
inlinevirtual |
Apply the single event cuts.
Implements VQwSubsystemParity.
Definition at line 84 of file QwComptonPhotonDetector.h.
|
virtual |
Normalize the running sum
Implements VQwSubsystemParity.
Definition at line 652 of file QwComptonPhotonDetector.cc.
References fGoodEventCount, and Scale().
|
inline |
Definition at line 92 of file QwComptonPhotonDetector.h.
|
virtual |
Clear the event data in this subsystem
Implements VQwSubsystem.
Definition at line 514 of file QwComptonPhotonDetector.cc.
References fGoodEventCount, fMultiQDC_Channel, fMultiTDC_Channel, and fSamplingADC.
Bool_t QwComptonPhotonDetector::Compare | ( | VQwSubsystem * | value | ) |
Compare two QwComptonPhotonDetector objects
value | Object to compare with |
Definition at line 666 of file QwComptonPhotonDetector.cc.
References fMultiQDC_Channel, fMultiTDC_Channel, and fSamplingADC.
Referenced by AccumulateRunningSum(), Difference(), operator+=(), operator-=(), Ratio(), and Sum().
Bool_t QwComptonPhotonDetector::CompareADC | ( | VQwSubsystem * | value | ) |
Compare two QwComptonPhotonDetector ADC objects
value | Object to compare with |
Definition at line 698 of file QwComptonPhotonDetector.cc.
References fSamplingADC.
Referenced by operator=().
Bool_t QwComptonPhotonDetector::CompareQDC | ( | VQwSubsystem * | value | ) |
Compare two QwComptonPhotonDetector QDC objects
value | Object to compare with |
Definition at line 746 of file QwComptonPhotonDetector.cc.
References fMultiQDC_Channel.
Referenced by operator=().
Bool_t QwComptonPhotonDetector::CompareTDC | ( | VQwSubsystem * | value | ) |
Compare two QwComptonPhotonDetector TDC objects
value | Object to compare with |
Definition at line 722 of file QwComptonPhotonDetector.cc.
References fMultiTDC_Channel.
Referenced by operator=().
|
inlinevirtual |
Construct the branch and tree vector.
Implements VQwSubsystem.
Definition at line 111 of file QwComptonPhotonDetector.h.
|
inlinevirtual |
Construct the branch and tree vector based on the trim file.
Implements VQwSubsystem.
Definition at line 112 of file QwComptonPhotonDetector.h.
|
virtual |
Construct the tree
tree | Pointer to the tree in which the branches will be created |
prefix | Prefix with information about the type of histogram |
values |
Implements VQwSubsystem.
Definition at line 830 of file QwComptonPhotonDetector.cc.
References fMultiQDC_Channel, fMultiTDC_Channel, and fSamplingADC.
|
virtual |
Construct the histograms
folder | Folder in which the histograms will be created |
prefix | Prefix with information about the type of histogram |
Implements VQwSubsystem.
Definition at line 770 of file QwComptonPhotonDetector.cc.
References VQwSubsystem::ConstructHistograms(), fMultiQDC_Channel, fMultiTDC_Channel, and fSamplingADC.
|
virtual |
Construct the tree
folder | Folder in which the tree will be created |
prefix | Prefix with information about the type of histogram |
Reimplemented from VQwSubsystem.
Definition at line 798 of file QwComptonPhotonDetector.cc.
References fTree, and fTree_fNEvents.
|
inlinevirtual |
remove one entry from the running sums for devices
Implements VQwSubsystemParity.
Definition at line 96 of file QwComptonPhotonDetector.h.
|
static |
Definition at line 31 of file QwComptonPhotonDetector.cc.
|
virtual |
Delete the tree
Reimplemented from VQwSubsystem.
Definition at line 808 of file QwComptonPhotonDetector.cc.
References fTree.
|
virtual |
Difference
value1 | First value |
value2 | Second value |
Implements VQwSubsystemParity.
Definition at line 605 of file QwComptonPhotonDetector.cc.
References Compare().
|
virtual |
Encode this event into a CODA buffer
buffer | Buffer to append data to |
Reimplemented from VQwSubsystem.
Definition at line 300 of file QwComptonPhotonDetector.cc.
References VQwSubsystem::fCurrentBank_ID, VQwSubsystem::fCurrentROC_ID, and fSamplingADC.
|
virtual |
Fill the histograms with data
Implements VQwSubsystem.
Definition at line 783 of file QwComptonPhotonDetector.cc.
References fMultiQDC_Channel, fMultiTDC_Channel, and fSamplingADC.
|
virtual |
Fill the tree with data
Reimplemented from VQwSubsystem.
Definition at line 816 of file QwComptonPhotonDetector.cc.
References fSamplingADC, fTree, and fTree_fNEvents.
|
virtual |
Fill the tree with data
values |
Implements VQwSubsystem.
Definition at line 844 of file QwComptonPhotonDetector.cc.
References fMultiQDC_Channel, fMultiTDC_Channel, and fSamplingADC.
|
inlinevirtual |
Return the error flag to the top level routines related to stability checks and ErrorFlag updates.
Implements VQwSubsystemParity.
Definition at line 87 of file QwComptonPhotonDetector.h.
QwSIS3320_Channel * QwComptonPhotonDetector::GetSIS3320Channel | ( | const TString | name | ) |
Get the SIS3320 channel for this photon detector
name | Name of the SIS3320 channel |
Definition at line 897 of file QwComptonPhotonDetector.cc.
References fSamplingADC.
|
inlinevirtual |
Increment the error counters.
Implements VQwSubsystemParity.
Definition at line 85 of file QwComptonPhotonDetector.h.
Bool_t QwComptonPhotonDetector::IsGoodEvent | ( | ) |
Check whether this is a good event
Definition at line 495 of file QwComptonPhotonDetector.cc.
References fSamplingADC.
Referenced by SingleEventCuts().
|
virtual |
Load the channel map
mapfile | Map file |
Implements VQwSubsystem.
Definition at line 46 of file QwComptonPhotonDetector.cc.
References QwLog::endl(), VQwSubsystem::fDetectorMaps, fMapping, fMultiQDC_Channel, fMultiQDC_Mapping, fMultiTDC_Channel, fMultiTDC_Mapping, fSamplingADC, fSamplingADC_Mapping, VQwSubsystem::GetSubbankIndex(), QwParameterFile::GetUInt(), kIntegratingADC, kIntegratingTDC, kSamplingADC, QwMessage, VQwSubsystem::RegisterROCNumber(), and VQwSubsystem::RegisterSubbank().
Int_t QwComptonPhotonDetector::LoadEventCuts | ( | TString & | filename | ) |
Load the event cuts
filename | Event cuts file |
Definition at line 224 of file QwComptonPhotonDetector.cc.
|
inlinevirtual |
Load the event cuts file.
Implements VQwSubsystemParity.
Definition at line 83 of file QwComptonPhotonDetector.h.
|
virtual |
Load the input parameters
pedestalfile | Input parameters file |
Implements VQwSubsystem.
Definition at line 234 of file QwComptonPhotonDetector.cc.
References QwLog::endl(), VQwSubsystem::fDetectorMaps, fSamplingADC, QwMessage, and QwVerbose.
|
virtual |
Addition-assignment operator
value | Right-hand side |
Implements VQwSubsystemParity.
Definition at line 562 of file QwComptonPhotonDetector.cc.
References Compare(), and fSamplingADC.
|
virtual |
Subtraction-assignment operator
value | Right-hand side |
Implements VQwSubsystemParity.
Definition at line 577 of file QwComptonPhotonDetector.cc.
References Compare(), and fSamplingADC.
|
virtual |
Assignment operator
value | Right-hand side |
Implements VQwSubsystemParity.
Definition at line 534 of file QwComptonPhotonDetector.cc.
References CompareADC(), CompareQDC(), CompareTDC(), fMultiQDC_Channel, fMultiTDC_Channel, and fSamplingADC.
|
inlinevirtual |
Report the number of events failed due to HW and event cut failures.
Implements VQwSubsystemParity.
Definition at line 86 of file QwComptonPhotonDetector.h.
|
virtual |
Print some debugging output for the subcomponents
Reimplemented from VQwSubsystem.
Definition at line 870 of file QwComptonPhotonDetector.cc.
References QwLog::endl(), fMultiQDC_Channel, fMultiTDC_Channel, fSamplingADC, VQwSubsystem::PrintInfo(), and QwOut.
|
virtual |
Print the value for the subcomponents
Reimplemented from VQwSubsystemParity.
Definition at line 857 of file QwComptonPhotonDetector.cc.
References fMultiQDC_Channel, fMultiTDC_Channel, and fSamplingADC.
|
virtual |
Process the configuration buffer for this subsystem
roc_id | ROC ID |
bank_id | Subbank ID |
buffer | Buffer to read from |
num_words | Number of words left in buffer |
Implements VQwSubsystem.
Definition at line 485 of file QwComptonPhotonDetector.cc.
|
virtual |
Process the event buffer for this subsystem
roc_id | ROC ID |
bank_id | Subbank ID |
buffer | Buffer to read from |
num_words | Number of words left in buffer |
Implements VQwSubsystem.
Definition at line 342 of file QwComptonPhotonDetector.cc.
References MQwV775TDC::DecodeTDCWord(), QwLog::endl(), fMapping, fMultiQDC_Channel, fMultiQDC_Mapping, fMultiTDC_Channel, fMultiTDC_Mapping, fSamplingADC, fSamplingADC_Mapping, VQwSubsystem::GetSubbankIndex(), MQwV775TDC::GetTDCChannelNumber(), MQwV775TDC::GetTDCData(), MQwV775TDC::IsValidDataword(), kIntegratingADC, kIntegratingTDC, kSamplingADC, kUnknown, QwDebug, and QwError.
|
virtual |
Process this event
Implements VQwSubsystem.
Definition at line 466 of file QwComptonPhotonDetector.cc.
References fMultiQDC_Channel, fMultiTDC_Channel, and fSamplingADC.
|
virtual |
Process the command line options.
Reimplemented from VQwSubsystem.
Definition at line 36 of file QwComptonPhotonDetector.cc.
void QwComptonPhotonDetector::RandomizeEventData | ( | int | helicity = 0 | ) |
Randomize this event with the given helicity
helicity | Helicity of this event (default is zero) |
Definition at line 280 of file QwComptonPhotonDetector.cc.
References fSamplingADC.
|
virtual |
Determine the ratio of two photon detectors
numer | Numerator |
denom | Denominator |
Implements VQwSubsystemParity.
Definition at line 618 of file QwComptonPhotonDetector.cc.
References Compare(), and fSamplingADC.
|
virtual |
Scale the photon detector
factor | Scale factor |
Implements VQwSubsystemParity.
Definition at line 632 of file QwComptonPhotonDetector.cc.
References fSamplingADC.
Referenced by CalculateRunningAverage().
Bool_t QwComptonPhotonDetector::SingleEventCuts | ( | ) |
Process the single event cuts
Definition at line 456 of file QwComptonPhotonDetector.cc.
References QwLog::endl(), IsGoodEvent(), and QwDebug.
|
virtual |
Summation
value1 | First value |
value2 | Second value |
Implements VQwSubsystemParity.
Definition at line 592 of file QwComptonPhotonDetector.cc.
References Compare().
|
inlinevirtual |
update the error flag in the subsystem level from the top level routines related to stability checks. This will uniquely update the errorflag at each channel based on the error flag in the corresponding channel in the ev_error subsystem
Implements VQwSubsystemParity.
Definition at line 90 of file QwComptonPhotonDetector.h.
|
private |
Definition at line 156 of file QwComptonPhotonDetector.h.
Referenced by AccumulateRunningSum(), CalculateRunningAverage(), and ClearEventData().
|
protected |
Definition at line 134 of file QwComptonPhotonDetector.h.
Referenced by LoadChannelMap(), and ProcessEvBuffer().
|
protected |
Definition at line 144 of file QwComptonPhotonDetector.h.
Referenced by ClearEventData(), Compare(), CompareQDC(), ConstructBranchAndVector(), ConstructHistograms(), FillHistograms(), FillTreeVector(), LoadChannelMap(), operator=(), PrintInfo(), PrintValue(), ProcessEvBuffer(), and ProcessEvent().
|
protected |
Definition at line 145 of file QwComptonPhotonDetector.h.
|
protected |
Definition at line 143 of file QwComptonPhotonDetector.h.
Referenced by LoadChannelMap(), and ProcessEvBuffer().
|
protected |
Definition at line 150 of file QwComptonPhotonDetector.h.
Referenced by ClearEventData(), Compare(), CompareTDC(), ConstructBranchAndVector(), ConstructHistograms(), FillHistograms(), FillTreeVector(), LoadChannelMap(), operator=(), PrintInfo(), PrintValue(), ProcessEvBuffer(), and ProcessEvent().
|
protected |
Definition at line 151 of file QwComptonPhotonDetector.h.
|
protected |
Definition at line 149 of file QwComptonPhotonDetector.h.
Referenced by LoadChannelMap(), and ProcessEvBuffer().
|
protected |
Definition at line 139 of file QwComptonPhotonDetector.h.
Referenced by ClearEventData(), Compare(), CompareADC(), ConstructBranchAndVector(), ConstructHistograms(), EncodeEventData(), FillHistograms(), FillTree(), FillTreeVector(), GetSIS3320Channel(), IsGoodEvent(), LoadChannelMap(), LoadInputParameters(), operator+=(), operator-=(), operator=(), PrintInfo(), PrintValue(), ProcessEvBuffer(), ProcessEvent(), RandomizeEventData(), Ratio(), and Scale().
|
protected |
Definition at line 138 of file QwComptonPhotonDetector.h.
Referenced by LoadChannelMap(), and ProcessEvBuffer().
|
protected |
Expert tree.
Definition at line 128 of file QwComptonPhotonDetector.h.
Referenced by ConstructTree(), DeleteTree(), and FillTree().
|
protected |
Expert tree fields.
Definition at line 130 of file QwComptonPhotonDetector.h.
Referenced by ConstructTree(), and FillTree().
|
staticprivate |
Definition at line 158 of file QwComptonPhotonDetector.h.