StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Typedefs | Functions
StMiniMcMaker.h File Reference

Filling of StMiniMcEvent classes from StMcEvent, StEvent, StAssociationMaker. More...

#include "StMaker.h"
#include <vector>
#include <utility>
#include <algorithm>
#include <map>
#include "TString.h"
#include "StAssociationMaker/StAssociationMaker.h"
#include "StAssociationMaker/StTrackPairInfo.hh"
#include "StMiniMcEvent/StMiniMcEvent.h"
#include "StMiniMcEvent/StMiniMcPair.h"
#include "StMiniMcEvent/StContamPair.h"
#include "StThreeVectorF.hh"

Go to the source code of this file.

Classes

class  StMiniMcMaker
 

Typedefs

typedef map< UInt_t, Int_t > RCFOUNDMAP
 
typedef map< long, Int_t > MCFOUNDMAP
 
typedef map< Long_t, const
StMcTrack * > 
MCMAP
 
typedef vector< StTrackPairInfo * > PAIRVEC
 
typedef pair< const StTpcHit
*, const StTpcHit * > 
PAIRHIT
 

Functions

bool pairCmp (StTrackPairInfo *p1, StTrackPairInfo *p2)
 
bool sortCmp (StTrackPairInfo *p1, StTrackPairInfo *p2)
 

Detailed Description

Filling of StMiniMcEvent classes from StMcEvent, StEvent, StAssociationMaker.

Id:
StMiniMcMaker.h,v 1.20 2014/08/06 11:43:27 jeromel Exp
Author
Bum Choi
Date
March 2001

Fills the mDst of the association maker results. basically an amalgamation of the flow maker and manuel calderon de la barca's code.

Log:
StMiniMcMaker.h,v

Revision 1.20 2014/08/06 11:43:27 jeromel Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes

Revision 1.19 2012/03/15 23:37:36 perev Uncorrected globals added(Chris)

Revision 1.18 2011/07/19 19:18:23 perev Error handling fixed

Revision 1.17 2011/04/01 20:01:41 perev const++

Revision 1.16 2010/08/31 20:16:15 fisyak Add track seedQuality

Revision 1.15 2010/04/15 19:17:27 fisyak Add corrections for AppendMCDaughterTrack from Masayuki Wada

Revision 1.14 2009/02/02 19:30:50 fisyak Set common Hit as no.Tpc + 100*no.Svt + 1000*no.Ssd hits, add protection against empty emcCollection

Revision 1.13 2007/12/22 20:31:21 calderon Storing of info of 3 EMC towers for each TinyRcTrack and TinyMcTrack.

Revision 1.12 2007/02/23 17:07:41 fisyak Resolve bug #682

Revision 1.11 2005/07/06 22:23:49 fisyak Use templated StThreeVectorF

Revision 1.10 2004/03/30 03:16:15 calderon Modifications for running in bfc.

Revision 1.9 2004/03/15 18:59:47 calderon

Revision 1.8 2004/01/26 13:59:26 calderon Added the code to fill the global track matches of StMiniMcEvent.

Revision 1.7 2003/09/10 19:47:23 perev ansi corrs

Revision 1.6 2003/07/09 01:07:23 calderon Addition of FTPC reference multiplicity Addition of other multiplicity values for StMiniMcEvent Changes to reflect the use of the setters and getters, no longer access the data members directly.

Revision 1.5 2002/06/28 22:15:12 calderon Changes to deal with seg. faults in the file name handling: Conventions: StMiniMcMaker looks for the input file from the IO maker to figure out if the file has changed. This is done using TString::Contains() in Make(). Usually we will run one file at a time, but in order not to break Bum's scheme of being able to process several files in one go, this is left as is. However, for embedding, the file name is not enough, in Eric's new scheme there are repeated file names. This is resolved by adding a prefix to the output file name. However, this prefix should not be overwritten, so the current code only replaces the string inside the output file name pertaining to the input file name, and leaves the prefix of the output file intact. This was done for embedding looking for st_physics, and here is where the problem arose: hijing files begin with a different prefix. To solve this problem, the input file name prefix is now an input parameter in the macro.

StMiniEmbed.C and StMiniHijing.C now conform to this convention. StMiniEmbed.C did not change its prototype, because all embedding files have st_phyics as prefix. StMiniHijing.C changed its prototype, now it takes as an input argument the prefix, but in order not to break Jenn's scripts if she was already using this macro, this parameter was added at the end and defaults to "rcf", which is appropriate for hijing files reconstructed in rcf.

Revision 1.4 2002/06/07 02:22:00 calderon Protection against empty vector in findFirstLastHit

Log:
StMiniMcMaker.h,v

Revision 1.20 2014/08/06 11:43:27 jeromel Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes

Revision 1.19 2012/03/15 23:37:36 perev Uncorrected globals added(Chris)

Revision 1.18 2011/07/19 19:18:23 perev Error handling fixed

Revision 1.17 2011/04/01 20:01:41 perev const++

Revision 1.16 2010/08/31 20:16:15 fisyak Add track seedQuality

Revision 1.15 2010/04/15 19:17:27 fisyak Add corrections for AppendMCDaughterTrack from Masayuki Wada

Revision 1.14 2009/02/02 19:30:50 fisyak Set common Hit as no.Tpc + 100*no.Svt + 1000*no.Ssd hits, add protection against empty emcCollection

Revision 1.13 2007/12/22 20:31:21 calderon Storing of info of 3 EMC towers for each TinyRcTrack and TinyMcTrack.

Revision 1.12 2007/02/23 17:07:41 fisyak Resolve bug #682

Revision 1.11 2005/07/06 22:23:49 fisyak Use templated StThreeVectorF

Revision 1.10 2004/03/30 03:16:15 calderon Modifications for running in bfc.

Revision 1.9 2004/03/15 18:59:47 calderon

Revision 1.8 2004/01/26 13:59:26 calderon Added the code to fill the global track matches of StMiniMcEvent.

Revision 1.7 2003/09/10 19:47:23 perev ansi corrs

Revision 1.6 2003/07/09 01:07:23 calderon Addition of FTPC reference multiplicity Addition of other multiplicity values for StMiniMcEvent Changes to reflect the use of the setters and getters, no longer access the data members directly.

Revision 1.5 2002/06/28 22:15:12 calderon Changes to deal with seg. faults in the file name handling: Conventions: StMiniMcMaker looks for the input file from the IO maker to figure out if the file has changed. This is done using TString::Contains() in Make(). Usually we will run one file at a time, but in order not to break Bum's scheme of being able to process several files in one go, this is left as is. However, for embedding, the file name is not enough, in Eric's new scheme there are repeated file names. This is resolved by adding a prefix to the output file name. However, this prefix should not be overwritten, so the current code only replaces the string inside the output file name pertaining to the input file name, and leaves the prefix of the output file intact. This was done for embedding looking for st_physics, and here is where the problem arose: hijing files begin with a different prefix. To solve this problem, the input file name prefix is now an input parameter in the macro.

StMiniEmbed.C and StMiniHijing.C now conform to this convention. StMiniEmbed.C did not change its prototype, because all embedding files have st_phyics as prefix. StMiniHijing.C changed its prototype, now it takes as an input argument the prefix, but in order not to break Jenn's scripts if she was already using this macro, this parameter was added at the end and defaults to "rcf", which is appropriate for hijing files reconstructed in rcf. and

Id:
StMiniMcMaker.h,v 1.20 2014/08/06 11:43:27 jeromel Exp

plus header comments for the macros

Definition in file StMiniMcMaker.h.