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
StJetMaker
tree
StjSpinWriter.h
1
// -*- mode: c++;-*-
2
// $Id: StjSpinWriter.h,v 1.1 2008/11/05 05:48:30 tai Exp $
3
// Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4
#ifndef STJSPINWRITER_H
5
#define STJSPINWRITER_H
6
7
#include <TObject.h>
8
9
#include <Rtypes.h>
10
11
#include <string>
12
13
class
TDirectory;
14
class
TTree;
15
16
class
StjSpin
;
17
18
class
StjSpinWriter
:
public
TObject {
19
20
public
:
21
StjSpinWriter
(
const
char
*treeName,
const
char
* treeTitle,
22
TDirectory* file,
StjSpin
*
spin
)
23
: _treeName(treeName), _treeTitle(treeName)
24
, _file(file), _spin(spin)
25
{ }
26
virtual
~
StjSpinWriter
() { }
27
28
void
Init();
29
void
Make();
30
void
Finish();
31
32
private
:
33
34
std::string _treeName;
35
std::string _treeTitle;
36
37
TDirectory* _file;
38
TTree* _tree;
39
40
StjSpin
* _spin;
41
42
Int_t _runNumber;
43
Int_t _eventId;
44
Int_t _bx7;
45
Int_t _bx48;
46
Int_t _spin4;
47
Int_t _bbcTimebin;
48
Double_t _vertexZ;
49
50
ClassDef(
StjSpinWriter
, 1)
51
52
};
53
54
#endif // STJSPINWRITER_H
StjSpinWriter
Definition:
StjSpinWriter.h:18
StjSpin
Definition:
StjSpin.h:9
spin
Definition:
StEnumerations.h:456
Generated by
1.8.5