Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F10664269
HepMCInput.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
HepMCInput.hh
View Options
// Copyright (c) 2010-11, Pierre-Antoine Delsart, Kurtis Geerlings, Joey Huston,
// Brian Martin, and Christopher Vermilion
//
//----------------------------------------------------------------------
// This file is part of SpartyJet.
//
// SpartyJet is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// SpartyJet is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with SpartyJet; if not, write to the Free Software
// Foundation, Inc.:
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//----------------------------------------------------------------------
#ifndef _HEPMC_INPUT_HH_
#define _HEPMC_INPUT_HH_
// Class to read HepMC ascii files
// Format assumed to be consistent with HepMC 2.X
// as described here:
// http://lcgapp.cern.ch/project/simu/HepMC/20400/HepMC2_user_manual.pdf
#include
"JetCore/InputMaker.hh"
namespace
SpartyJet
{
class
HepMCInput
:
public
TextInputMaker
{
public
:
HepMCInput
()
:
TextInputMaker
()
{
m_filename
=
""
;
m_currentEvnt
=
-
1
;
invert
=
false
;
m_name
=
"HepMCinput"
;
m_log
.
set_name
(
m_name
);
m_doStable
=
true
;
m_doParton
=
false
;
}
HepMCInput
(
std
::
string
filename
)
:
TextInputMaker
()
{
file
=
NULL
;
m_filename
=
filename
;
init
(
filename
);
m_currentEvnt
=
0
;
invert
=
false
;
m_name
=
"HepMCinput"
;
m_log
.
set_name
(
m_name
);
m_doStable
=
true
;
m_doParton
=
false
;
}
virtual
~
HepMCInput
()
{};
virtual
void
init
(
std
::
string
filename
);
virtual
void
fillInput
(
int
eventn
,
JetCollection
&
inputList
,
int
start_index
=
0
);
virtual
bool
fillNextInput
(
JetCollection
&
inputList
,
int
start_index
=
0
);
virtual
void
moveToEventN
(
int
n
);
virtual
void
init_collection
(
JetCollection
&
coll
);
void
invert_input_order
(
bool
in
)
{
invert
=
in
;}
void
usePartonLevel
()
{
m_doStable
=
false
;
m_doParton
=
true
;}
protected
:
bool
invert
;
bool
m_doParton
;
bool
m_doStable
;
};
}
// namespace SpartyJet
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Thu, Apr 24, 6:34 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4845553
Default Alt Text
HepMCInput.hh (2 KB)
Attached To
rSPARTYJETSVN spartyjetsvn
Event Timeline
Log In to Comment