WCSim
|
Class storing trigger information. More...
#include <WCSimRootEvent.hh>
Public Member Functions | |
WCSimRootTrigger () | |
WCSimRootTrigger (int, int) | |
virtual | ~WCSimRootTrigger () |
WCSimRootTrigger & | operator= (const WCSimRootTrigger &in) |
bool | CompareAllVariables (const WCSimRootTrigger *c, bool deep_comparison=false) const |
void | Initialize () |
void | Clear (Option_t *option="") |
void | SetHeader (Int_t i, Int_t run, int64_t date, Int_t subevtn=1) |
void | SetTriggerInfo (TriggerType_t trigger_type, std::vector< Double_t > trigger_info) |
bool | IsASubEvent () |
void | SetMode (Int_t i) |
void | SetMode (Int_t index, Int_t value) |
void | SetNvtxs (Int_t i) |
void | SetVtxvol (Int_t i) |
void | SetVtxsvol (Int_t i, Int_t v) |
void | SetVtx (Int_t i, Double_t f) |
void | SetVtxs (Int_t n, Int_t i, Double_t f) |
void | SetVecRecNumber (Int_t i) |
void | SetJmu (Int_t i) |
void | SetJp (Int_t i) |
void | SetNpar (Int_t i) |
void | SetNumTubesHit (Int_t i) |
void | SetSumQ (Double_t x) |
void | SetNumDigitizedTubes (Int_t i) |
void | SetPi0Info (Double_t pi0Vtx[3], Int_t gammaID[2], Double_t gammaE[2], Double_t gammaVtx[2][3]) |
void | SetCaptureParticle (Int_t parent, Int_t ipnu, Double_t time, Double_t vtx[3], Double_t dir[3], Double_t energy, Int_t id) |
WCSimRootEventHeader * | GetHeader () |
const WCSimRootEventHeader * | GetHeader () const |
WCSimRootPi0 * | GetPi0Info () |
const WCSimRootPi0 * | GetPi0Info () const |
Int_t | GetMode () const |
Int_t | GetMode (Int_t index) const |
Int_t | GetVtxvol () const |
Float_t | GetVtx (Int_t i=0) |
TVector3 | GetVertex (Int_t i) |
Int_t | GetNvtxs () const |
Int_t | GetVtxsvol (Int_t i) const |
Float_t | GetVtxs (Int_t n, Int_t i=0) const |
TLorentzVector | Get4Vertex (Int_t i) |
Int_t | GetVecRecNumber () const |
Int_t | GetJmu () const |
Int_t | GetJp () const |
Int_t | GetNpar () const |
Int_t | GetNumTubesHit () const |
Int_t | GetNumDigiTubesHit () const |
Int_t | GetNtrack () const |
Int_t | GetNcaptures () const |
Int_t | GetNtrack_slots () const |
Int_t | GetNcherenkovhits () const |
Int_t | GetNcherenkovhittimes () const |
Int_t | GetNcherenkovhithistories () const |
Int_t | GetNcherenkovdigihits () const |
Int_t | GetNcherenkovdigihits_slots () const |
Float_t | GetSumQ () const |
TriggerType_t | GetTriggerType () const |
std::vector< Double_t > | GetTriggerInfo () const |
WCSimRootTrack * | AddTrack (Int_t ipnu, Int_t flag, Double_t m, Double_t p, Double_t E, Int_t startvol, Int_t stopvol, Double_t dir[3], Double_t pdir[3], Double_t stop[3], Double_t start[3], Int_t parenttype, ProcessType_t creatorProcess, Double_t time, Int_t id, Int_t idParent, std::vector< std::vector< float >> bPs, std::vector< float > bKEs, std::vector< double > bTimes, std::vector< int > bTypes) |
WCSimRootTrack * | AddTrack (WCSimRootTrack *track) |
WCSimRootTrack * | RemoveTrack (WCSimRootTrack *track) |
TClonesArray * | GetTracks () const |
WCSimRootCherenkovHit * | AddCherenkovHit (Int_t tubeID, Int_t mPMTID, Int_t mPMT_PMTID, std::vector< Double_t > truetime, std::vector< Int_t > primParID, std::vector< Float_t > photonStartTime, std::vector< TVector3 > photonStartPos, std::vector< TVector3 > photonEndPos, std::vector< TVector3 > photonStartDir, std::vector< TVector3 > photonEndDir, std::vector< ProcessType_t > photonCreatorProcess) |
WCSimRootCherenkovHitHistory * | AddCherenkovHitHistory (Int_t nRayScat, Int_t nMieScat, std::vector< ReflectionSurface_t > reflec) |
TClonesArray * | GetCherenkovHits () const |
TClonesArray * | GetCherenkovHitTimes () const |
TClonesArray * | GetCherenkovHitHistories () const |
WCSimRootCherenkovDigiHit * | AddCherenkovDigiHit (Double_t q, Double_t t, Int_t tubeid, Int_t mpmtid, Int_t mpmt_pmtid, std::vector< int > photon_ids) |
WCSimRootCherenkovDigiHit * | AddCherenkovDigiHit (WCSimRootCherenkovDigiHit *digit) |
WCSimRootCherenkovDigiHit * | RemoveCherenkovDigiHit (WCSimRootCherenkovDigiHit *digit) |
TClonesArray * | GetCherenkovDigiHits () const |
TClonesArray * | GetCaptures () const |
Static Public Member Functions | |
static void | Reset (Option_t *option="") |
Private Attributes | |
WCSimRootEventHeader | fEvtHdr |
The header. More... | |
Int_t | fMode [MAX_N_VERTICES] |
Interaction mode for each vertex. Only set for the muline generator. More... | |
Int_t | fNvtxs |
Number of true vertices in the event. More... | |
Int_t | fVtxsvol [MAX_N_VERTICES] |
The detector volume this vertex occured in. More... | |
Float_t | fVtxs [MAX_N_VERTICES][4] |
True 4-position (x,y,z,t) of the vertex. More... | |
Int_t | fVecRecNumber |
"info event" number in inputvectorfile. Only set for the muline generator More... | |
Int_t | fJmu |
LEGACY VARIABLE MAY BE INACCURATE IN SOME RUNNING SCENARIOS. Index of the muon. More... | |
Int_t | fJp |
LEGACY VARIABLE MAY BE INACCURATE IN SOME RUNNING SCENARIOS. Index of the proton. More... | |
WCSimRootPi0 | fPi0 |
Pi0 info (default = not used) More... | |
TClonesArray * | fCaptures |
Neutron capture info. More... | |
Int_t | fNcaptures |
Number of tracks in the neutron capture array. More... | |
Int_t | fNpar |
LEGACY VARIABLE MAY BE INACCURATE IN SOME RUNNING SCENARIOS. Index Number of tracks in the event (not all will be saved in the WCSimRootTrack array) More... | |
Int_t | fNtrack |
Number of tracks in the WCSimRootTrack array. More... | |
Int_t | fNtrack_slots |
Number of slots in the WCSimRootTrack array. This is potentially more than fNtrack (i.e. if any tracks have been removed that aren't at the very start/end) More... | |
TClonesArray * | fTracks |
Array of WCSimRootTracks. More... | |
Int_t | fNumTubesHit |
Number of tubes hit. More... | |
Int_t | fNcherenkovhits |
Number of hits in the array. More... | |
TClonesArray * | fCherenkovHits |
Array of WCSimRootCherenkovHits. More... | |
Int_t | fCherenkovHitCounter |
Incremented with every call of WCSimRootTrigger::AddCherenkovHit(). Not initialised to 0. Not used. Inaccessible publicly. Avoid. More... | |
Int_t | fNcherenkovhittimes |
Number of hits in the WCSimRootCherenkovHits array. More... | |
TClonesArray * | fCherenkovHitTimes |
Array of WCSimRootCherenkovHits. More... | |
Int_t | fNcherenkovhithistories |
Number of hits in the WCSimRootCherenkovHitHistories array. Should be identical to fNcherenkovhittimes. More... | |
TClonesArray * | fCherenkovHitHistories |
Array of WCSimRootCherenkovHitHistories. More... | |
Int_t | fNumDigitizedTubes |
Number of digitized tubes. More... | |
Int_t | fNcherenkovdigihits |
Number of digihits in the WCSimRootCherenkovDigiHit array. More... | |
Int_t | fNcherenkovdigihits_slots |
Number of slots in the WCSimRootCherenkovDigiHit array. This is potentially more than fNcherenkovdigihits (i.e. if any digihits have been removed that aren't at the very start/end) More... | |
Float_t | fSumQ |
Sum of digitised hit charge in this trigger. More... | |
TClonesArray * | fCherenkovDigiHits |
Array of WCSimRootCherenkovDigiHit's. More... | |
TriggerType_t | fTriggerType |
Trigger algorithm that created this trigger. More... | |
std::vector< Double_t > | fTriggerInfo |
Information about how it passed the trigger (e.g. how many hits in the NDigits window) More... | |
bool | IsZombie |
Will be true if unfilled, false if filled. More... | |
Class storing trigger information.
Digitised hit information will be put in the WCSimRootTrigger it is associated with (if there are multiple overlapping trigger readout windows, digits will only be saved in the first trigger window they are associated with, to avoid double counting)
True information (vertices, tracks, hits) are mostly put in the 0th WCSimRootTrigger
Definition at line 427 of file WCSimRootEvent.hh.
WCSimRootTrigger::WCSimRootTrigger | ( | ) |
WCSimRootTrigger::WCSimRootTrigger | ( | int | Number, |
int | Subevt | ||
) |
Definition at line 84 of file WCSimRootEvent.cc.
|
virtual |
Definition at line 146 of file WCSimRootEvent.cc.
WCSimRootCherenkovDigiHit * WCSimRootTrigger::AddCherenkovDigiHit | ( | Double_t | q, |
Double_t | t, | ||
Int_t | tubeid, | ||
Int_t | mpmtid, | ||
Int_t | mpmt_pmtid, | ||
std::vector< int > | photon_ids | ||
) |
Definition at line 694 of file WCSimRootEvent.cc.
WCSimRootCherenkovDigiHit * WCSimRootTrigger::AddCherenkovDigiHit | ( | WCSimRootCherenkovDigiHit * | digit | ) |
Definition at line 717 of file WCSimRootEvent.cc.
WCSimRootCherenkovHit * WCSimRootTrigger::AddCherenkovHit | ( | Int_t | tubeID, |
Int_t | mPMTID, | ||
Int_t | mPMT_PMTID, | ||
std::vector< Double_t > | truetime, | ||
std::vector< Int_t > | primParID, | ||
std::vector< Float_t > | photonStartTime, | ||
std::vector< TVector3 > | photonStartPos, | ||
std::vector< TVector3 > | photonEndPos, | ||
std::vector< TVector3 > | photonStartDir, | ||
std::vector< TVector3 > | photonEndDir, | ||
std::vector< ProcessType_t > | photonCreatorProcess | ||
) |
Definition at line 566 of file WCSimRootEvent.cc.
WCSimRootCherenkovHitHistory * WCSimRootTrigger::AddCherenkovHitHistory | ( | Int_t | nRayScat, |
Int_t | nMieScat, | ||
std::vector< ReflectionSurface_t > | reflec | ||
) |
Definition at line 624 of file WCSimRootEvent.cc.
WCSimRootTrack * WCSimRootTrigger::AddTrack | ( | Int_t | ipnu, |
Int_t | flag, | ||
Double_t | m, | ||
Double_t | p, | ||
Double_t | E, | ||
Int_t | startvol, | ||
Int_t | stopvol, | ||
Double_t | dir[3], | ||
Double_t | pdir[3], | ||
Double_t | stop[3], | ||
Double_t | start[3], | ||
Int_t | parenttype, | ||
ProcessType_t | creatorProcess, | ||
Double_t | time, | ||
Int_t | id, | ||
Int_t | idParent, | ||
std::vector< std::vector< float >> | bPs, | ||
std::vector< float > | bKEs, | ||
std::vector< double > | bTimes, | ||
std::vector< int > | bTypes | ||
) |
Definition at line 406 of file WCSimRootEvent.cc.
WCSimRootTrack * WCSimRootTrigger::AddTrack | ( | WCSimRootTrack * | track | ) |
Definition at line 461 of file WCSimRootEvent.cc.
void WCSimRootTrigger::Clear | ( | Option_t * | option = "" | ) |
Definition at line 226 of file WCSimRootEvent.cc.
bool WCSimRootTrigger::CompareAllVariables | ( | const WCSimRootTrigger * | c, |
bool | deep_comparison = false |
||
) | const |
Definition at line 1018 of file WCSimRootEvent.cc.
|
inline |
Definition at line 525 of file WCSimRootEvent.hh.
|
inline |
Definition at line 600 of file WCSimRootEvent.hh.
|
inline |
Definition at line 598 of file WCSimRootEvent.hh.
|
inline |
Definition at line 587 of file WCSimRootEvent.hh.
|
inline |
Definition at line 585 of file WCSimRootEvent.hh.
|
inline |
Definition at line 586 of file WCSimRootEvent.hh.
|
inline |
Definition at line 513 of file WCSimRootEvent.hh.
|
inline |
Definition at line 514 of file WCSimRootEvent.hh.
|
inline |
Definition at line 527 of file WCSimRootEvent.hh.
|
inline |
Definition at line 528 of file WCSimRootEvent.hh.
|
inline |
Definition at line 517 of file WCSimRootEvent.hh.
|
inline |
Definition at line 518 of file WCSimRootEvent.hh.
|
inline |
Definition at line 533 of file WCSimRootEvent.hh.
|
inline |
Definition at line 538 of file WCSimRootEvent.hh.
|
inline |
Definition at line 539 of file WCSimRootEvent.hh.
|
inline |
Definition at line 537 of file WCSimRootEvent.hh.
|
inline |
Definition at line 535 of file WCSimRootEvent.hh.
|
inline |
Definition at line 536 of file WCSimRootEvent.hh.
|
inline |
Definition at line 529 of file WCSimRootEvent.hh.
|
inline |
Definition at line 532 of file WCSimRootEvent.hh.
|
inline |
Definition at line 534 of file WCSimRootEvent.hh.
|
inline |
Definition at line 531 of file WCSimRootEvent.hh.
|
inline |
Definition at line 530 of file WCSimRootEvent.hh.
|
inline |
Definition at line 522 of file WCSimRootEvent.hh.
|
inline |
Definition at line 515 of file WCSimRootEvent.hh.
|
inline |
Definition at line 516 of file WCSimRootEvent.hh.
|
inline |
Definition at line 540 of file WCSimRootEvent.hh.
|
inline |
Definition at line 568 of file WCSimRootEvent.hh.
|
inline |
Definition at line 542 of file WCSimRootEvent.hh.
|
inline |
Definition at line 541 of file WCSimRootEvent.hh.
|
inline |
Definition at line 526 of file WCSimRootEvent.hh.
|
inline |
Definition at line 521 of file WCSimRootEvent.hh.
|
inline |
Definition at line 520 of file WCSimRootEvent.hh.
|
inline |
Definition at line 524 of file WCSimRootEvent.hh.
|
inline |
Definition at line 523 of file WCSimRootEvent.hh.
|
inline |
Definition at line 519 of file WCSimRootEvent.hh.
void WCSimRootTrigger::Initialize | ( | ) |
Definition at line 93 of file WCSimRootEvent.cc.
|
inline |
Definition at line 485 of file WCSimRootEvent.hh.
WCSimRootTrigger & WCSimRootTrigger::operator= | ( | const WCSimRootTrigger & | in | ) |
Definition at line 182 of file WCSimRootEvent.cc.
WCSimRootCherenkovDigiHit * WCSimRootTrigger::RemoveCherenkovDigiHit | ( | WCSimRootCherenkovDigiHit * | digit | ) |
Definition at line 770 of file WCSimRootEvent.cc.
WCSimRootTrack * WCSimRootTrigger::RemoveTrack | ( | WCSimRootTrack * | track | ) |
Definition at line 504 of file WCSimRootEvent.cc.
|
static |
Definition at line 265 of file WCSimRootEvent.cc.
void WCSimRootTrigger::SetCaptureParticle | ( | Int_t | parent, |
Int_t | ipnu, | ||
Double_t | time, | ||
Double_t | vtx[3], | ||
Double_t | dir[3], | ||
Double_t | energy, | ||
Int_t | id | ||
) |
Definition at line 306 of file WCSimRootEvent.cc.
void WCSimRootTrigger::SetHeader | ( | Int_t | i, |
Int_t | run, | ||
int64_t | date, | ||
Int_t | subevtn = 1 |
||
) |
Definition at line 273 of file WCSimRootEvent.cc.
|
inline |
Definition at line 494 of file WCSimRootEvent.hh.
|
inline |
Definition at line 495 of file WCSimRootEvent.hh.
|
inline |
Definition at line 486 of file WCSimRootEvent.hh.
|
inline |
Definition at line 487 of file WCSimRootEvent.hh.
|
inline |
Definition at line 496 of file WCSimRootEvent.hh.
|
inline |
Definition at line 499 of file WCSimRootEvent.hh.
|
inline |
Definition at line 497 of file WCSimRootEvent.hh.
|
inline |
Definition at line 488 of file WCSimRootEvent.hh.
void WCSimRootTrigger::SetPi0Info | ( | Double_t | pi0Vtx[3], |
Int_t | gammaID[2], | ||
Double_t | gammaE[2], | ||
Double_t | gammaVtx[2][3] | ||
) |
Definition at line 294 of file WCSimRootEvent.cc.
|
inline |
Definition at line 498 of file WCSimRootEvent.hh.
void WCSimRootTrigger::SetTriggerInfo | ( | TriggerType_t | trigger_type, |
std::vector< Double_t > | trigger_info | ||
) |
Definition at line 283 of file WCSimRootEvent.cc.
|
inline |
Definition at line 493 of file WCSimRootEvent.hh.
|
inline |
Definition at line 491 of file WCSimRootEvent.hh.
|
inline |
Definition at line 492 of file WCSimRootEvent.hh.
|
inline |
Definition at line 490 of file WCSimRootEvent.hh.
|
inline |
Definition at line 489 of file WCSimRootEvent.hh.
|
private |
Neutron capture info.
Definition at line 442 of file WCSimRootEvent.hh.
|
private |
Array of WCSimRootCherenkovDigiHit's.
Definition at line 464 of file WCSimRootEvent.hh.
|
private |
Incremented with every call of WCSimRootTrigger::AddCherenkovHit(). Not initialised to 0. Not used. Inaccessible publicly. Avoid.
Definition at line 454 of file WCSimRootEvent.hh.
|
private |
Array of WCSimRootCherenkovHitHistories.
Definition at line 458 of file WCSimRootEvent.hh.
|
private |
Array of WCSimRootCherenkovHits.
Definition at line 452 of file WCSimRootEvent.hh.
|
private |
Array of WCSimRootCherenkovHits.
Definition at line 456 of file WCSimRootEvent.hh.
|
private |
The header.
Definition at line 430 of file WCSimRootEvent.hh.
|
private |
LEGACY VARIABLE MAY BE INACCURATE IN SOME RUNNING SCENARIOS. Index of the muon.
Definition at line 437 of file WCSimRootEvent.hh.
|
private |
LEGACY VARIABLE MAY BE INACCURATE IN SOME RUNNING SCENARIOS. Index of the proton.
Definition at line 438 of file WCSimRootEvent.hh.
|
private |
Interaction mode for each vertex. Only set for the muline generator.
Definition at line 432 of file WCSimRootEvent.hh.
|
private |
Number of tracks in the neutron capture array.
Definition at line 443 of file WCSimRootEvent.hh.
|
private |
Number of digihits in the WCSimRootCherenkovDigiHit array.
Definition at line 461 of file WCSimRootEvent.hh.
|
private |
Number of slots in the WCSimRootCherenkovDigiHit array. This is potentially more than fNcherenkovdigihits (i.e. if any digihits have been removed that aren't at the very start/end)
Definition at line 462 of file WCSimRootEvent.hh.
|
private |
Number of hits in the WCSimRootCherenkovHitHistories array. Should be identical to fNcherenkovhittimes.
Definition at line 457 of file WCSimRootEvent.hh.
|
private |
Number of hits in the array.
Definition at line 451 of file WCSimRootEvent.hh.
|
private |
Number of hits in the WCSimRootCherenkovHits array.
Definition at line 455 of file WCSimRootEvent.hh.
|
private |
LEGACY VARIABLE MAY BE INACCURATE IN SOME RUNNING SCENARIOS. Index Number of tracks in the event (not all will be saved in the WCSimRootTrack array)
Definition at line 445 of file WCSimRootEvent.hh.
|
private |
Number of tracks in the WCSimRootTrack array.
Definition at line 446 of file WCSimRootEvent.hh.
|
private |
Number of slots in the WCSimRootTrack array. This is potentially more than fNtrack (i.e. if any tracks have been removed that aren't at the very start/end)
Definition at line 447 of file WCSimRootEvent.hh.
|
private |
Number of digitized tubes.
Definition at line 460 of file WCSimRootEvent.hh.
|
private |
Number of tubes hit.
Definition at line 450 of file WCSimRootEvent.hh.
|
private |
Number of true vertices in the event.
Definition at line 433 of file WCSimRootEvent.hh.
|
private |
Pi0 info (default = not used)
Definition at line 440 of file WCSimRootEvent.hh.
|
private |
Sum of digitised hit charge in this trigger.
Definition at line 463 of file WCSimRootEvent.hh.
|
private |
Array of WCSimRootTracks.
Definition at line 448 of file WCSimRootEvent.hh.
|
private |
Information about how it passed the trigger (e.g. how many hits in the NDigits window)
Definition at line 467 of file WCSimRootEvent.hh.
|
private |
Trigger algorithm that created this trigger.
Definition at line 466 of file WCSimRootEvent.hh.
|
private |
"info event" number in inputvectorfile. Only set for the muline generator
Definition at line 436 of file WCSimRootEvent.hh.
|
private |
True 4-position (x,y,z,t) of the vertex.
Definition at line 435 of file WCSimRootEvent.hh.
|
private |
The detector volume this vertex occured in.
Definition at line 434 of file WCSimRootEvent.hh.
|
private |
Will be true if unfilled, false if filled.
Definition at line 469 of file WCSimRootEvent.hh.