FEDRA emulsion software from the OPERA Collaboration
|
#include <EdbDataStore.h>
Public Member Functions | |
void | AddPattern (EdbPattern *pat) |
EdbSegP * | AddSegment (EdbSegP *seg, EdbSegmentCut *cut=0, int Plt0=0, int Plt1=100) |
add methods More... | |
void | AddTrack (EdbTrackP *tr) |
void | AddVertex (EdbVertex *v) |
void | Clear (bool hard=false) |
clear methods More... | |
void | ClearGeom () |
void | ClearRaw (bool hard=false) |
void | ClearSeg (bool hard=false) |
void | ClearTracks (bool hard=false) |
void | ClearVTX () |
void | DoEfficiency (TF1 *eff_seg, TF1 *eff_mtk) |
void | DoSmearing (EdbScanCond *cond_btk, EdbScanCond *cond_mtk=0) |
methods for simulation: More... | |
EdbDataStore () | |
EdbLayer * | FindLayer (int plate, int side=0) |
EdbTrackP * | FindLongTrk (int nsmin=8) |
EdbPattern * | FindPattern (int plate, int side=0) |
EdbVertex * | FindPrimVtx () |
EdbTrackP * | FindTrack (int id) |
find methods More... | |
EdbVertex * | FindVertex (int id) |
long | Gen_mtk_BG (long NBG, int Plate, int Side, TH2 *pdf_Ang, TH2 *pdf_WT=0) |
EdbPattern * | GetPattern (int n, bool btk=true) |
EdbPatternsVolume * | GetPV (bool btk=true) |
EdbPattern * | GetRawPat (int n) |
EdbPattern * | GetSegPat (int n) |
EdbTrackP * | GetTrack (int n) |
get methods More... | |
EdbVertex * | GetVertex (int n) |
void | LoadMCVertices (TObjArray *vtx) |
restore MC info methods More... | |
void | MakePattern (double z, int plate, int side) |
int | Nplt () |
int | Nt () |
count methods: More... | |
int | Nv () |
void | PrintBrief () |
print methods More... | |
void | PrintPatterns () |
void | PrintTracks (int vlev=0) |
void | Restore_PatFromGeom (int np0=0, int np1=1000) |
void | Restore_PIDFromID () |
void | Restore_SegFromTrx (EdbSegmentCut *cut=0, int Plt0=0, int Plt1=1000) |
void | Restore_TrxFromVtx () |
void | SavePlateToRaw (const char *fname, int PID, Option_t *option="RECREATE") |
void | SaveToRaw (const char *dir="./", const EdbID &idset="0.0.0.0", Option_t *option="RECREATE", bool doaff=true) |
save methods: More... | |
void | SetOwnTracks (bool own=true) |
setown methods: More... | |
void | SetOwnTrkSegs () |
void | SetOwnVertices (bool own=true) |
void | TransferGeometry (EdbDataStore *ds) |
void | TransferTo (EdbDataStore *ds, char level, EdbSegmentCut *cut=0, int FromPlate=0, int ToPlate=57) |
transfer methods More... | |
~EdbDataStore () | |
Static Public Member Functions | |
static void | TransferSegs (EdbPatternsVolume *pv0, EdbPatternsVolume *pv1, EdbSegmentCut *cut=0, int FromPlate=0, int ToPlate=57) |
Public Attributes | |
EdbBrickP * | eBrick |
EdbPatternsVolume | eRawPV |
geometry More... | |
EdbPatternsVolume | eSegPV |
TObjArray | eTracks |
TObjArray | eVTX |
EdbDataStore::EdbDataStore | ( | ) |
EdbDataStore::~EdbDataStore | ( | ) |
void EdbDataStore::AddPattern | ( | EdbPattern * | pat | ) |
EdbSegP * EdbDataStore::AddSegment | ( | EdbSegP * | s, |
EdbSegmentCut * | cut = 0 , |
||
int | Plt0 = 0 , |
||
int | Plt1 = 100 |
||
) |
|
inline |
clear methods
void EdbDataStore::ClearGeom | ( | ) |
void EdbDataStore::ClearRaw | ( | bool | hard = false | ) |
void EdbDataStore::ClearSeg | ( | bool | hard = false | ) |
void EdbDataStore::DoEfficiency | ( | TF1 * | eff_seg, |
TF1 * | eff_mtk | ||
) |
void EdbDataStore::DoSmearing | ( | EdbScanCond * | cond_btk, |
EdbScanCond * | cond_mtk = 0 |
||
) |
methods for simulation:
EdbLayer * EdbDataStore::FindLayer | ( | int | plate, |
int | side = 0 |
||
) |
EdbTrackP * EdbDataStore::FindLongTrk | ( | int | nsmin = 8 | ) |
EdbPattern * EdbDataStore::FindPattern | ( | int | plate, |
int | side = 0 |
||
) |
EdbVertex * EdbDataStore::FindPrimVtx | ( | ) |
EdbTrackP * EdbDataStore::FindTrack | ( | int | id | ) |
EdbVertex * EdbDataStore::FindVertex | ( | int | id | ) |
Generate background microtracks, using distributions: 1)from pdf_Ang(TY:TX) - should be normalized so that its maximum bin content = 1 2)from pdb_WT (W:tan(Theta)) - each row with fixed X(i.e. slope) should have maximum content = 1
Side==0 - this is basetrack. So we need to project each segment to RAW patterns
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void EdbDataStore::LoadMCVertices | ( | TObjArray * | vtx | ) |
restore MC info methods
void EdbDataStore::MakePattern | ( | double | z, |
int | plate, | ||
int | side | ||
) |
|
inline |
count methods:
|
inline |
void EdbDataStore::PrintBrief | ( | ) |
void EdbDataStore::PrintPatterns | ( | ) |
void EdbDataStore::PrintTracks | ( | int | vlev = 0 | ) |
void EdbDataStore::Restore_PatFromGeom | ( | int | np0 = 0 , |
int | np1 = 1000 |
||
) |
void EdbDataStore::Restore_PIDFromID | ( | ) |
void EdbDataStore::Restore_SegFromTrx | ( | EdbSegmentCut * | cut = 0 , |
int | Plt0 = 0 , |
||
int | Plt1 = 1000 |
||
) |
restore segments from tracks
void EdbDataStore::Restore_TrxFromVtx | ( | ) |
restore tracks from vertex
void EdbDataStore::SavePlateToRaw | ( | const char * | fname, |
int | PID, | ||
Option_t * | option = "RECREATE" |
||
) |
Convert this event to RAW data format!
Get plate geometry:
maximum segments per view. When this is reached - create a new view.
void EdbDataStore::SaveToRaw | ( | const char * | dir = "./" , |
const EdbID & | idset = "0.0.0.0" , |
||
Option_t * | option = "RECREATE" , |
||
bool | doaff = true |
||
) |
save methods:
Save the raw data to FEDRA brick structure
generate plate filename
save plate.
save affine tranformations
save affine parameters
|
inline |
setown methods:
|
inline |
void EdbDataStore::TransferGeometry | ( | EdbDataStore * | ds | ) |
|
static |
find corresponding DEST pattern
void EdbDataStore::TransferTo | ( | EdbDataStore * | ds, |
char | level, | ||
EdbSegmentCut * | cut = 0 , |
||
int | FromPlate = 0 , |
||
int | ToPlate = 57 |
||
) |
transfer methods
EdbBrickP* EdbDataStore::eBrick |
EdbPatternsVolume EdbDataStore::eRawPV |
geometry
EdbPatternsVolume EdbDataStore::eSegPV |
TObjArray EdbDataStore::eTracks |
TObjArray EdbDataStore::eVTX |