StMcEventMaker Class Reference

Filling of all StMcEvent classes from g2t tables Transform all the data in the g2t tables into the corresponding StMc classes, and create the pointers to navigate from event to hits/tracks/vertices. More...

Inheritance diagram for StMcEventMaker:

StMaker

List of all members.

Public Member Functions

 StMcEventMaker (const char *name="StMcEventMaker", const char *title="")
virtual void Clear (const char *opt="")
virtual Int_t Init ()
virtual Int_t Make ()
virtual Int_t Finish ()
virtual const char * GetCVS () const
void printEventInfo ()

Public Attributes

Bool_t doPrintEventInfo
Bool_t doPrintMemoryInfo
 lots of screen output
Bool_t doPrintCpuInfo
Bool_t doUseTpc
Bool_t doUseSvt
Bool_t doUseSsd
Bool_t doUseFtpc
Bool_t doUseRich
Bool_t doUseBemc
Bool_t doUseBsmd
Bool_t doUseCtb
Bool_t doUseTofp
Bool_t doUseTof
Bool_t doUseMtd
Bool_t doUseEemc
Bool_t doUseFpd
Bool_t doUseFsc
Bool_t doUsePixel
Bool_t doUseIst
Bool_t doUseFgt

Protected Member Functions

void fillBemc (St_g2t_emc_hit *)
void fillBsmd (St_g2t_emc_hit *)
void fillEemc (St_g2t_emc_hit *g2t_tile, St_g2t_emc_hit *g2t_smd)
void fillFpd (St_g2t_emc_hit *)
void fillFsc (St_g2t_emc_hit *)


Detailed Description

Filling of all StMcEvent classes from g2t tables Transform all the data in the g2t tables into the corresponding StMc classes, and create the pointers to navigate from event to hits/tracks/vertices.

Author:
Manuel Calderon de la Barca Sanchez
Date:
July 1999
Id
StMcEventMaker.cxx,v 1.74 2011/11/21 22:00:13 perev Exp
Log
StMcEventMaker.cxx,v
Revision 1.74 2011/11/21 22:00:13 perev Ignore tracks with wrong ge_id

Revision 1.73 2011/10/11 01:24:57 perev Mtd added

Revision 1.72 2011/07/20 17:36:32 perev Fsc added

Revision 1.71 2011/04/01 19:58:35 perev forse P<E fix/hack

Revision 1.70 2011/01/26 19:48:35 perev FPD ==> STAR Soft

Revision 1.69 2010/07/21 17:31:23 perev useBtof cancelled useTof is ON instead (F.Geurt)

Revision 1.68 2010/01/28 18:12:26 perev WarnOff

Revision 1.67 2009/07/24 19:06:41 perev Btof added (Geurts)

Revision 1.66 2007/10/16 19:49:46 fisyak rename Hft => Pxl, remove Hpd, Igt and Fst

Revision 1.65 2007/08/13 22:04:51 calderon Fix off-by-one bug in assigning parents to event-generator particles found by Pibero. Should be done obtaining the index to the mother particle in the particle table and subtracting one from this index when accessing the ttempParticle array. Added debugging to check this.

Revision 1.64 2007/04/28 17:56:26 perev Redundant StChain.h removed

Revision 1.63 2006/11/22 21:18:24 fisyak Add check that coming from g2t tables : iTrkId >= 0 && iTrkId < NTracks

Revision 1.62 2006/09/25 14:21:46 fisyak Add Hpd Hits

Revision 1.60 2005/10/07 20:39:02 fisyak Restore comment field from particle table

Revision 1.59 2005/09/28 21:30:51 fisyak Persistent StMcEvent

Revision 1.58 2005/08/09 03:31:57 perev LeakFix

Revision 1.57 2005/07/07 18:21:17 calderon Added code for filling of IGT classes.

Revision 1.56 2005/06/09 19:42:33 perev if(Debug()) for prinout added

