1 #ifndef LCIO_OPERATORS_H
2 #define LCIO_OPERATORS_H 1
13 #include "EVENT/ReconstructedParticle.h"
14 #include "EVENT/SimCalorimeterHit.h"
15 #include "EVENT/MCParticle.h"
16 #include "EVENT/SimTrackerHit.h"
17 #include "EVENT/TrackerHit.h"
18 #include "EVENT/TrackerHitPlane.h"
19 #include "EVENT/TrackerHitZCylinder.h"
20 #include "EVENT/Track.h"
21 #include "EVENT/TrackState.h"
22 #include "EVENT/Cluster.h"
23 #include "EVENT/CalorimeterHit.h"
24 #include "EVENT/LCFlag.h"
25 #include "EVENT/LCIntVec.h"
26 #include "EVENT/LCRunHeader.h"
27 #include "EVENT/RawCalorimeterHit.h"
29 #include "EVENT/TrackerPulse.h"
30 #include "EVENT/LCFloatVec.h"
31 #include "EVENT/LCObject.h"
32 #include "EVENT/TrackerRawData.h"
33 #include "EVENT/LCCollection.h"
34 #include "EVENT/LCGenericObject.h"
35 #include "EVENT/LCParameters.h"
36 #include "EVENT/TrackerData.h"
37 #include "EVENT/LCEvent.h"
38 #include "EVENT/LCIO.h"
39 #include "EVENT/LCRelation.h"
40 #include "EVENT/ParticleID.h"
41 #include "EVENT/Vertex.h"
82 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::Vertex>& sV);
89 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::MCParticle>& sV);
95 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::TrackerHit>& sV);
100 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::TrackerHitPlane>& sV);
105 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::TrackerHitZCylinder>& sV);
110 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::SimTrackerHit>& sV);
115 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::CalorimeterHit>& sV);
120 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::SimCalorimeterHit>& sV);
125 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::ReconstructedParticle> & );
130 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::Track> &);
135 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::TrackState> &);
140 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::Cluster> &);
145 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::LCRelation> &);
150 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::LCFloatVec> &);
156 const std::string & tail(){
return tail((T)(0)); }
164 const T *object(
void)
const {
return(obj);};
176 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::CalorimeterHit> l);
177 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::Cluster> l);
178 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::Track> l);
179 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::TrackState> l);
180 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::ReconstructedParticle> ll);
181 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::SimCalorimeterHit> ll);
182 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::TrackerHit> ll);
183 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::TrackerHitPlane> ll);
184 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::TrackerHitZCylinder> ll);
185 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::SimTrackerHit> ll);
186 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::MCParticle> ll);
187 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::Vertex> ll);
188 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::LCRelation> ll);
189 std::ostream& operator<<( std::ostream& out, const LCIO_LONG<EVENT::LCFloatVec> ll);
194 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::LCCollection> &);
199 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::LCEvent> &);
204 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::LCFlag> &);
209 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::LCGenericObject> &);
214 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::LCIntVec> &);
219 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::LCObject> &);
224 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::LCParameters> &);
229 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::LCRunHeader> &);
241 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::ParticleID> &);
246 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::RawCalorimeterHit> &);
256 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::TrackerData> &);
261 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::TrackerPulse> &);
266 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::TrackerRawData> &);
271 std::ostream& operator<<( std::ostream& out, const UTIL::lcio_short<EVENT::LCIO> &);
286 std::string toString(
const T* obj) {
287 std::stringstream ss ;
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
const std::string & header(const EVENT::Vertex *)
operator for detailed output of a vertex object (e.g.
Definition: Operators.cc:2966
A generic tracker hit to be used by pattern recognition.
Definition: TrackerHit.h:26
The generic simulated calorimeter hit.
Definition: SimCalorimeterHit.h:23
std::ostream & operator<<(std::ostream &os, const BitField64 &b)
Operator for dumping BitField64 to streams.
Definition: BitField64.cc:251
Definition: Operators.h:160
The Vertex class for LCIO.
Definition: Vertex.h:34
Definition: Operators.h:64
A tracker hit on a planar surface - the hit is stored as: x,y,z, u(theta, phi), v(theta,phi), du, dv where (x,y,z) is the position in global cartesian coordinates, u,v are the the meassurement directions (unit vectors, spanning the plane) and du,dv are the measurement errors along these directions.
Definition: TrackerHitPlane.h:30
A generic simulated tracker hit.
Definition: SimTrackerHit.h:23
The LCIO TrackState class.
Definition: TrackState.h:26
TrackerData contains the corrected (calibrated) raw tracker data.
Definition: TrackerData.h:23
Global constants used in LCIO.
Definition: LCIO.h:28
Tracker pulses as computed from TrackerData objects or as directly measured by a specific subdetector...
Definition: TrackerPulse.h:26
Simple interface to store generic named parameters of type int, float and string. ...
Definition: LCParameters.h:28
The LCIO cluster.
Definition: Cluster.h:30
The LCIO track class.
Definition: Track.h:33
Int vector used for user extensions.
Definition: pre-generated/EVENT/LCIntVec.h:24
Float vector used for user extensions.
Definition: pre-generated/EVENT/LCFloatVec.h:25
Simple interface to store generic user data.
Definition: LCGenericObject.h:27
The LCIO reconstructedParticle.
Definition: ReconstructedParticle.h:35
The LCIO Monte Carlo particle.
Definition: MCParticle.h:27
Persistent interface for LCIO ParticleIDs.
Definition: ParticleID.h:28
A single weighted relationship between two LCObjects.
Definition: LCRelation.h:29
The generic calorimeter hit for real data (or simulation thereof).
Definition: RawCalorimeterHit.h:31
The main event interface.
Definition: LCEvent.h:30
Generic class for raw tracker data.
Definition: TrackerRawData.h:24
The generic collection used in LCIO.
Definition: LCCollection.h:29
A tracker hit on a cylindrical surface that runs parallel to the z-axis - the hit is stored as: x...
Definition: TrackerHitZCylinder.h:28
Helper class to create and interpret the 32-bit flag word in LCCollections.
Definition: LCFlag.h:19
The generic calorimeter hit - created from SimCalorimeterHit or RawCalorimeterHit.
Definition: CalorimeterHit.h:34