32 Double_t mean = 1500.0;
33 Double_t sigma = 300.0;
34 UInt_t fV775Dataword = abs( (Int_t)gRandom->Gaus(mean,sigma) );
36 UInt_t fV775SlotNumber = SlotNum;
37 UInt_t fV775ChannelNumber = ChanNum;
38 const UInt_t fV775DataValidBit = 0x00004000;
40 UInt_t word = fV775Dataword | (fV775SlotNumber<<27);
41 word = word | (fV775ChannelNumber<<16) | fV775DataValidBit;
55 localbuf = (Long_t) (this->
fValue);
56 TrigBuffer.push_back(localbuf);
70 if (folder != NULL) folder->cd();
76 TString basename, fullname;
106 values.push_back(0.0);
107 TString list = basename +
"/D";
119 std::cerr <<
"QwPMT_Channel::FillTreeVector: fTreeArrayNumEntries=="
122 std::cerr <<
"QwPMT_Channel::FillTreeVector: values.size()=="
124 <<
"; fTreeArrayIndex+fTreeArrayNumEntries=="
129 values[index++] = this->
fValue;
146 << std::setw(15) << std::left <<
GetValue()
152 std::cout <<
"QwPMT_Channel::Print() not implemented yet." << std::endl;
void PrintInfo() const
Print multiple lines of information about this data element.
#define QwMessage
Predefined log drain for regular messages.
void FillTreeVector(std::vector< Double_t > &values) const
Bool_t IsNameEmpty() const
Is the name of this element empty?
void RandomizeEventData(int helicity, int SlotNum, int ChanNum)
std::vector< TH1_ptr > fHistograms
Histograms associated with this data element.
void PrintValue() const
Print single line of value and error of this data element.
void EncodeEventData(std::vector< UInt_t > &TrigBuffer)
A logfile class, based on an identical class in the Hermes analyzer.
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this data element.
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
void ClearEventData()
Clear the event data in this element.
static const Double_t kPMT_VoltsPerBit
QwHistogramHelper gQwHists
Globally defined instance of the QwHistogramHelper class.
void FillHistograms()
Fill the histograms for this data element.
QwPMT_Channel & operator=(const QwPMT_Channel &value)
static std::ostream & endl(std::ostream &)
End of the line.
virtual const TString & GetElementName() const
Get the name of this element.
size_t fTreeArrayNumEntries
Double_t GetValue() const
static const Bool_t kDEBUG
TH1F * Construct1DHist(const TString &inputfile, const TString &name_title)