Revision 1.55 2005/06/06 19:15:07 calderon Update for filling EEMC hits. All filling now done in one function, StMcEventMaker::fillEemc(), towers, prs, smdu, smdv.

Revision 1.54 2005/05/27 23:38:06 calderon Update of EEMC filling for eprs, esmdu and esmdv hits.

Revision 1.53 2005/05/11 20:53:13 calderon Added loading of SSD hits from g2t_ssd_hit table.

Revision 1.52 2005/04/18 20:12:39 calderon Modifications to build the Fgt and Fst classes from the g2t tables.

Revision 1.51 2005/01/21 02:32:28 jeromel No idea of what this change was about ...

Revision 1.50 2004/12/17 01:19:40 calderon Protection against deleting twice (Found by Jeff Porter).

Revision 1.49 2004/10/29 20:08:26 calderon Reduce cout statements in normal running, but keep them in Debug mode.

Revision 1.48 2004/01/14 22:46:45 fisyak replace iostream by Stiostream.h

Revision 1.47 2003/12/09 19:29:39 calderon Changes to check the volume id of FTPC hits. new volume id's run from 1000 to 2906 (they include the sectors). For backward compatibility, include 101 - 2906 in the check for a good volume Id.

Revision 1.46 2003/12/04 05:58:15 calderon Introduction of Endcap EMC collections into StMcEvent. Read the corresponding g2t table for the hits, decode the volume Id and add it to the proper containers in StMcEvent and StMcTrack.

Revision 1.45 2003/10/08 20:28:23 calderon use <iostream>, std::ostream, std::cout

Revision 1.44 2003/09/02 17:58:41 perev gcc 3.2 updates + WarnOff

Revision 1.43 2003/08/20 18:51:01 calderon Filling of Tof and Pixel classes.

Revision 1.42 2003/02/19 03:17:04 calderon Code to fill the StMcCtbHitCollection from the g2t tables by the Gansinator.

Revision 1.41 2003/01/23 04:03:20 jeromel Include fixed

Revision 1.40 2001/10/15 20:38:56 pavlinov Added bfcTree/geantBranch for searching g2t tablesStMcEventMaker.cxx

Revision 1.39 2001/05/13 21:14:49 calderon Modifications from Aleksei : StMcEmcHitCollections changed, added method for printing Emc information of the event

Revision 1.38 2001/04/25 18:10:50 perev HPcorrs

Revision 1.37 2001/03/13 16:14:02 pavlinov StEmcGeom moved to StEmcUtil

Revision 1.36 2000/09/07 21:04:51 calderon Remove requirement on having g2t_tpc_hit table to create StMcEvent. Print diagnostics accordingly. Add doUseBsmd(kTRUE) to StMcEventMaker constructor.

Revision 1.35 2000/08/11 20:57:00 calderon bug fix to PrintInfo(), Thanks Maria

Revision 1.34 2000/06/22 23:53:31 calderon Changes from Aleksei for filling of emc hits. ttemp and ttempParticle are now data members.

Revision 1.33 2000/06/09 19:52:42 calderon use compMcHit instead of compMcTpcHit and compMcSvtHit

Revision 1.32 2000/06/06 03:00:18 calderon Introduction of Calorimeter classes. Filled according to algorithm from Aleksei, plus some additional checks.

Revision 1.31 2000/05/19 17:46:56 calderon remove requirement to find particle table remove requirement to check volume id for rich hits

Revision 1.30 2000/05/17 23:43:11 calderon assign the parent of the tracks from the particle table at the end of the track loop.

Revision 1.29 2000/05/17 19:42:01 calderon Fix bug in assigning parent tracks, Thanks Zhangbu

Revision 1.28 2000/05/11 20:16:01 calderon Fix typo in checking for volume id of rich hits, Thanks Jamie.

Revision 1.27 2000/05/11 14:40:29 calderon Added switches to do/do not load hit information from different detectors. By default, all the detectors' hit information is loaded.

Revision 1.26 2000/05/04 22:46:39 calderon pdg Id is now read in the track constructor for all tracks

