28 int main(
int argc,
char **argv)
54 catch(
const exception &error) {
55 FATAL(error.what() << endl);
58 using namespace KM3NETDAQ;
70 FATAL(
"Empty detector." << endl);
76 const int ny = number_of_strings * number_of_floors;
79 TFile*
in = TFile::Open(inputFile.c_str(),
"read");
82 FATAL(
"No data in inputfile " << inputFile << endl);
89 const string key = i->first;
94 100, range.first, range.second);
103 for (
size_t dom = 0; dom !=
detector.size(); ++dom) {
117 const double value = p1->GetBinContent(
pmt+1);
121 h2.SetBinContent(
pmt+1, iy, value);
127 h1.GetXaxis()->SetTitle(key.c_str());
128 h1.GetYaxis()->SetTitle(
"PMTs");
130 h2.GetXaxis()->SetTitle(
"PMT DAQ index");
132 for (
size_t dom = 0; dom !=
detector.size(); ++dom) {
137 << setw(3) << setfill(
'0') << module.
getString() <<
' '
138 << setw(2) << setfill(
'0') << module.
getFloor()));
141 h2.GetZaxis()->SetTitle(key.c_str());
Utility class to parse command line options.
int getFloor() const
Get floor number.
Data structure for a composite optical module.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
#define MAKE_CSTRING(A)
Make C-string.
then for HISTOGRAM in h0 h1
Data structure for detector geometry and calibration.
esac $JPP_DIR examples JDetector JTransitTime o $OUTPUT_FILE n N $NPE T $TTS_NS d $DEBUG for HISTOGRAM in tts tt2 pmt
I/O formatting auxiliaries.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int getID() const
Get identifier.
int getNumberOfFloors(const JDetector &detector)
Get number of floors.
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
General purpose messaging.
static const JStringCounter getNumberOfStrings
Function object to count unique strings.
JRange< Double_t > JRange_t
int getString() const
Get string number.
Auxiliary class to define a range between two values.
Utility class to parse command line options.
KM3NeT DAQ constants, bit handling, etc.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
int main(int argc, char *argv[])