FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMCEntry.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 /*
9  * FairMCEntry.cpp
10  *
11  * Created on: Dec 22, 2009
12  * Author: stockman
13  */
14 
15 #include "FairMCEntry.h"
16 
18 
21  , fSource(-1)
22  , fPos(-1)
23 {
24  SetPersistanceCheck(kFALSE);
25 }
26 
28 
29 void FairMCEntry::RemoveType(Int_t type)
30 {
31  // std::set<FairLink>::iterator endIter = fLinks.end();
32  std::set<FairLink>::iterator it = fLinks.begin();
33  for (; it != fLinks.end();) {
34  if (it->GetType() == type) {
35  fLinks.erase(it);
36  it = fLinks.begin();
37  } else {
38  ++it;
39  }
40  }
41 }
virtual void SetPersistanceCheck(Bool_t check)
Controls if a persistance check of a link is done or not.
std::set< FairLink > fLinks
ClassImp(FairEventBuilder)
void RemoveType(Int_t type)
Definition: FairMCEntry.cxx:29
virtual ~FairMCEntry()
Definition: FairMCEntry.cxx:27