Revision 1.25 2000/04/24 22:08:23 calderon change for indexing of mother particles

Revision 1.24 2000/04/20 15:56:16 calderon If particle & g2t_rch_hit table are not found in geant branch, look for them in dst branch (for backwards compatibility).

Revision 1.23 2000/04/19 17:45:22 calderon particle table and g2t_rch_hit table are now in geant branch

Revision 1.22 2000/04/18 23:17:23 calderon delete the svt hit if it is not possible to store it

Revision 1.21 2000/04/18 00:56:39 calderon Add pdgId to tracks that appear in both tables

Revision 1.20 2000/04/17 23:01:56 calderon proper casting to remove a comparison warning

Revision 1.19 2000/04/12 21:32:36 calderon check for eg_label in range of particle table

Revision 1.18 2000/04/06 23:29:40 calderon The parent track is now stored for all tracks.

Revision 1.17 2000/04/06 20:26:55 calderon All particles in the particle table are now filled. Relationships to parents can be followed to event generator particles.

Revision 1.16 2000/04/06 08:38:08 calderon First version using the particle table. The parent daughter relationship(if it exists) between tracks in the g2t_track table and tracks that come from the event generator is successfully established. Next step is to load the rest of the particle table entries that don't have any descendants in the g2t table (which is the majority of the entries).

Revision 1.15 2000/04/04 23:15:43 calderon Report number of hits successfully stored and additional reporting of hits with bad volume id.

Revision 1.14 2000/03/06 18:07:36 calderon 1) Check tpc hit volume id to not load hits in pseudo pad rows. 2) Sort the hits in the collections, in order to save time later during hit associations.

Revision 1.13 2000/02/04 15:40:52 calderon Fix dumping of vertex info when there is just one vertex.

Revision 1.12 2000/01/18 20:53:08 calderon Changes to work with CC5

Revision 1.11 2000/01/11 23:18:56 calderon Check if there are hits before writing info to screen.

Revision 1.10 1999/12/14 07:05:32 calderon Use numbering scheme

Revision 1.9 1999/12/03 19:40:42 calderon volume_id for SVT hits can be up to ~8700.

Revision 1.8 1999/12/03 00:55:21 calderon Completely revised for StMcEvent 2.0 Using StDbUtilities for coordinate transformations. Tested g2t_event table is read properly (when available). Added messages for diagnostics. Tested in Linux, Solaris 4.2 and HP.

Revision 1.7 1999/09/24 01:23:18 fisyak Reduced Include Path

Revision 1.6 1999/09/23 21:25:59 calderon Added Log & Id Modified includes according to Yuri

Revision 1.5 1999/09/15 18:39:28 calderon -Do not require g2t_ftp_hit table for filling of StMcEvent -Update README for changes

Revision 1.4 1999/09/10 19:11:54 calderon Write the Ntuple in StMcAnalysisMaker into a file. This way it can be accessed after the macro finishes, otherwise it gets deleted.

Revision 1.3 1999/07/28 20:27:42 calderon Version with SL99f libraries

Definition at line 106 of file StMcEventMaker.h.


Member Function Documentation

Int_t StMcEventMaker::Finish (  )  [virtual]

Terminate a run. Place to make operations on histograms, normalization,etc.

Reimplemented from StMaker.

Definition at line 404 of file StMcEventMaker.cxx.

Int_t StMcEventMaker::Make (  )  [virtual]

The Make() method is the one responsible for calling the maker's InitRun(). Note that that InitRun() is called for real data and if both of the following are true

  • a header exists
  • the run number changes

This is the ONLY place calling the InitRun() routine.

check privilege to skip event

Reimplemented from StMaker.

Definition at line 422 of file StMcEventMaker.cxx.

References StMaker::AddData(), doPrintMemoryInfo, kStOK, and kStWarn.


The documentation for this class was generated from the following files:

Generated on Thu Feb 9 04:27:31 2012 for StRoot by  doxygen 1.5.9