StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StEEmcPool
muEztPanitkin
SpyJPped.cxx
1
#include<stdio.h>
2
3
#include <TH1.h>
4
5
#include "SpyJPped.h"
6
#include "TMath.h"
7
//------------------------------
8
//------------------------------
9
SpyJPped:: SpyJPped(){
//none
10
11
};
12
13
//------------------------------
14
//------------------------------
15
bool
16
SpyJPped::sense(FILE *fd) {
17
18
const
float
maxDiff=2.5;
// in channals between taget position
19
int
mxB=h->GetMaximumBin();
20
float
xMax=h->GetBinCenter(mxB);
21
bool
isBad=TMath::Abs(xMax-45)>maxDiff;
22
// fprintf(fd,"\n SpyJPped: %s scanned =%s= xMax=%f isBad=%d\n",text.Data(),h->GetTitle(),xMax,isBad);
23
24
if
(isBad) {
25
fprintf(fd,
"\nSpyJPpedestal: %s xMax=%.0f not at 45 \n"
,h->GetName(),xMax);
26
}
27
return
isBad;
28
29
}
30
Generated by
1.8.5