Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
OnCal.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file OnCal.cc
1
#include "
OnCal.h
"
2
3
#include <Event/Event.h>
4
#include <
phool/PHCompositeNode.h
>
5
#include <
phool/getClass.h
>
6
7
#include <iostream>
8
9
using namespace
std;
10
11
OnCal::OnCal
(
const
string
&Name)
12
:
SubsysReco
(Name)
13
, alldone(0)
14
{
15
}
16
17
int
OnCal::process_event
(
PHCompositeNode
*
/*topNode*/
)
18
{
19
cout <<
"process_event(PHCompositeNode *topNode) not implemented by daughter class: "
<<
Name
() << endl;
20
return
-1;
21
}
22
23
int
OnCal::End
(
PHCompositeNode
*
/*topNode*/
)
24
{
25
cout <<
"EndOfAnalysis not implemented by subsystem!"
<< endl;
26
cout <<
"Use this signal for computing your calibrations and commit."
<< endl;
27
cout <<
"Dont do these operations at EndOfRun since subsystems may be feeded events from different runs."
<< endl;
28
cout <<
"The number of events is the real parameter here, not the runnumber."
<< endl;
29
return
0;
30
}
31
32
void
OnCal::AddComment
(
const
string
&adcom)
33
{
34
if
(
m_Comment
.size() == 0)
35
{
36
m_Comment
= adcom;
37
}
38
else
39
{
40
m_Comment
+=
":"
;
41
m_Comment
+= adcom;
42
}
43
return
;
44
}
45
46
int
OnCal::CopyTables
(
const
int
/*FromRun*/
,
const
int
/*ToRun*/
,
const
int
/*commit*/
)
const
47
{
48
cout <<
PHWHERE
<<
" CopyTables not implemented"
<< endl
49
<<
"this calibrator cannot copy its own tables"
<< endl;
50
return
-1;
51
}
coresoftware
blob
master
calibrations
framework
oncal
OnCal.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:58
using
1.8.2 with
sPHENIX GitHub integration